Ximon Eighteen and GitHub
e3eb5e6752
Add a CTRL-C handler to Cypress UI tests to prevent the Cypress Docker container being left running if the test is aborted while running. ( #431 )
2021-03-08 11:27:23 +01:00
Ximon Eighteen and GitHub
c50050c481
Support use of env vars CYPRESS_INTERACTIVE and CYPRESS_DEBUG to control the Cypress test experience. ( #404 ) ( #405 )
2021-02-10 23:50:00 +01:00
Ximon Eighteen and GitHub
248807ebc7
Fix master token access restrictions when not using the multi-user feature. ( #415 )
...
* Add a test that should (but doesn't in non-multi-user mode) panic because it tries to create a CA using the wrong master token.
* cargo fmt
* Add some comments explaining what the test does and how it works.
* FIX: Don't permit anonymous users to perform restricted actions in non-multi-user mode (this regression was introduced in the v0.8.1-bis branch, it was never released).
2021-02-10 11:21:30 +01:00
Jasper den Hertog and GitHub
1cba1dba70
authenticate()/try_refresh_token() rfc-6749 style errors ( #396 )
...
Improved handling of OpenID Connect error responses when using a refresh token to obtain new tokens.
2021-02-10 10:42:43 +01:00
Ximon Eighteen and GitHub
bbfe9a824a
Testbed mode should be more liberal in handling formatting variations in child and publisher registration XML. ( #369 ) ( #403 )
...
Testbed mode should be more liberal in handling formatting variations in child and publisher registration XML. Synced with Lagosta commit d94470db. (#369 , #403 )
2021-01-29 17:11:30 +01:00
Ximon Eighteen and GitHub
424664001d
Stabilize the add ROA UI test ( #377 ) ( #407 )
...
Wait until CA resources exist before adding a ROA. Synced with Lagosta master branch commit 30215b85. (#377 ).
2021-01-29 12:10:18 +01:00
Ximon Eighteen and GitHub
a362ad9dad
Tune the ResizeObserver uncaught exception workaround. ( #377 ) ( #406 )
...
Update the uncaught exception string match to match on the right error property and text.
2021-01-22 10:55:00 +01:00
Ximon Eighteen and GitHub
e3cc74ff26
UI test stability improvements ( #398 )
...
* Use a less short 'short-lived' token that doesn't expire in the GH Action runner VMs before Krill is able to validate it. (#377 )
* Attempt to suppress occasional spurious "ResizeObserver loop limit exceeded" errors using a custom Cypress uncaught exception handler. Unable to reproduce locally or even confirm that the new handler is being invoked. (#377 )
2021-01-19 00:56:37 +01:00
Ximon Eighteen and GitHub
cb94515cbb
Skip Add ROA test while investigating #377 .
...
As it is causing test failures for other commits/PRs.
2021-01-15 16:26:07 +01:00
Ximon Eighteen and GitHub
8a7a7bcb3e
Extend the CI job with code coverage reports by cargo tarpaulin. ( #371 ) ( #372 )
...
Trigger a new code coverage report GitHub Actions CI workflow after successful completion of the CI workflow (#371 ).
Also attempts to stablize the flakey add ROAs UI test (#377 ).
2021-01-15 15:10:30 +01:00
Ximon Eighteen
f2a79eb28f
Test error reporting on authn success but authz LOGIN failure.
2021-01-12 21:19:50 +01:00
Ximon Eighteen
36b09d2790
FIX: Correct UI test expected string.
2021-01-12 17:11:52 +01:00
Ximon Eighteen
87cdf7962f
FIX: Pass user attributes to Lagosta, not just the role. Synced with Lagosta master branch commit ac2dab37.
2021-01-09 14:55:06 +01:00
Ximon Eighteen
394e325b7c
cargo fmt
2021-01-06 14:27:59 +01:00
Ximon Eighteen
8343456b11
FIX: Flakey UI test: AssertionError: Timed out retrying after 4000ms: Expected to find content: '<child_request' within the element: <code.language-xml> but never did.
2021-01-06 14:25:39 +01:00
Ximon Eighteen
f19994354e
FIX: Incorrect UI subtest title.
2021-01-06 14:08:22 +01:00
Ximon Eighteen
db8647b60f
FIX: Initial rough implementation: Don't fail Krill startup if the OpenID Connect provider is unavailable. Synced with Lagosta master commit 5f61a5c9. Also includes some minor log / error consistency/cleanup tweaks.
2021-01-06 13:56:39 +01:00
Tim Bruijnzeels
a1c8889b56
Remove a CA (CLI and API only) #359
2021-01-05 16:08:23 +01:00
Ximon Eighteen
76eb78f5a5
Add failing a test for verifying that Krill starts up even if the OpenID Connect provider is unavailable.
2021-01-05 12:21:23 +01:00
Ximon Eighteen
9bd8968dd0
Add a test for the case where the OpenID Connect provider responds with a non-spec compliant ID Token. Currently fails because the error message shown to the user could imply that Krill had a problem rather than correctly reporting that this is an OpenID Connect provider issue.
2021-01-05 12:17:25 +01:00
Ximon Eighteen
24e37b88de
Enable UI 'Add ROA for CA' UI based test which now passes.
2021-01-05 11:19:52 +01:00
Ximon Eighteen
1a6be4d753
FIX: UI tests time out due to slow route analysis of vast TA resources when TA isn't even needed.
2020-12-31 16:33:54 +01:00
Ximon Eighteen
dd7d3f41b2
FIX: Avoid stack overflow triggered by addition of new Actor::auth_error field by flattening out chained async API handler invocation. This avoids deep recursive .or_else() macro expansion of calls that pass the large Request value (of which Actor is part) resulting in stack overflow. This fix also removes the need for the boosted recursion_limit compiler setting.
2020-12-31 15:57:02 +01:00
Ximon Eighteen
8bc43d7640
rustfmt on recently modified files.
2020-12-30 15:46:08 +01:00
Ximon Eighteen
5d6fbcd66f
UI test tweaks.
2020-12-30 15:46:08 +01:00
Ximon Eighteen
b2cf7535dd
Error handling tweaks.
2020-12-30 15:46:08 +01:00
Ximon Eighteen
ddcc6708fc
TEST FIX: error[E0432]: unresolved import 'krill::daemon::mq::EventQueueListener'
2020-12-30 15:45:36 +01:00
Ximon Eighteen
d30875dae9
More state based instead of time based test behaviour.
2020-12-15 16:54:45 +01:00
Ximon Eighteen
d619e91fd6
Make the token refresh test wait for the expected API call to prevent checking the DOM too early.
2020-12-15 16:41:38 +01:00
Ximon Eighteen
c3cb734424
Take latest Lagosta fixes (really properly store refreshed token) and extend the token refresh test.
2020-12-15 16:32:07 +01:00
Ximon Eighteen
35d448a509
Update the mock OpenID Connect server and related test to properly test token refresh.
2020-12-15 15:26:50 +01:00
Ximon Eighteen
519b818dff
FIX: Cypress waits are specified in milliseconds, not seconds.
2020-12-15 01:51:20 +01:00
Ximon Eighteen
49d4db59fe
Upgrade Cypress and use intercepts to check key interactions with the OpenID Connect provider.
2020-12-15 01:50:52 +01:00
Ximon Eighteen
fe3741e44e
Properly handle a logout request to the mock OpenID Connect provider.
2020-12-15 01:48:13 +01:00
Ximon Eighteen
0be353c83a
Exclude TA and Testbed CAs from test users to ensure CAs with lots of resources are not shown in the UI.
2020-12-15 01:47:32 +01:00
Ximon Eighteen
d2d05c6202
Oops, re-enable test mode to resolve error "MUST use hostnames in URIs for certificate requests".
2020-12-14 22:17:45 +01:00
Ximon Eighteen
bc1908fa54
Update invocation of start_krill_daemon to match changed fn signature and fold fold duplicate start krill in test mode logic into one place.
2020-12-14 21:56:20 +01:00
Ximon Eighteen
ecb221ac41
Temporarily disable failing test.
2020-12-14 13:38:19 +01:00
Tim Bruijnzeels
4763042380
Move use statements to where feature is used.
2020-12-11 13:04:43 +01:00
Tim Bruijnzeels
93f1b7b606
Fix clippy warning.
2020-12-11 13:03:14 +01:00
Ximon Eighteen
8156fce56f
Enable the multi-user openid-connect UI test for enforced logout due to expiration of a non-refreshable token.
2020-12-10 22:34:50 +01:00
Ximon Eighteen
15abaab2f6
Update UI tests to use the recently changed mechanism for enabling test mode.
2020-12-10 22:33:40 +01:00
Ximon Eighteen
6c50869241
Add some basic tests of expected actors recorded in Krill event history.
2020-12-10 13:42:39 +01:00
Ximon Eighteen
b0073eafef
Move the mock OpenID Connect server to port 1818 as port 3001 is already used by existing Krill tests.
2020-12-10 13:41:30 +01:00
Ximon Eighteen
110e2b1b66
Use the same master token as used by other tests and expected by the tests.rs helper functions.
2020-12-10 13:40:48 +01:00
Ximon Eighteen
087a9e60f9
Added a test demonstrating custom team based authz policy and control over UI appearance of user attributes.
2020-12-09 15:31:20 +01:00
Ximon Eighteen
114b5263b8
Merge branch 'v0.8.1-bis' of github.com:NLnetLabs/krill into v0.8.1-bis
2020-12-09 14:13:03 +01:00
Ximon Eighteen and GitHub
66b60e008b
FIX: Fail test run if Cypress tests fail.
2020-12-09 14:10:38 +01:00
Ximon Eighteen
17df0a66ec
Merge branch 'v0.8.1-bis' of github.com:NLnetLabs/krill into v0.8.1-bis.
2020-12-09 11:52:35 +01:00
Tim Bruijnzeels
5efe2fa377
Separate krillpubd and krillpubc. ( #338 )
2020-12-09 11:31:42 +01:00