-
Notifications
You must be signed in to change notification settings - Fork 925
GODRIVER-3517: Convert OIDC prose test to go test #2283
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
Merged
RafaelCenzano
merged 23 commits into
mongodb:master
from
RafaelCenzano:test/oidc-prose-test-as-go-test-godriver3517
Jan 23, 2026
+493
−719
Merged
Changes from 10 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
7b6d574
chore: move oidcauth test from cmd to test directory
RafaelCenzano 78b9a01
chore: update command to run test with go test
RafaelCenzano 0d3e377
test: convert test to use go test framework
RafaelCenzano c456466
test: use test cleanup instead of defer
RafaelCenzano ccfada8
chore: reorder to match original ordering
RafaelCenzano f57e0dd
chore: revert some changes that differed from the original file
RafaelCenzano 81f357e
chore: update path for oidc tests
RafaelCenzano 80dcfaa
test: skip test on go test ./... calls
RafaelCenzano a652aa1
Merge branch 'master' into test/oidc-prose-test-as-go-test-godriver3517
RafaelCenzano 6ee82ee
Merge branch 'master' into test/oidc-prose-test-as-go-test-godriver3517
RafaelCenzano 6877a42
Merge branch 'master' into test/oidc-prose-test-as-go-test-godriver3517
RafaelCenzano 8bfda66
test: use require of if blocks with fatal
RafaelCenzano 4497464
test: correct accidental inverse
RafaelCenzano 1050dc3
fix: require equal message for find
RafaelCenzano 9cd3739
fix: require equal message for find
RafaelCenzano 07fbc81
GODRIVER-3762: Bump golangci-lint to 2.8.0 (#2289)
RafaelCenzano acff7a8
GODRIVER-3759: Update CI windows tests to windows-2022-latest-small (…
RafaelCenzano 0623607
fix: correct reversed require check
RafaelCenzano 0fb24d4
Merge branch 'master' into test/oidc-prose-test-as-go-test-godriver3517
RafaelCenzano 0bbd339
redirect test output to test.suite
RafaelCenzano 18d7c49
Merge branch 'master' into test/oidc-prose-test-as-go-test-godriver3517
RafaelCenzano f02e325
test: ensure output of remote tests goes to test.suite
RafaelCenzano 667c71d
fix: keep $1 for non external env test
RafaelCenzano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ echo "Running remote MONGODB-OIDC authentication tests on $OIDC_ENV" | |
| DRIVERS_TAR_FILE=/tmp/mongo-go-driver.tar.gz | ||
| # we need to statically link libc to avoid the situation where the VM has a different | ||
| # version of libc | ||
| go build -tags osusergo,netgo -ldflags '-w -extldflags "-static -lgcc -lc"' -o test ./internal/cmd/testoidcauth/main.go | ||
| go test -c -tags osusergo,netgo -ldflags '-w -extldflags "-static -lgcc -lc"' -o test ./internal/test/oidcauth | ||
| rm "$DRIVERS_TAR_FILE" || true | ||
| tar -cf $DRIVERS_TAR_FILE ./test | ||
| tar -uf $DRIVERS_TAR_FILE ./etc | ||
|
|
@@ -20,21 +20,21 @@ if [ $OIDC_ENV == "azure" ]; then | |
| # Define the command to run on the azure VM. | ||
| # Ensure that we source the environment file created for us, set up any other variables we need, | ||
| # and then run our test suite on the vm. | ||
| export AZUREOIDC_TEST_CMD="PROJECT_DIRECTORY='.' OIDC_ENV=azure OIDC=oidc ./etc/run-oidc-test.sh ./test" | ||
| export AZUREOIDC_TEST_CMD="PROJECT_DIRECTORY='.' OIDC_ENV=azure OIDC=oidc ./etc/run-oidc-test.sh ./test -test.v" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [blocking] See #2283 (comment) |
||
| bash ${DRIVERS_TOOLS}/.evergreen/auth_oidc/azure/run-driver-test.sh | ||
|
|
||
| elif [ $OIDC_ENV == "gcp" ]; then | ||
| export GCPOIDC_DRIVERS_TAR_FILE=$DRIVERS_TAR_FILE | ||
| # Define the command to run on the gcp VM. | ||
| # Ensure that we source the environment file created for us, set up any other variables we need, | ||
| # and then run our test suite on the vm. | ||
| export GCPOIDC_TEST_CMD="PROJECT_DIRECTORY='.' OIDC_ENV=gcp OIDC=oidc ./etc/run-oidc-test.sh ./test" | ||
| export GCPOIDC_TEST_CMD="PROJECT_DIRECTORY='.' OIDC_ENV=gcp OIDC=oidc ./etc/run-oidc-test.sh ./test -test.v" | ||
| bash ${DRIVERS_TOOLS}/.evergreen/auth_oidc/gcp/run-driver-test.sh | ||
|
|
||
| elif [ $OIDC_ENV == "k8s" ]; then | ||
| export K8S_VARIANT=${VARIANT} | ||
| export K8S_DRIVERS_TAR_FILE=$DRIVERS_TAR_FILE | ||
| export K8S_TEST_CMD="PROJECT_DIRECTORY='.' OIDC_ENV=k8s OIDC=oidc ./etc/run-oidc-test.sh ./test" | ||
| export K8S_TEST_CMD="PROJECT_DIRECTORY='.' OIDC_ENV=k8s OIDC=oidc ./etc/run-oidc-test.sh ./test -test.v" | ||
| bash ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/setup-pod.sh | ||
| bash ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/run-driver-test.sh | ||
| bash ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/teardown-pod.sh | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.