Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security] Temporarily remove test #26531

Merged
merged 1 commit into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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