WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 4b52cd9

Browse files
committed
Add tests
1 parent 197145d commit 4b52cd9

File tree

2 files changed

+40
-5
lines changed

2 files changed

+40
-5
lines changed

.evergreen/config.yml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ timeout:
2626
args: [ls, -la]
2727

2828
functions:
29-
assume-test-secrets-ec2-role:
30-
- command: ec2.assume_role
31-
params:
32-
role_arn: ${aws_test_secrets_role}
33-
3429
setup-system:
3530
# Executes clone and applies the submitted patch, if any
3631
- command: git.get_project
@@ -598,6 +593,22 @@ functions:
598593
KMS_FAILPOINT_SERVER_RUNNING: "true"
599594
args: [*task-runner, evg-test-retry-kms-requests]
600595

596+
run-client-side-encryption-test:
597+
- command: subprocess.exec
598+
params:
599+
binary: "bash"
600+
env:
601+
GO_BUILD_TAGS: cse
602+
include_expansions_in_env: [AUTH, SSL, MONGODB_URI, TOPOLOGY,
603+
MONGO_GO_DRIVER_COMPRESSOR]
604+
args: [*task-runner, setup-test]
605+
- command: subprocess.exec
606+
type: test
607+
retry_on_failure: true
608+
params:
609+
binary: "bash"
610+
args: [*task-runner, evg-test-client-side-encryption]
611+
601612
run-fuzz-tests:
602613
- command: subprocess.exec
603614
type: test
@@ -1572,6 +1583,21 @@ tasks:
15721583
AUTH: "noauth"
15731584
SSL: "nossl"
15741585

1586+
- name: "test-client-side-encryption"
1587+
tags: ["client-side-encryption-test"]
1588+
commands:
1589+
- func: bootstrap-mongo-orchestration
1590+
vars:
1591+
TOPOLOGY: "server"
1592+
AUTH: "noauth"
1593+
SSL: "nossl"
1594+
- func: start-cse-servers
1595+
- func: run-search-index-tests
1596+
vars:
1597+
TOPOLOGY: "server"
1598+
AUTH: "noauth"
1599+
SSL: "nossl"
1600+
15751601
- name: "test-retry-kms-requests"
15761602
tags: ["kms-test"]
15771603
commands:
@@ -2253,6 +2279,12 @@ buildvariants:
22532279
tasks:
22542280
- name: ".kms-test"
22552281

2282+
- matrix_name: "client-side-encryption-test"
2283+
matrix_spec: { version: ["7.0"], os-ssl-40: ["rhel87-64"] }
2284+
display_name: "Client Side Encryption TEST ${os-ssl-40}"
2285+
tasks:
2286+
- name: ".client-side-encryption-test"
2287+
22562288
- matrix_name: "load-balancer-test"
22572289
tags: ["pullrequest"]
22582290
matrix_spec: { version: ["5.0", "6.0", "7.0", "8.0"], os-ssl-40: ["rhel87-64"] }

Taskfile.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ tasks:
150150
evg-test-retry-kms-requests:
151151
- go test -exec "env PKG_CONFIG_PATH=${PKG_CONFIG_PATH} LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" ${BUILD_TAGS} -v -timeout {{.TEST_TIMEOUT}}s ./internal/integration -run TestClientSideEncryptionProse/kms_retry_tests >> test.suite
152152

153+
evg-test-client-side-encryption:
154+
- go test -exec "env PKG_CONFIG_PATH=${PKG_CONFIG_PATH} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} DYLD_LIBRARY_PATH=${MACOS_LIBRARY_PATH}" ${BUILD_TAGS} -v -timeout {{.TEST_TIMEOUT}}s ./internal/integration -run TestClientSideEncryptionProse >> test.suite
155+
153156
evg-test-load-balancers:
154157
# Load balancer should be tested with all unified tests as well as tests in the following
155158
# components: retryable reads, retryable writes, change streams, initial DNS seedlist discovery.

0 commit comments

Comments
 (0)