Hi all, I tried to use below code ```@ExtendWith(S...
# pact-jvm
w
Hi all, I tried to use below code
Copy code
@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?
r
Probably because the
host
attribute should be just the hostname. Use
url
instead to set the full URL.
thankyou 1
w
thank you, that helped. I confused those 2