Skip to content

Commit

Permalink
Fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
onagbonoga committed Oct 30, 2024
1 parent 680d2c0 commit d12852b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion securitycenter/snippets_v2/regional_endpoint_snippet.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ def rep_list_finding(parent, endpoint) -> int:
)
return count

# [END securitycenter_regional_endpoint_list_findings]
# [END securitycenter_regional_endpoint_list_findings]
7 changes: 6 additions & 1 deletion securitycenter/snippets_v2/regional_endpoint_snippet_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os

import pytest

import regional_endpoint_snippet


@pytest.fixture(scope="module")
def parent():
return f"{(os.environ['DRZ_SA_ORGANIZATION'])}/sources/-/locations/sa"


def endpoint():
return "securitycenter.me-central2.rep.googleapis.com"


def test_rep_list_finding():
count = regional_endpoint_snippet.rep_list_finding(parent, endpoint)
assert count > 0
assert count > 0

0 comments on commit d12852b

Please sign in to comment.