Skip to content

Commit dbbc6c6

Browse files
committed
Remove commented code
1 parent fdb733b commit dbbc6c6

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

securitycenter/snippets_management_api/security_health_analytics_custom_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
#
3-
# Copyright 2024 Google LLC
3+
# Copyright 2025 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

securitycenter/snippets_management_api/security_health_analytics_custom_modules_test.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
#
3-
# Copyright 2024 Google LLC
3+
# Copyright 2025 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -236,25 +236,13 @@ def test_delete_security_health_analytics_custom_module():
236236
)
237237
def test_list_security_health_analytics_custom_module():
238238

239-
# module_id = get_random_shared_module()
240239
parent = f"organizations/{ORGANIZATION_ID}/locations/{LOCATION}"
241240
# Retrieve the custom modules
242241
custom_modules = security_health_analytics_custom_modules.list_security_health_analytics_custom_module(parent)
243242

244243
assert custom_modules is not None, "Failed to retrieve the custom modules."
245244
assert len(custom_modules) > 0, "No custom modules were retrieved."
246245

247-
# # Verify the created module is in the list
248-
# created_module = next(
249-
# (module for module in custom_modules if extract_custom_module_id(module.name) == module_id), None
250-
# )
251-
# assert created_module is not None, "Created custom module not found in the list."
252-
# assert created_module.display_name.startswith(PREFIX)
253-
# assert (
254-
# created_module.enablement_state
255-
# == securitycentermanagement_v1.SecurityHealthAnalyticsCustomModule.EnablementState.ENABLED
256-
# )
257-
258246

259247
@backoff.on_exception(
260248
backoff.expo, (InternalServerError, ServiceUnavailable, NotFound), max_tries=3

0 commit comments

Comments
 (0)