Skip to content

Commit b3d910a

Browse files
committed
fix tests
1 parent e822c86 commit b3d910a

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

.evergreen/config.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -554,19 +554,12 @@ functions:
554554
args: [*task-runner, evg-test-kmip]
555555

556556
start-kms-failpoint-server:
557-
- command: subprocess.exec
558-
params:
559-
working_dir: src/go.mongodb.org/mongo-driver
560-
binary: bash
561-
background: true
562-
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "DRIVERS_TOOLS"]
563-
# This cannot use task because it will hang on Windows.
564-
args: [etc/setup-encryption.sh]
565557
- command: subprocess.exec
566558
params:
567559
binary: python3
568560
env:
569561
KMS_FAILPOINT_SERVERS_RUNNING: "true"
562+
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "DRIVERS_TOOLS"]
570563
background: true
571564
args: ["-u", "${DRIVERS_TOOLS}/.evergreen/csfle/kms_failpoint_server.py", "--port", "9003"]
572565

@@ -577,8 +570,7 @@ functions:
577570
binary: "bash"
578571
env:
579572
GO_BUILD_TAGS: cse
580-
include_expansions_in_env: [AUTH, SSL, MONGODB_URI, TOPOLOGY,
581-
MONGO_GO_DRIVER_COMPRESSOR]
573+
include_expansions_in_env: [AUTH, SSL, MONGODB_URI, TOPOLOGY, MONGO_GO_DRIVER_COMPRESSOR]
582574
args: [*task-runner, setup-test]
583575
- command: subprocess.exec
584576
type: test
@@ -1531,10 +1523,6 @@ tasks:
15311523
SSL: "nossl"
15321524
- func: start-kms-failpoint-server
15331525
- func: run-retry-kms-requests
1534-
vars:
1535-
TOPOLOGY: "server"
1536-
AUTH: "noauth"
1537-
SSL: "nossl"
15381526

15391527
- name: "test-serverless"
15401528
tags: ["serverless"]

internal/integration/client_side_encryption_prose_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,8 +1516,8 @@ func TestClientSideEncryptionProse(t *testing.T) {
15161516
tlsConfig := make(map[string]*tls.Config)
15171517
if tlsCAFileKMIP != "" && tlsClientCertificateKeyFileKMIP != "" {
15181518
clientAndCATlsMap := map[string]interface{}{
1519-
// "tlsCertificateKeyFile": tlsClientCertificateKeyFileKMIP,
1520-
"tlsCAFile": tlsCAFileKMIP,
1519+
"tlsCertificateKeyFile": tlsClientCertificateKeyFileKMIP,
1520+
"tlsCAFile": tlsCAFileKMIP,
15211521
}
15221522
certConfig, err := options.BuildTLSConfig(clientAndCATlsMap)
15231523
assert.Nil(mt, err, "BuildTLSConfig error: %v", err)

0 commit comments

Comments
 (0)