File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,9 @@ def setup_kms(sub_test_name: str) -> None:
83
83
if sub_test_type == "remote" :
84
84
return
85
85
86
+ if sub_test_target == "azure" :
87
+ run_command ("./setup-secrets.sh" , cwd = kms_dir )
88
+
86
89
if success :
87
90
_create_archive ()
88
91
if sub_test_target == "azure" :
@@ -97,14 +100,13 @@ def setup_kms(sub_test_name: str) -> None:
97
100
_setup_gcp_vm (base_env )
98
101
99
102
if sub_test_target == "azure" :
100
- run_command ("./setup-secrets.sh" , cwd = kms_dir )
101
103
config = read_env (f"{ kms_dir } /secrets-export.sh" )
102
104
write_env ("KEY_NAME" , config ["AZUREKMS_KEYNAME" ])
103
105
write_env ("KEY_VAULT_ENDPOINT" , config ["AZUREKMS_KEYVAULTENDPOINT" ])
104
- write_env ("AZUREKMS_VMNAME" , config ["AZUREKMS_KEYNAME " ])
106
+ write_env ("AZUREKMS_VMNAME" , config ["AZUREKMS_VMNAME " ])
105
107
106
108
107
- def test_kms_vm (sub_test_name : str ) -> None :
109
+ def test_kms_remote (sub_test_name : str ) -> None :
108
110
env = _load_kms_config (sub_test_name )
109
111
if sub_test_name == "azure" :
110
112
key_name = os .environ ["KEY_NAME" ]
Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ def run() -> None:
101
101
102
102
# Run remote kms tests.
103
103
if TEST_NAME == "kms" and SUB_TEST_NAME in ["azure" , "gcp" ]:
104
- from kms_tester import test_kms_vm
104
+ from kms_tester import test_kms_remote
105
105
106
- test_kms_vm (SUB_TEST_NAME )
106
+ test_kms_remote (SUB_TEST_NAME )
107
107
return
108
108
109
109
# Run local tests.
You can’t perform that action at this time.
0 commit comments