Skip to content

Commit ec12424

Browse files
committed
PYTHON-5151 Convert kms tests to use python scripts
1 parent 80601f1 commit ec12424

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
11
tasks:
2+
# Kms tests
3+
- name: test-gcp
4+
commands:
5+
- func: run tests
6+
vars:
7+
TEST_NAME: kms
8+
SUB_TEST_NAME: gcp
9+
- name: test-gcp-fail
10+
commands:
11+
- func: bootstrap mongo-orchestration
12+
- func: run tests
13+
vars:
14+
TEST_NAME: kms
15+
SUB_TEST_NAME: gcp fail
16+
- name: test-azure
17+
commands:
18+
- func: run tests
19+
vars:
20+
TEST_NAME: kms
21+
SUB_TEST_NAME: azure
22+
- name: test-azure-fail
23+
commands:
24+
- func: bootstrap mongo-orchestration
25+
- func: run tests
26+
vars:
27+
TEST_NAME: kms
28+
SUB_TEST_NAME: azure fail
29+
230
# Load balancer tests
331
- name: test-load-balancer-auth-ssl
432
commands:

.evergreen/scripts/generate_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ def create_load_balancer_tasks():
835835
return tasks
836836

837837

838-
def create_kms_tests():
838+
def create_kms_tasks():
839839
tasks = []
840840
for kms_type in ["gcp", "azure"]:
841841
for success in [True, False]:
@@ -851,6 +851,7 @@ def create_kms_tests():
851851
test_func = FunctionCall(func="run tests", vars=test_vars)
852852
commands.append(test_func)
853853
tasks.append(EvgTask(name=name, commands=commands))
854+
return tasks
854855

855856

856857
##################

0 commit comments

Comments
 (0)