Commit Graph
18 Commits
Author SHA1 Message Date
Ximon Eighteen 55a944e255 Temporarily disable the RIPE NCC Validator 3 test until I can work out why it is trying to rsync from an HTTP URI... 2021-08-17 14:52:23 +02:00
Ximon Eighteen 62cadf8e8a E2E test minor logging improvements: Fix an empty "->" log line in the E2E test and add the API call being made to each of the messages logged during initial Krill setup. 2021-08-17 12:32:49 +02:00
Ximon EighteenandGitHub 675d902ec0 Typo correction in e2e test comment: dependendencies -> dependencies 2021-04-19 10:39:57 +02:00
7cb5674033 Stabilize API and CLI (#330 and #360)
* Move child_request API endpoint for conststency. (#330)
* Move get RFC 8183 Publisher Request API endpoints (#330)
* Accept XML and json to add/update parent on same endpoints (#330)
* Simplify the JSON to add a child and remove unused fields. (#330)
* Update path to child_request in openapi spec.
* Update path to publisher request.
* Update api spec and documentation.
* Fix update parent API documentation and call by CLI.
* CLI stability
* Update pubd OpenAPI spec t o match changes made to the Krill API.
* Update the e2e test client code to submit only the id_cert and not the whole RFC8183 request, as required by changes made to the Krill API.

Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
2021-04-12 17:24:41 +02:00
a715c82f7f Remove embedded repo/ca choices (#461)
* Remove embedded repository contact option, migrate commands and events.
* Migrate old CA init events. Test upgrade from 0.6.0.
* Migrate embedded in CA history.

Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
2021-04-01 17:18:28 +02:00
e662c1553b Change to a hybrid event sourcing model for CAs and Repository. (#426)
This allows us to keep the full history of semantically important events, while not spamming the history and avoiding excessive use of disk space. See issues #370 and #423.

This is a substantial change. Highlights follow:
* Added a developer documentation section
* No longer using events for manifest/crl generation (#370)
* No longer using events for publication deltas (#423)
* Removed pre 0.6.0 migration code - people will have to upgrade to at least 0.6.0 first
* Added migration code for 0.6.0-0.8.1 to this
* Migrate repository by doing a keyroll. (#370)
* Remove archiving code for commands (no longer applicable)

Minor other fixes:
* Use a swap file when writing (avoid corrupt json if disk is full) (#370)
* Make removing publisher content idempotent for publishers already removed.

Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
Co-authored-by: Jasper den Hertog <jasper@plainspace.com>
2021-03-17 12:08:36 +01:00
Ximon EighteenandGitHub cf1f8a9c16 Improvements and fixes for e2e testing on the Krill dev branch (#439)
Note: Until merged to master this branch requires that a branch by the same name exists in the rpki-deploy repo with the corresponding changes to support these changes, which include:

- OpenAPI YML corrections.
- Support the new way to activate the TA.
- FIX: Include the correct ta.cer URI in the TAL.
- Use two seprarate Python libraries for Krill: one for CA REST SAPIs and one for PUB REST APIs.
- FIX: Test for the actual CAs and resources to create, as the presence of the testbed CA violates the previous check assumptions.
- FIX: Resource ASN, v4 and v6 values can no longer be assumed to have the same sort order as when given to Krill.
- Factor out test suite code into helper functions for better readability and maintainability.
- Retry RTR fetching (needed for ROAs obtained from Rcynic Lihttpd server served JSON as otherwise connecting too early results in SyncTimeout).

Known issues: on failure all RP tests will retry 3 times while actually only the Rcynic test should retry.
2021-03-15 12:10:08 +01:00
ximon18andGitHub cdeb52224a Don't wait for child resources to be issued. 2020-02-25 09:23:06 +01:00
Tim Bruijnzeels cc5afda6f7 Attempt to fix e2e test to wait until resources are issued to test CAs. 2020-02-21 17:22:48 +01:00
Tim Bruijnzeels e7ecd5a39f Fix ASN not held by parent in e2e test data. 2020-02-21 15:58:09 +01:00
Ximon Eighteen 8f9d6836fd FIX: indentation accidentally omitted from recent commit. 2020-01-29 19:38:17 +01:00
Ximon Eighteen 62d7fb9629 FIX: Line accidentally removed from a recent commit. 2020-01-29 19:37:36 +01:00
Ximon Eighteen aef6565691 Verify that child resources are created. 2020-01-29 19:37:20 +01:00
Ximon Eighteen 2026bead6b Allow nested properties to be checked. 2020-01-29 19:36:30 +01:00
Ximon Eighteen 14d5541c57 FIX: also detect empty strings. 2020-01-29 19:36:07 +01:00
Ximon Eighteen c322aa332e Log the number of failed retries when an action with retries fails. 2020-01-29 19:35:35 +01:00
ximon18andGitHub 4cf066a52f Remove explicit service version detection, this is now handled by the framework instead. (#186) 2020-01-22 15:54:58 +01:00
ximon18andGitHub e3f768c56d Move the Krill E2E tests from the rpki-deploy repo to the Krill repo. (#181) 2020-01-22 14:17:15 +01:00