@@ -60,7 +60,7 @@ def teardown():
6060
6161
6262def setup_shared_modules ():
63- for _ in range (3 ) :
63+ for _ in range (1 ) :
6464 _ , module_id = add_custom_module (ORGANIZATION_ID )
6565 if module_id != "" :
6666 shared_modules .append (module_id )
@@ -201,6 +201,7 @@ def test_create_security_health_analytics_custom_module():
201201 # Run the function to create the custom module
202202 response = security_health_analytics_custom_modules .create_security_health_analytics_custom_module (parent )
203203 add_module_to_cleanup (extract_custom_module_id (response .name ))
204+ print ("Create module id::" , extract_custom_module_id (response .name ))
204205
205206 assert response is not None , "Custom module creation failed."
206207 # Verify that the custom module was created
@@ -214,6 +215,7 @@ def test_create_security_health_analytics_custom_module():
214215def test_get_security_health_analytics_custom_module ():
215216
216217 module_id = get_random_shared_module ()
218+ print ("Get module id::" , module_id )
217219 parent = f"organizations/{ ORGANIZATION_ID } /locations/{ LOCATION } "
218220
219221 # Retrieve the custom module
@@ -240,6 +242,7 @@ def test_delete_security_health_analytics_custom_module():
240242 assert response is None
241243
242244 print (f"Custom module was deleted successfully: { module_id } " )
245+ shared_modules .remove (module_id )
243246
244247
245248@backoff .on_exception (
@@ -265,6 +268,7 @@ def test_update_security_health_analytics_custom_module():
265268 module_id = extract_custom_module_id (response .name )
266269 add_module_to_cleanup (module_id )
267270
271+ print ("Update module id::" , module_id )
268272 # Retrieve the custom modules
269273 updated_custom_module = security_health_analytics_custom_modules .update_security_health_analytics_custom_module (parent , module_id )
270274
@@ -282,6 +286,7 @@ def test_get_effective_security_health_analytics_custom_module():
282286 module_id = get_random_shared_module ()
283287 parent = f"organizations/{ ORGANIZATION_ID } /locations/{ LOCATION } "
284288
289+ print ("Get Effective module id::" , module_id )
285290 # Retrieve the custom module
286291 response = security_health_analytics_custom_modules .get_effective_security_health_analytics_custom_module (parent , module_id )
287292
0 commit comments