Skip to content

Commit

Permalink
Excluded endpoint variable added
Browse files Browse the repository at this point in the history
  • Loading branch information
samyakOO7 committed Feb 3, 2025
1 parent 9ae5ab7 commit 38933ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/com/store/ContractTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@

public class ContractTest implements SpecmaticContractTest {
private static ConfigurableApplicationContext context;

private static final String EXCLUDED_ENDPOINTS = "'/internal/metrics'";
@BeforeAll
public static void setUp() {
System.setProperty("host", "localhost");
System.setProperty("port", "8090");
System.setProperty("endpointsAPI", "http://localhost:8090/actuator/mappings");
System.setProperty("SPECMATIC_GENERATIVE_TESTS", "true");
System.setProperty("SPECMATIC_TEST_PARALLELISM", "auto");
System.setProperty("filter", "PATH!='/internal/metrics'");
System.setProperty("filter", String.format("PATH!=%s", EXCLUDED_ENDPOINTS));

DB.INSTANCE.resetDB();

context = SpringApplication.run(Application.class);
Expand Down

0 comments on commit 38933ef

Please sign in to comment.