File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed
internal/cmd/testoidcauth Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ functions:
57
57
handle-test-artifacts :
58
58
- command : gotest.parse_files
59
59
params :
60
+ optional_output : " true"
60
61
files :
61
62
- " src/go.mongodb.org/mongo-driver/*.suite"
62
63
- command : ec2.assume_role
@@ -1928,7 +1929,10 @@ task_groups:
1928
1929
- name : testoidc_task_group
1929
1930
setup_group_can_fail_task : true
1930
1931
setup_group_timeout_secs : 1800
1931
- teardown_task_can_fail_task : true
1932
+ # TODO(DRIVERS-3141): Uncomment the following line once the teardown bug is
1933
+ # fixed. See DRIVERS-3141 for more context.
1934
+ #
1935
+ # teardown_task_can_fail_task: true
1932
1936
teardown_group_timeout_secs : 180 # 3 minutes (max allowed time)
1933
1937
setup_group :
1934
1938
- func : setup-system
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ tasks:
199
199
200
200
evg-test-deployed-lambda-aws : bash ${DRIVERS_TOOLS}/.evergreen/aws_lambda/run-deployed-lambda-aws-tests.sh
201
201
202
- evg-gather-test-suites : find . -name \*.suite | xargs tar czf test_suite.tgz
202
+ evg-gather-test-suites : find . -name \*.suite | xargs --no-run-if-empty tar czf test_suite.tgz
203
203
204
204
build-kms-test : go build ${BUILD_TAGS} ./internal/cmd/testkms
205
205
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ package main
8
8
9
9
import (
10
10
"context"
11
+ "errors"
11
12
"fmt"
12
13
"log"
13
14
"os"
@@ -1781,14 +1782,16 @@ func machine51azureWithNoUsername() error {
1781
1782
1782
1783
func machine52azureWithBadUsername () error {
1783
1784
opts := options .Client ().ApplyURI (uriSingle )
1784
- cred := options.Credential {
1785
- AuthMechanism : "MONGODB-OIDC" ,
1786
- Username : "bad" ,
1787
- }
1788
- opts .SetAuth (cred )
1785
+
1789
1786
if opts == nil {
1790
1787
return fmt .Errorf ("machine_5_2: failed parsing uri: %q" , uriSingle )
1791
1788
}
1789
+ if opts .Auth == nil || opts .Auth .AuthMechanism != "MONGODB-OIDC" {
1790
+ return errors .New ("machine_5_2: expected URI to contain MONGODB-OIDC auth information" )
1791
+ }
1792
+
1793
+ opts .Auth .Username = "bad"
1794
+
1792
1795
client , err := mongo .Connect (opts )
1793
1796
if err != nil {
1794
1797
return fmt .Errorf ("machine_5_2: failed connecting client: %v" , err )
You can’t perform that action at this time.
0 commit comments