Damian
06/09/2022, 7:54 PMAbhishek
06/10/2022, 10:18 AMAbhishek
06/10/2022, 10:18 AMAbhishek
06/10/2022, 10:55 AMJonatan Jaworski
06/14/2022, 10:06 PMJonatan Jaworski
06/16/2022, 1:41 AMdamian
06/16/2022, 4:18 PMThere is no verified pact between version 1.0.0 of demo-app and a version of GameService currently deployed or released to production (no version is currently recorded as deployed/released in this environment)
when running can-i-deploy. How do I configure/set the environment for my consumer + provider contracts? I couldn't find it in the Pact Broker Client CLI commands.Prasad
06/16/2022, 4:19 PMWayne Ng
06/17/2022, 7:49 PMResponse body is incompatible with the response body schema in the spec file: should NOT have additional properties - id
Mismatched Pact Path:
[root].interactions[0].response.body.paymentMethods[0]
Mismatched Provider Path:
[root].paths./userprofile/v1/paymentmethods.get.responses.200.content.application/json.schema.properties.paymentMethods.items.additionalProperties
In our provider contract, if we follow the provider path, items can be anyOf
, as seen below
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
paymentMethods:
type: array
items:
anyOf:
- $ref: '#/components/schemas/creditCard'
- $ref: '#/components/schemas/bankAccount'
schemas:
creditCard:
type: object
properties:
id:
type: integer
userId:
type: integer
externalId:
type: string
type:
type: string
lastFour:
type: string
isPrimary:
type: boolean
issuer:
type: string
verificationStatus:
type: string
expiration:
type: object
properties:
year:
type: integer
month:
type: integer
We're wondering why the contract comparison can't find the schema definition? paymentMethods[0]
is matching the credit card schema currently in our consumer contract
As an aside, should BDCT questions be in #C5F4KFKR8 or #CLS16AVEE (since it's currently just a pactflow feature)?Ben Hubbard
06/20/2022, 11:36 AMAnja Gruss
06/20/2022, 12:18 PMAnton Yakutovich
06/23/2022, 12:14 PMNoMethodError - undefined method `request_uri' for #<URI::Generic ?>
Anton Yakutovich
06/29/2022, 11:29 AM.env
target in the pact related actions: https://github.com/pactflow/example-bi-directional-provider-dredd/blob/master/Makefile#L34
For me it doesn't expose variables from the existing .env
file on macos. So I ended up adding the snippet on the top of Makefile:
# Export all variable to sub-make if .env exists
ifneq (,$(wildcard ./.env))
include .env
export
endif
Am I doing it wrong way?Francisco Moreno Sanz
07/03/2022, 5:30 PMFrancisco Moreno Sanz
07/03/2022, 5:30 PMFrancisco Moreno Sanz
07/03/2022, 5:30 PMBen Hubbard
07/05/2022, 12:20 PMGanesh
07/06/2022, 7:02 PM$Headers = @{
Authorization = "Basic $([System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("dXfltyFMgNOFZAxr8io9wJ37iUpY42M:O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1")))"
}
$res = Invoke-WebRequest -Uri "https://test.pactflow.io/pacts/provider/Animal%20Profile%20Service/consumer/Matching%20Service/version/1.0.0" -Headers $Headers -Method Put -InFile .\matching_service-animal_profile_service.json -ContentType "application/json"Alex Stout
07/07/2022, 4:21 PMError retrieving <https://cinch.pactflow.io/pacts/provider/marketplace-gateway-component/for-verification> status=404 (Pact::Hal::ErrorResponseReturned)
Harris Lee
07/07/2022, 11:39 PMMadhulika Mitra
07/08/2022, 2:57 PMNoor Hashem
07/14/2022, 5:50 PMLewis Prescott
07/19/2022, 9:53 AMRunlin Xiao
07/19/2022, 6:04 PM./pact/bin/pactflow publish-provider-contract ./openapi.yaml --provider=CC-Go-Template-Service-Provider -a v0.01 --broker-base-url=<https://mydns.pactflow.io> -k $PACT_TOKEN --branch main --contentType=application/yaml --verification-exit-code=0
ERROR: "pactflow publish_provider_contract" was called with arguments ["./openapi.yaml", "--contentType", "application/yaml"]
Usage: "pactflow publish-provider-contract CONTRACT_FILE ... --provider=PROVIDER -a, --provider-app-version=PROVIDER_APP_VERSION -b, --broker-base-url=BROKER_BASE_URL"
PS: I’ve read the publish-provider-contract page and its repo, I’m wondering if it’s necessary to have the collection first and run the newman in CI then publish?Noor Hashem
07/20/2022, 2:30 PMWilco van Esch
07/22/2022, 2:27 PMJerry Wang
07/25/2022, 8:24 AMadmin/users
in Pactflow? If yes, where can I find the documentation? I'm trying to build some kind of user onboarding automation, and the built-in HAL Browser isn't very useful IMHO.Hazem Borham
07/25/2022, 11:40 PMAlan Still
07/26/2022, 12:26 PMJuan Cruz
01/06/2022, 3:30 AM