Run end-to-end tests against a real Nextcloud server #1

Closed
opened 2026-11-12 11:09:54 +01:00 by kneth · 0 comments
Owner

Run the sync engine end to end against a real Nextcloud server, with two simulated devices ("Mac A" and "Mac B").

Already drafted locally, not run yet:

  • e2e/docker-compose.yml (nextcloud:35.0.2-apache, admin / nnotes-e2e) and e2e/start.sh
  • NNotesKit/Tests/NNotesKitTests/E2ETests.swift

How to run:

e2e/start.sh
NNOTES_E2E_URL=http://localhost:8080 swift test --package-path NNotesKit --filter E2E

Check against the real server (these are things FakeNotesAPI only assumes):

  • the Last-Modified header on the list response (drives pruneBefore)
  • If-Match etag quoting
  • the body of a 412 response
  • the format of de-duplicated titles (e.g. "Idea (2)")
Run the sync engine end to end against a real Nextcloud server, with two simulated devices ("Mac A" and "Mac B"). Already drafted locally, not run yet: - `e2e/docker-compose.yml` (`nextcloud:35.0.2-apache`, admin / `nnotes-e2e`) and `e2e/start.sh` - `NNotesKit/Tests/NNotesKitTests/E2ETests.swift` How to run: ```sh e2e/start.sh NNOTES_E2E_URL=http://localhost:8080 swift test --package-path NNotesKit --filter E2E ``` Check against the real server (these are things `FakeNotesAPI` only assumes): - [ ] the `Last-Modified` header on the list response (drives `pruneBefore`) - [ ] `If-Match` etag quoting - [ ] the body of a 412 response - [ ] the format of de-duplicated titles (e.g. "Idea (2)")
kneth closed this issue 2026-11-12 13:55:54 +01:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kneth/nnotes#1
No description provided.