DRIVERS-3197 run OIDC machine prose tests in all environments #1864
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Run OIDC machine prose tests in all supported environments.
Motivation
See DRIVERS-3197. The added testing is motivated by NODE-6962. Prior to NODE-6962, a callback used separate code path (automated_callback_workflow) from workflows configured with the
ENVIRONMENTauth mechanism property (machine_workflow.ts). This resulted in a behavior difference on retry.Some steps require a callback (e.g. "Assert that the callback was called 1 time."). Tests and steps that require a callback are marked with
[callback-only]and only expected to run when testing a callback.Testing
Prose test 3.1 acts as a regression test for NODE-6962. Testing 3.1 with
ENVIRONMENT:testbefore NODE-6962 (branch) expectedly fails:And after (branch) succeeds:
Prose test updates were tested in the C driver with a custom callback and
ENVIRONMENT:azure: mongodb/mongo-c-driver#2182. Testing withENVIRONMENT:gcpis pending further work (CDRIVER-6153).Please complete the following before merging:
[ ] Update changelog.(Test changes only)[ ] Test these changes against all server versions and topologies (including standalone, replica set, and sharded(N/A? Tested with OIDC test set-up)clusters).