Skip to content

Commit

Permalink
Skip some tests not working currently with GitLab pipelines
Browse files Browse the repository at this point in the history
Since we are running tests in GitLab pipelines we do not have access to
the GitHub API and cannot run docker.
  • Loading branch information
pierretr committed Jul 5, 2024
1 parent 78bc0bc commit 96bd37c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/tests_e3_aws/cfn/arch/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
GITHUB_API_RANGE = {"git": ["127.0.0.0/24", "2a0a:a440::/29"]}


@pytest.mark.skip(
reason="This test does not work offline and the associated feature is deprecated"
)
@pytest.mark.parametrize("enable_github", [True, False])
def test_create_fortress(enable_github, requests_mock):
if enable_github:
Expand Down Expand Up @@ -108,6 +111,9 @@ def test_create_fortress(enable_github, requests_mock):
assert f.body


@pytest.mark.skip(
reason="This test does not work offline and the associated feature is deprecated"
)
def test_create_fortress_no_bastion():
aws_env = AWSEnv(regions=["us-east-1"], stub=True)
with default_region("us-east-1"):
Expand Down
3 changes: 3 additions & 0 deletions tests/tests_e3_aws/troposphere/awslambda/awslambda_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ def test_pyfunction_policy_document(stack: Stack) -> None:
assert stack.cfn_policy_document().as_dict == EXPECTED_PYFUNCTION_POLICY_DOCUMENT


@pytest.mark.skip(
reason="This test does not work in GitLab CI jobs. Disable it for now.",
)
def test_docker_function(stack: Stack, has_docker: pytest.Fixture) -> None:
"""Test adding docker function to stack."""
aws_env = AWSEnv(regions=["us-east-1"], stub=True)
Expand Down

0 comments on commit 96bd37c

Please sign in to comment.