Hi, I'm using Pactflow for CBT and found that on U...
# pact-broker
s
Hi, I'm using Pactflow for CBT and found that on UI and in jvm plugin for provider consumer contracts' name is wrong. My scenario is: • Consumer creates a Pact with interaction name and state name • Consumer publishes Pact to Pactflow • In Pactflow, interaction name becomes a mix of interaction name + state name • Same wrong name comes to provider when he executes contract validation with Maven/Gradle plugin Is it possible to not add state name to the interaction name as it's consuming users?
Copy code
"interactions": [
    {
      "_id": "0f45b9d0ec7cac44b590f56f5ef831aaa9122dde",
      "description": "Get details of termsheet with Rabobank client",
      "providerStates": [
        {
          "name": "Termsheet with Rabobank client exists"
        }
      ],
This is part of my Pact
It results in this name in Pactflow:
Get details of termsheet with Rabobank client given termsheet with Rabobank client exists
f
it's normal
☝️ 1
what you want is in the API section
message has been deleted
👀 1
if you open this and go to the response
message has been deleted
you should see the correct provider state
that is like a title for the interaction
m
You might like to also watch the video here: https://docs.pact.io/consumer
The broker is designed to help you understand the scenarios you are testing, and frames it in a BDD style
You should take this into consideration when authoring the tests
s
Thanks guys for explanation! Will check what you advice in the video.