Hi team I am facing a basic issue: 1. There are tw...
# general
r
Hi team I am facing a basic issue: 1. There are two consumers say pact-consumer and pact-consumer-b for same provider 2. When pact-consumer publishes new contract with tag T1, webhook triggers build for provider 3. When provider build runs, it verifies successfully contract between pact-consumer and provider with tag T1 but fails for pact-consumer-b and provider with tag T1(as expected) Below screenshot shows provider annotation where pactConsumerTag value is T1 sent by webhook as explained in thread
webhook configuration:
Copy code
{
    "uuid": "uuid",
    "description": "POST <http://gitlab.dev.tripadvisor.com|gitlab.dev.tripadvisor.com>",
    "consumer": {
        "name": "pact-consumer"
    },
    "provider": {
        "name": "pact-provider"
    },
    "enabled": true,
    "request": {
        "method": "POST",
        "url": "<https://gitlab.dev.tripadvisor.com/api/v4/projects/><id>/trigger/pipeline",
        "headers": {
            "Accept": "multipart/form-data"
        },
        "body": "token=<TOKEN>&ref=develop&variables[PACT_CONSUMER_TAG]=${pactbroker.consumerVersionTags}&variables[PIPELINE_LIBRARIES]=contract_verification,no_common"
    },
    "events": [
        {
            "name": "contract_content_changed"
        }
    ],
    "createdAt": "2022-06-07T01:32:01+00:00",
please suggest how should i update config so that provider runs T1 tagged test for particular consumer and not for all consumers
@Matt (pactflow.io / pact-js / pact-go) can you please suggest
b
Please do not tag the maintainers.
sorry 1
The triggered provider build should only verify the changed pact at the URL that is passed through via the webhook.
If you do this workshop, it will explain that all https://docs.pactflow.io/docs/workshops/ci-cd
There is a way to pass in the specific URL of the pact, not the consumer name/tags.
Please look at the docs for your pact testing framework.
Also, it’s best to ask questions in the channel for your specific language (eg #C9UN99H24)
r
sure thanks, let me have a look