You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a scenario, where a provider test (Java, Junit5, Pact Broker & Quarkus-Test as API-Provider) should be executed in CI/CD. Therefor, the provider name should be set from CI/CD:
@QuarkusTest
@Provider("my-project-name-from-CI-CD") // is there an API for setting the name at runtime?
@PactBroker(host = "${pactbroker.host}", port = "${pactbroker.port}")
public class PactDemoIT {
@BeforeAll
static void init() {
System.setProperty("pact.provider.version", System.getProperty("project.version", "unkown"));
System.setProperty("pact.verifier.publishResults", "true");
}
@TestTemplate
@ExtendWith(PactVerificationInvocationContextProvider.class)
void pactVerificationTestTemplate(PactVerificationContext context) {
context.verifyInteraction();
}
@BeforeEach
void init(PactVerificationContext context) throws Exception {
context.setTarget(HttpTestTarget.fromUrl(new URL(RestAssured.baseURI + ":" + RestAssured.port)));
}
@State({ "datastage0" })
void initState() {
}
}
The text was updated successfully, but these errors were encountered:
Hello,
We have a scenario, where a provider test (Java, Junit5, Pact Broker & Quarkus-Test as API-Provider) should be executed in CI/CD. Therefor, the provider name should be set from CI/CD:
The text was updated successfully, but these errors were encountered: