Skip to content

Commit f5da0e9

Browse files
authored
Merge pull request #977 from NHSDigital/feature/eema1-NRL-753-fixCapabilitySmokeTest
NRL-753 skip capability test if internal
2 parents f5459c0 + 1b146b5 commit f5da0e9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/smoke/scenarios/api_capability_statement_lookup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
import os
2+
13
import pytest
24

35
from tests.utilities.api_clients import ConsumerTestClient, ProducerTestClient
46

57

6-
@pytest.mark.skip(
7-
reason="Capability statements aren't working when called via NRLF and not Producer/Consumer API"
8+
def is_public_url():
9+
return os.environ.get("TEST_CONNECT_MODE") == "public"
10+
11+
12+
@pytest.mark.skipif(
13+
not is_public_url(),
14+
reason="Capability statements only work via APIGEE in persistent environments",
815
)
916
def test_read_api_capability_statements(
1017
consumer_client: ConsumerTestClient, producer_client: ProducerTestClient

0 commit comments

Comments
 (0)