Skip to content

test(integration): add failure handling tests - #237

Open
rsmanasa-google wants to merge 1 commit into
test/integration-filesfrom
test/integration-failure-handling
Open

rsmanasa-google wants to merge 1 commit into
test/integration-filesfrom
test/integration-failure-handling

Conversation

@rsmanasa-google

Copy link
Copy Markdown
Collaborator

The planners report a failure on a queue instead of raising, so a failed scan can look like one that passed.

These tests make a scan fail on purpose and check that the failure is noticed:

  • Wrong client secret, for each of the three planners: the scan must report an error, must not report completion, must not write a report, and the error text must not contain the secret.
  • Shallow scan with a certificate that is not registered on the app: the planner's certificate check must stop the scan before it runs.
  • Shallow scan with no certificate files where one is required: the scan must stop with a "missing" message, and no new certificate may be created.

The certificate tests give the planner an empty temporary folder to keep its certificate in, so the registered certificate is never touched. The folder is removed afterwards.

The planners report a failure on a queue instead of raising. These tests
make a scan fail on purpose (a wrong client secret, an unregistered or
missing certificate) and check that the failure is reported and no report
is written.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant