Wojciech Wroblewski
02/18/2026, 3:40 PM@ExtendWith(SpringExtension.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
@Provider("provider-name")
@AllowOverridePactUrl
@PactBroker(scheme = "https", host = "${PACT_BROKER_BASE_URL}",providerBranch = "main", authentication = @PactBrokerAuth(token = "${PACT_BROKER_TOKEN}"))
public class ProviderVerificationTest
I exported my url and token to env variables. When running that test I'm getting
[ERROR] ProviderVerificationTest.pactVerificationTestTemplate(PactVerificationContext) » IllegalArgument Invalid pact broker host specified ('${PACT_BROKER_BASE_URL}'). Please provide a valid host or specify the system property 'pactbroker.host'.
any idea what may be wrong in my env/configuration?rholshausen
02/18/2026, 10:00 PMhost attribute should be just the hostname. Use url instead to set the full URL.Wojciech Wroblewski
02/19/2026, 9:08 AM