Skip to content

Commit

Permalink
Only run integration examples if UID2_BASE_URL is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollins-ttd committed Jul 30, 2024
1 parent d318c3e commit 0b1c000
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/com/uid2/client/test/IntegrationExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
import java.util.TimerTask;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;

import static org.junit.jupiter.api.Assertions.*;

@EnabledIfEnvironmentVariable(named = "UID2_BASE_URL", matches = "\\S+")
public class IntegrationExamples {
final String TEST_ENDPOINT = System.getenv("UID2_BASE_URL");
final String TEST_API_KEY = System.getenv("UID2_API_KEY");
Expand Down

0 comments on commit 0b1c000

Please sign in to comment.