-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcd4dee
commit 3129bb9
Showing
3 changed files
with
29 additions
and
277 deletions.
There are no files selected for viewing
247 changes: 0 additions & 247 deletions
247
...ings/test_mgmt_security_applications.pyTestMgmtSecuritytest_security_operations_list.json
This file was deleted.
Oops, something went wrong.
58 changes: 29 additions & 29 deletions
58
sdk/security/azure-mgmt-security/tests/test_mgmt_security_applications.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
# coding: utf-8 | ||
|
||
# ------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# -------------------------------------------------------------------------- | ||
from contextlib import suppress | ||
|
||
import pytest | ||
|
||
from azure.mgmt.security.v2022_07_01_preview import SecurityCenter | ||
import azure.mgmt.security.models | ||
from azure.core.exceptions import HttpResponseError | ||
from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy | ||
|
||
AZURE_LOCATION = "eastus" | ||
|
||
|
||
class TestMgmtSecurity(AzureMgmtRecordedTestCase): | ||
def setup_method(self, method): | ||
self.mgmt_client = self.create_mgmt_client(SecurityCenter) | ||
|
||
@recorded_by_proxy | ||
def test_security_operations_list(self): | ||
# it proves that we can normally send request but maybe needs additional parameters | ||
with suppress(HttpResponseError): | ||
result = self.mgmt_client.applications.list() | ||
assert list(result) is not None | ||
# # coding: utf-8 | ||
# | ||
# # ------------------------------------------------------------------------- | ||
# # Copyright (c) Microsoft Corporation. All rights reserved. | ||
# # Licensed under the MIT License. See License.txt in the project root for | ||
# # license information. | ||
# # -------------------------------------------------------------------------- | ||
# from contextlib import suppress | ||
# | ||
# import pytest | ||
# | ||
# from azure.mgmt.security.v2022_07_01_preview import SecurityCenter | ||
# import azure.mgmt.security.models | ||
# from azure.core.exceptions import HttpResponseError | ||
# from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy | ||
# | ||
# AZURE_LOCATION = "eastus" | ||
# | ||
# | ||
# class TestMgmtSecurity(AzureMgmtRecordedTestCase): | ||
# def setup_method(self, method): | ||
# self.mgmt_client = self.create_mgmt_client(SecurityCenter) | ||
# | ||
# @recorded_by_proxy | ||
# def test_security_operations_list(self): | ||
# # it proves that we can normally send request but maybe needs additional parameters | ||
# with suppress(HttpResponseError): | ||
# result = self.mgmt_client.applications.list() | ||
# assert list(result) is not None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters