Skip to content

Commit cfeec66

Browse files
committed
extension cases: change cases which have the requirement for blob public access priority into 5
1 parent 4c18740 commit cfeec66

File tree

3 files changed

+64
-16
lines changed

3 files changed

+64
-16
lines changed

microsoft/testsuites/vm_extensions/runtime_extensions/custom_script.py

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,11 @@ def before_case(self, log: Logger, **kwargs: Any) -> None:
102102
@TestCaseMetadata(
103103
description="""
104104
Runs the Custom Script VM extension with a public Azure storage file uri.
105+
106+
Downgrading priority from 1 to 5. Due to the requirement for blob public access,
107+
which is restricted for security reasons.
105108
""",
106-
priority=1,
109+
priority=5,
107110
)
108111
def verify_public_script_run(
109112
self, log: Logger, node: Node, environment: Environment
@@ -130,8 +133,11 @@ def verify_public_script_run(
130133
description="""
131134
Runs the Custom Script VM extension with 2 public file uris passed in
132135
and second script being run. Verifies second script created.
136+
137+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
138+
which is restricted for security reasons.
133139
""",
134-
priority=3,
140+
priority=5,
135141
)
136142
def verify_second_public_script_run(
137143
self, log: Logger, node: Node, environment: Environment
@@ -173,8 +179,11 @@ def verify_second_public_script_run(
173179
description="""
174180
Runs the Custom Script VM extension with public file uri and command
175181
in both public and protected settings.
182+
183+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
184+
which is restricted for security reasons.
176185
""",
177-
priority=3,
186+
priority=5,
178187
)
179188
def verify_script_in_both_settings_failed(
180189
self, log: Logger, node: Node, environment: Environment
@@ -208,8 +217,11 @@ def verify_script_in_both_settings_failed(
208217
description="""
209218
Runs the Custom Script VM extension with public file uri and command in
210219
protected settings.
220+
221+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
222+
which is restricted for security reasons.
211223
""",
212-
priority=3,
224+
priority=5,
213225
)
214226
def verify_public_script_protected_settings_run(
215227
self, log: Logger, node: Node, environment: Environment
@@ -241,8 +253,11 @@ def verify_public_script_protected_settings_run(
241253
@TestCaseMetadata(
242254
description="""
243255
Runs the Custom Script VM extension without a command and a script.
256+
257+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
258+
which is restricted for security reasons.
244259
""",
245-
priority=3,
260+
priority=5,
246261
)
247262
def verify_public_script_without_command_run(
248263
self, log: Logger, node: Node, environment: Environment
@@ -292,8 +307,11 @@ def verify_base64_script_with_command_run(self, log: Logger, node: Node) -> None
292307
@TestCaseMetadata(
293308
description="""
294309
Runs the Custom Script VM extension with a base64 script.
310+
311+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
312+
which is restricted for security reasons.
295313
""",
296-
priority=3,
314+
priority=5,
297315
)
298316
def verify_public_script_with_base64_script_run(
299317
self, log: Logger, node: Node, environment: Environment
@@ -322,8 +340,11 @@ def verify_public_script_with_base64_script_run(
322340
@TestCaseMetadata(
323341
description="""
324342
Runs the Custom Script VM extension with a gzip'ed base64 script.
343+
344+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
345+
which is restricted for security reasons.
325346
""",
326-
priority=3,
347+
priority=5,
327348
)
328349
def verify_public_script_with_gzip_base64_script_run(
329350
self, log: Logger, node: Node, environment: Environment
@@ -464,8 +485,11 @@ def verify_private_sas_script_run(
464485
description="""
465486
Runs the Custom Script VM extension with a public Azure storage file uri
466487
pointing to a python script.
488+
489+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
490+
which is restricted for security reasons.
467491
""",
468-
priority=3,
492+
priority=5,
469493
)
470494
def verify_public_python_script_run(
471495
self, log: Logger, node: Node, environment: Environment

microsoft/testsuites/vm_extensions/runtime_extensions/run_commandv1.py

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ class RunCommandV1Tests(TestSuite):
9797
@TestCaseMetadata(
9898
description="""
9999
Runs the Run Command v2 VM extension with a public Azure storage file uri.
100+
101+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
102+
which is restricted for security reasons.
100103
""",
101-
priority=3,
104+
priority=5,
102105
)
103106
def verify_public_script_run(
104107
self, log: Logger, node: Node, environment: Environment
@@ -125,8 +128,11 @@ def verify_public_script_run(
125128
description="""
126129
Runs the Run Command v1 VM extension with 2 public file uris passed in
127130
and second script being run. Verifies second script created.
131+
132+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
133+
which is restricted for security reasons.
128134
""",
129-
priority=3,
135+
priority=5,
130136
)
131137
def verify_second_public_script_run(
132138
self, log: Logger, node: Node, environment: Environment
@@ -168,8 +174,11 @@ def verify_second_public_script_run(
168174
description="""
169175
Runs the Run Command v1 VM extension with public file uri and command
170176
in both public and protected settings.
177+
178+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
179+
which is restricted for security reasons.
171180
""",
172-
priority=3,
181+
priority=5,
173182
)
174183
def verify_script_in_both_settings_failed(
175184
self, log: Logger, node: Node, environment: Environment
@@ -203,8 +212,11 @@ def verify_script_in_both_settings_failed(
203212
description="""
204213
Runs the Run Command v1 VM extension with public file uri and command in
205214
protected settings.
215+
216+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
217+
which is restricted for security reasons.
206218
""",
207-
priority=3,
219+
priority=5,
208220
)
209221
def verify_public_script_protected_settings_run(
210222
self, log: Logger, node: Node, environment: Environment
@@ -236,8 +248,11 @@ def verify_public_script_protected_settings_run(
236248
@TestCaseMetadata(
237249
description="""
238250
Runs the Run Command v1 VM extension without a command and a script.
251+
252+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
253+
which is restricted for security reasons.
239254
""",
240-
priority=3,
255+
priority=5,
241256
)
242257
def verify_public_script_without_command_run_failed(
243258
self, log: Logger, node: Node, environment: Environment
@@ -289,8 +304,11 @@ def verify_base64_script_with_command_run_failed(
289304
@TestCaseMetadata(
290305
description="""
291306
Runs the Custom Script VM extension with a base64 script.
307+
308+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
309+
which is restricted for security reasons.
292310
""",
293-
priority=3,
311+
priority=5,
294312
)
295313
def verify_public_script_with_base64_script_run(
296314
self, log: Logger, node: Node, environment: Environment
@@ -460,8 +478,11 @@ def verify_private_sas_script_run(
460478
description="""
461479
Runs the Run Command v1 VM extension with a public Azure storage file uri
462480
pointing to a python script.
481+
482+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
483+
which is restricted for security reasons.
463484
""",
464-
priority=3,
485+
priority=5,
465486
)
466487
def verify_public_python_script_run(
467488
self, log: Logger, node: Node, environment: Environment

microsoft/testsuites/vm_extensions/runtime_extensions/run_commandv2.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,11 @@ def verify_script_run_with_protected_parameter(
207207
description="""
208208
Runs the Run Command v2 VM extension with a public uri pointing to the
209209
script in blob storage.
210+
211+
Downgrading priority from 3 to 5. Due to the requirement for blob public access,
212+
which is restricted for security reasons.
210213
""",
211-
priority=3,
214+
priority=5,
212215
)
213216
def verify_public_uri_script_run(
214217
self, log: Logger, node: Node, environment: Environment

0 commit comments

Comments
 (0)