Skip to content

Commit

Permalink
delete (#26531)
Browse files Browse the repository at this point in the history
  • Loading branch information
BigCat20196 authored Sep 29, 2022
1 parent fcd4dee commit 3129bb9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 277 deletions.

This file was deleted.

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
1 change: 0 additions & 1 deletion sdk/security/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ pr:

extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
TestProxy: true
parameters:
ServiceDirectory: security
Artifacts:
Expand Down

0 comments on commit 3129bb9

Please sign in to comment.