yes..Verbose is set to true
LOg from test explorer like below
HiiRetail.Sslp.TrustLevel.Service.UnitTests.Contracts.ProviderTest.EnsureProviderApiHonoursPactWithConsumer
Source: ProviderTest.cs line 19
Duration: 19.4 sec
Message:
PactNet.PactFailureException : Pact verification failed. See output for details.
If the output is empty please provide a custom config.Outputters (IOutput) for your test framework, as we couldn't write to the console.
Stack Trace:
PactCoreHost`1.Start()
PactVerifier.Verify(String description, String providerState)
ProviderTest.EnsureProviderApiHonoursPactWithConsumer() line 42
RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Standard Output:
WARN: Ignoring unsupported combine AND for path $
INFO: Reading pact at ../../../pacts/sslp-basketauditdeterminationservice-sslp-trustlevelservice.json
Verifying a pact between sslp-basketauditdeterminationservice and sslp-trustlevelservice
Given basket audit configurations exist
A valid request to get all basket audit configurations
with POST /api/v1/configurations:get-for-audit-determination
returns a response which
WARN: Skipping set up for provider state 'basket audit configurations exist' for consumer 'sslp-basketauditdeterminationservice' as there is no --provider-states-setup-url specified.
INFO: Replacing header 'Tenant-Id: DevTenant' with 'Tenant-Id: DevTenant'
has status code 200 (FAILED - 1)
has a matching body (FAILED - 2)
includes headers
"Content-Type" which equals "application/json; charset=utf-8" (FAILED - 3)
Failures:
1) Verifying a pact between sslp-basketauditdeterminationservice and sslp-trustlevelservice Given basket audit configurations exist A valid request to get all basket audit configurations with POST /api/v1/configurations:get-for-audit-determination returns a response which has status code 200
Failure/Error: expect(response_status).to eql expected_response_status
expected: 200
got: 415
(compared using eql?)
2) Verifying a pact between sslp-basketauditdeterminationservice and sslp-trustlevelservice Given basket audit configurations exist A valid request to get all basket audit configurations with POST /api/v1/configurations:get-for-audit-determination returns a response which has a matching body
Failure/Error: expect(response_body).to match_term expected_response_body, diff_options, example
Actual:
Diff
--------------------------------------
WARN: Ignoring unsupported combine AND for path $
Key: - is expected
+ is actual
Matching keys and values are not shown
-{
- "tenant": {
- "defaultTrustLevelNumber": 3,
- "id": "DevTenant",
- "name": "Use this tenant during development"
- }
-}
Description of differences
--------------------------------------
* Expected a Hash (like {"tenant"=>{"defaultTrustLevelNumber"=>3, "id"=>"DevTenant", "name"=>"Use this tenant during development"}}) but got a String ("") at $
3) Verifying a pact between sslp-basketauditdeterminationservice and sslp-trustlevelservice Given basket audit configurations exist A valid request to get all basket audit configurations with POST /api/v1/configurations:get-for-audit-determination returns a response which includes headers "Content-Type" which equals "application/json; charset=utf-8"
WARN: Cannot publish verification for sslp-basketauditdeterminationservice as there is no link named pb:publish-verification-results in the pact JSON. If you are using a pact broker, please upgrade to version 2.0.0 or later.
Failure/Error: expect(header_value).to match_header(name, expected_header_value)
Expected header "Content-Type" to equal "application/json; charset=utf-8", but was nil
1 interaction, 1 failure
Failed interactions:
To re-run just this failing interaction, change the verify method to '.Verify(description: "A valid request to get all basket audit configurations", providerState: "basket audit configurations exist")'. Please do not check in this change! # A valid request to get all basket audit configurations given basket audit configurations exist