Skip to content

Commit 5bbd870

Browse files
nkvuongnfx
andauthored
Fix test_create_global_spn (#1556)
## Changes - This test should not run ### Linked issues <!-- DOC: Link issue with a keyword: close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved. See https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword --> Resolves #1543 ### Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [ ] manually tested - [ ] verified on staging environment (screenshot attached) --------- Co-authored-by: Serge Smertin <[email protected]>
1 parent 945c98f commit 5bbd870

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/azure/test_access.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ def test_save_spn_permissions_local(ws, sql_backend, inventory_schema, make_rand
6464

6565

6666
@pytest.fixture
67-
def clean_up_spn():
67+
def clean_up_spn(env_or_skip):
68+
# Making sure this test can only be launched from local
69+
env_or_skip("IDE_PROJECT_ROOTS")
6870
graph_client = AzureAPIClient("https://graph.microsoft.com", "https://graph.microsoft.com")
6971
yield
7072
spns = graph_client.get("/v1.0/applications?$filter=startswith(displayName, 'UCXServicePrincipal')")['value']

0 commit comments

Comments
 (0)