Skip to content

Commit

Permalink
test: add failing spec for #550
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Mar 20, 2022
1 parent 351bcce commit 8c582f8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/fixtures/approvals/matrix_integration_spec.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,11 @@
"reasons": [
"PactBroker::Matrix::NoDependenciesMissing"
]
},
"PactBroker::Matrix::Service find when the consumer version currently deployed has no pacts with a provider allows the provider to be deployed": {
"deployable": null,
"reasons": [
"PactBroker::Matrix::PactNotVerifiedByRequiredProviderVersion"
]
}
}
20 changes: 20 additions & 0 deletions spec/lib/pact_broker/matrix/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,26 @@ module Matrix
end
end
end

describe "when the consumer version currently deployed has no pacts with a provider" do
before do
td.publish_pact(consumer_name: "c1", provider_name: "p1", consumer_version_number: "1")
.create_verification(provider_version: "1")
.create_consumer_version("2", tag_names: "prod")
end

let(:options) { { latestby: "cvp", latest: true, tag: "prod" } }

let(:selectors) do
[
UnresolvedSelector.new(pacticipant_name: "p1", pacticipant_version_number: "1")
]
end

it "allows the provider to be deployed", pending: true do
expect(subject.deployment_status_summary).to be_deployable
end
end
end
end
end
Expand Down

0 comments on commit 8c582f8

Please sign in to comment.