Hello Team, I am trying to specify Pact broker usi...
# pact-jvm
h
Hello Team, I am trying to specify Pact broker using annotation @PactBroker but it is only allowing me to provide host, port and scheme. My Pact URL is https://<org-base-url>/pactbroker. If I only define the host, port and scheme then I get error as below which is expected because my pact broker is at "*/pactbroker"* not at "/": au.com.dius.pact.core.pactbroker.NotFoundHalResponse: No HAL document found at path '/' And If I specify
Copy code
@PactBroker(scheme = "https", host = "<org-base-url>/pactbroker")
I get error as:
Copy code
@PactBroker(scheme = "https", host = "<org-base-url>/pactbroker")
java.lang.IllegalArgumentException: Invalid pact broker host specified ('<http://<org-base-url>/pactbroker|<org-base-url>/pactbroker>'). Please provide a valid host or specify the system property 'pactbroker.host'. At the same time I am using @PactUrl to specify the pact URL but due to that verification result is not getting published. JDK version: 1.8 au.com.dius.pact.provider.junit5 : 4.1.11 Can someone help with this? Maybe I am missing something!! thinking2
1
Never mind. I just saw this: https://github.com/pact-foundation/pact-jvm/#supported-jdk-and-specification-versions updated the dependency to 4.1.41 and using the @PactBroker(url="").