Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mocks warm up #833

Merged
merged 3 commits into from
Oct 5, 2023
Merged

Mocks warm up #833

merged 3 commits into from
Oct 5, 2023

Conversation

garethsb
Copy link
Contributor

@garethsb garethsb commented Oct 5, 2023

This gives the API or client under test a chance to use the mock services before any test case is run.

Co-authored-by: jonathan-r-thorpe <64410119+jonathan-r-thorpe@users.noreply.github.com>
@jonathan-r-thorpe
Copy link
Contributor

Is this only an issue when Auth is enabled? And if so should we only delay if Auth enabled?

@garethsb
Copy link
Contributor Author

garethsb commented Oct 5, 2023

Is this only an issue when Auth is enabled? And if so should we only delay if Auth enabled?

I think theoretically it applies to any mock services that might be required before some test suite's first interaction with the API or client under test. So, DNS server, CRL or OCSP server, Auth server, ...

This PR makes the delay tunable via UserConfig.py, and defaults it to zero delay, so it seems to cover all use cases optimally?

Copy link
Contributor

@peterbrightwell peterbrightwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be a useful feature. Looks ok.

Copy link

@pedro-alves-ferreira pedro-alves-ferreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@garethsb garethsb merged commit ebd4787 into master Oct 5, 2023
1 check passed
@garethsb garethsb deleted the mocks-warm-up branch October 5, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants