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

ci: Skip Python service tests when access token is absent #10717

Merged
merged 1 commit into from Sep 15, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/python/lib/test/automation/test_errors.py
Expand Up @@ -28,7 +28,7 @@
compilation_error_project = "compilation_error"
runtime_error_project = "runtime_error"


@pytest.mark.skipif("PULUMI_ACCESS_TOKEN" not in os.environ, reason="PULUMI_ACCESS_TOKEN not set")
class TestErrors(unittest.TestCase):
def test_inline_runtime_error_python(self):
project_name = "inline_runtime_error_python"
Expand Down
5 changes: 3 additions & 2 deletions sdk/python/lib/test/automation/test_isolation.py
Expand Up @@ -18,6 +18,7 @@
# operations.

import asyncio
import os
import pytest
import sys
import typing
Expand Down Expand Up @@ -77,7 +78,7 @@ async def async_stack_up(stack):
async def async_stack_destroy(stack):
return stack.destroy()


@pytest.mark.skipif("PULUMI_ACCESS_TOKEN" not in os.environ, reason="PULUMI_ACCESS_TOKEN not set")
@pytest.mark.asyncio
async def test_parallel_updates():
first_stack_name = f"stack-{uuid.uuid4()}"
Expand All @@ -88,7 +89,7 @@ async def test_parallel_updates():
stack_destroy_responses = await asyncio.gather(*[async_stack_destroy(stack) for stack in stacks])
assert all({stack_response.summary.result == "succeeded" for stack_response in stack_destroy_responses})


@pytest.mark.skipif("PULUMI_ACCESS_TOKEN" not in os.environ, reason="PULUMI_ACCESS_TOKEN not set")
@pytest.mark.skipif(
sys.platform == 'win32',
reason="TODO[pulumi/pulumi#8716] fails on Windows")
Expand Down
1 change: 1 addition & 0 deletions sdk/python/lib/test/automation/test_local_workspace.py
Expand Up @@ -109,6 +109,7 @@ def get_stack(stack_list: List[StackSummary], name: str) -> Optional[StackSummar
return None


@pytest.mark.skipif("PULUMI_ACCESS_TOKEN" not in os.environ, reason="PULUMI_ACCESS_TOKEN not set")
class TestLocalWorkspace(unittest.TestCase):
def test_project_settings(self):
for ext in extensions:
Expand Down