Skip to content

Commit

Permalink
test: update provider states for pact
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 31, 2017
1 parent c5c800f commit 3dff7d0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/service_consumers/provider_states_for_pact_broker_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,20 @@
end
end

provider_state "the pact for Foo version 1.2.3 has been successfully verified by Bar version 4.5.6 with tag prod, and 1.2.4 unsuccessfully by 9.9.9" do
set_up do
TestDataBuilder.new
.create_pact_with_hierarchy("Foo", "1.2.3", "Bar")
.create_verification(provider_version: "4.5.6")
.use_provider("Bar")
.use_provider_version("4.5.6")
.create_provider_version_tag("prod")
.create_consumer_version("1.2.4")
.create_pact
.create_verification(provider_version: "9.9.9", success: false)
end
end

provider_state "the 'Pricing Service' does not exist in the pact-broker" do
no_op
end
Expand Down

0 comments on commit 3dff7d0

Please sign in to comment.