Skip to content

Commit 80b6d26

Browse files
enabling tests in pipeline
1 parent fcd1cf4 commit 80b6d26

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@ jobs:
55
build:
66
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-build-and-test.yaml@v3
77
secrets: inherit
8-
with:
9-
vulnerability_scan_only: true

tests/test_identity_map_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66

77
from uid2_client import IdentityMapClient, IdentityMapInput, normalize_and_hash_email, normalize_and_hash_phone
88

9-
9+
@unittest.skipIf(
10+
os.getenv("UID2_BASE_URL") == None
11+
or os.getenv("UID2_API_KEY") == None
12+
or os.getenv("UID2_SECRET_KEY") == None,
13+
reason="Environment variables UID2_BASE_URL, UID2_API_KEY, and UID2_SECRET_KEY must be set",
14+
)
1015
class IdentityMapIntegrationTests(unittest.TestCase):
1116
UID2_BASE_URL = None
1217
UID2_API_KEY = None

tests/test_identity_map_v3_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
from uid2_client import IdentityMapV3Client, IdentityMapV3Input, IdentityMapV3Response, normalize_and_hash_email, normalize_and_hash_phone
88
from uid2_client.unmapped_identity_reason import UnmappedIdentityReason
99

10-
10+
@unittest.skipIf(
11+
os.getenv("UID2_BASE_URL") == None
12+
or os.getenv("UID2_API_KEY") == None
13+
or os.getenv("UID2_SECRET_KEY") == None,
14+
reason="Environment variables UID2_BASE_URL, UID2_API_KEY, and UID2_SECRET_KEY must be set",
15+
)
1116
class IdentityMapV3IntegrationTests(unittest.TestCase):
1217
UID2_BASE_URL = None
1318
UID2_API_KEY = None

tests/test_publisher_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
from uid2_client.identity_tokens import IdentityTokens
88
from urllib.request import HTTPError
99

10-
10+
@unittest.skipIf(
11+
os.getenv("EUID_BASE_URL") == None
12+
or os.getenv("EUID_API_KEY") == None
13+
or os.getenv("EUID_SECRET_KEY") == None,
14+
reason="Environment variables EUID_BASE_URL, EUID_API_KEY, and EUID_SECRET_KEY must be set",
15+
)
1116
class PublisherEuidIntegrationTests(unittest.TestCase):
1217

1318
EUID_SECRET_KEY = None

0 commit comments

Comments
 (0)