Skip to content

Commit a5f9be8

Browse files
committed
Remove the loop and logs
1 parent d26cab3 commit a5f9be8

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

securitycenter/snippets_management_api/security_health_analytics_custom_modules_test.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ def teardown():
6060

6161

6262
def setup_shared_modules():
63-
for _ in range(1) :
64-
_, module_id = add_custom_module(ORGANIZATION_ID)
65-
if module_id != "" :
66-
shared_modules.append(module_id)
63+
_, module_id = add_custom_module(ORGANIZATION_ID)
64+
if module_id != "" :
65+
shared_modules.append(module_id)
6766

6867

6968
def add_module_to_cleanup(module_id):
@@ -201,7 +200,6 @@ def test_create_security_health_analytics_custom_module():
201200
# Run the function to create the custom module
202201
response = security_health_analytics_custom_modules.create_security_health_analytics_custom_module(parent)
203202
add_module_to_cleanup(extract_custom_module_id(response.name))
204-
print("Create module id::", extract_custom_module_id(response.name))
205203

206204
assert response is not None, "Custom module creation failed."
207205
# Verify that the custom module was created
@@ -215,7 +213,6 @@ def test_create_security_health_analytics_custom_module():
215213
def test_get_security_health_analytics_custom_module():
216214

217215
module_id = get_random_shared_module()
218-
print("Get module id::", module_id)
219216
parent = f"organizations/{ORGANIZATION_ID}/locations/{LOCATION}"
220217

221218
# Retrieve the custom module
@@ -268,7 +265,6 @@ def test_update_security_health_analytics_custom_module():
268265
module_id = extract_custom_module_id(response.name)
269266
add_module_to_cleanup(module_id)
270267

271-
print("Update module id::", module_id)
272268
# Retrieve the custom modules
273269
updated_custom_module = security_health_analytics_custom_modules.update_security_health_analytics_custom_module(parent, module_id)
274270

@@ -286,7 +282,6 @@ def test_get_effective_security_health_analytics_custom_module():
286282
module_id = get_random_shared_module()
287283
parent = f"organizations/{ORGANIZATION_ID}/locations/{LOCATION}"
288284

289-
print("Get Effective module id::", module_id)
290285
# Retrieve the custom module
291286
response = security_health_analytics_custom_modules.get_effective_security_health_analytics_custom_module(parent, module_id)
292287

0 commit comments

Comments
 (0)