pact-with-kubernetes
pact-with-kubernetes copied to clipboard
trying this on nativ k8s
Hi.
after changing things so i could push it to our repo and then deployed it to kubernetes i got stuck on this: `./gradlew pactVerify
Task :pactVerify_denverProvider
Verifying a pact between denverConsumer and denverProvider [from Pact Broker http://172.20.10.211:32033/pacts/provider/denverProvider/consumer/denverConsumer/version/1.0.0] Given Pact for validating the request for Denver info WARNING: State Change ignored as there is no stateChange URL a request for Denver information Request Failed - sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Failures:
- Verifying a pact between denverConsumer and denverProvider - a request for Denver informationVerifying a pact between denverConsumer and denverProvider - a request for Denver information Given Pact for validating the request for Denver info sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
FAILURE: Build failed with an exception.
-
What went wrong: There were 1 pact failures for provider denverProvider
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
-
Get more help at https://help.gradle.org
BUILD FAILED in 0s 1 actionable task: 1 executed ` havent been able to solve it with google.
Hi @ChristofferNicklassonLenswayGroup,
I haven't seen this specific message of the PACT test failure, but I do know the source code has an intentional mistake in the code the ensure the test fails for demonstration purposes. Remove the line 46 in CityController
denver.setName("This is wrong"); // Remove to ensure pactVerify will pass
and the test will then pass. The demonstation gets a different error message with the test failure, but try this change first and let me know.
I should put this information in the README.
Hello.
I was first believing that it was caused by that. but its the same error with or without that line.