-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: change approvals format to json
- Loading branch information
Showing
9 changed files
with
356 additions
and
343 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
spec/fixtures/approvals/matrix_integration_environment_spec.approved.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"PactBroker::Matrix::Service find with environments when there is a successful verification between the provider in test environment and the consumer to be deployed allows the consumer to be deployed": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::Successful" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find with environments when there is an unsuccessful verification between the provider in test environment and the consumer to be deployed does not allow the consumer to be deployed": { | ||
"deployable": false, | ||
"reasons": [ | ||
"PactBroker::Matrix::VerificationFailed" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find with environments when the provider has not been deployed to the given environment does not allow the consumer to be deployed": { | ||
"deployable": null, | ||
"reasons": [ | ||
"PactBroker::Matrix::PactNotEverVerifiedByProvider" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find with environments when the consumer has not been deployed to the given environment allows the provider to be deployed": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::NoDependenciesMissing" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find with environments when deploying a version of a provider with multiple versions of a consumer in production knows that there are multiple versions of the consumer in production": { | ||
"deployable": null, | ||
"reasons": [ | ||
"PactBroker::Matrix::PactNotEverVerifiedByProvider" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find with environments when deploying a version of a provider with multiple versions of a consumer in production when a verification for the latest prod version is missing does not allow the provider to be deployed": { | ||
"deployable": null, | ||
"reasons": [ | ||
"PactBroker::Matrix::PactNotEverVerifiedByProvider" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find with environments when deploying a version of a provider with multiple versions of a consumer in production when there is a successful verification for every prod version of the consumer does allow the provider to be deployed": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::Successful" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find with environments when deploying a version of a consumer with multiple versions of a provider in production knows that there are multiple versions of the provider in production": { | ||
"deployable": null, | ||
"reasons": [ | ||
"PactBroker::Matrix::PactNotEverVerifiedByProvider" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find with environments when deploying a version of a consumer with multiple versions of a provider in production when a verification for the latest prod version is missing does not allow the consumer to be deployed": { | ||
"deployable": null, | ||
"reasons": [ | ||
"PactBroker::Matrix::PactNotEverVerifiedByProvider" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find with environments when deploying a version of a consumer with multiple versions of a provider in production when there is a successful verification for every prod version of the consumer does allow the consumer to be deployed": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::Successful" | ||
] | ||
} | ||
} |
61 changes: 0 additions & 61 deletions
61
spec/fixtures/approvals/matrix_integration_environment_spec.approved.txt
This file was deleted.
Oops, something went wrong.
124 changes: 124 additions & 0 deletions
124
spec/fixtures/approvals/matrix_integration_ignore_spec.approved.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
{ | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider with a missing verification from a provider deployment_status_summary is expected to be deployable": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::NoDependenciesMissing" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider with a missing verification from a provider without any ignore selectors deployment_status_summary is expected not to be deployable": { | ||
"deployable": null, | ||
"reasons": [ | ||
"PactBroker::Matrix::PactNotEverVerifiedByProvider" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider with a failed verification from a provider deployment_status_summary is expected to be deployable": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::NoDependenciesMissing" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider with a failed verification from a provider without any ignore selectors deployment_status_summary is expected not to be deployable": { | ||
"deployable": false, | ||
"reasons": [ | ||
"PactBroker::Matrix::VerificationFailed" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider with a failed verification from a provider when ignoring the specific provider version deployment_status_summary is expected to be deployable": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::NoDependenciesMissing" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider with a failed verification from a provider when ignoring a different specific provider version deployment_status_summary is expected not to be deployable": { | ||
"deployable": false, | ||
"reasons": [ | ||
"PactBroker::Matrix::IgnoreSelectorDoesNotExist", | ||
"PactBroker::Matrix::VerificationFailed" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider when the provider has not been deployed deployment_status_summary is expected to be deployable": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::NoDependenciesMissing" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider when the provider has not been deployed without any ignore selectors deployment_status_summary is expected not to be deployable": { | ||
"deployable": null, | ||
"reasons": [ | ||
"PactBroker::Matrix::PactNotEverVerifiedByProvider" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider when the consumer and provider have been specified deployment_status_summary is expected to be deployable": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::NoDependenciesMissing", | ||
"PactBroker::Matrix::SelectorWithoutPacticipantVersionNumberSpecified" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider when the consumer and provider have been specified without any ignore selectors deployment_status_summary is expected not to be deployable": { | ||
"deployable": false, | ||
"reasons": [ | ||
"PactBroker::Matrix::SelectorWithoutPacticipantVersionNumberSpecified", | ||
"PactBroker::Matrix::VerificationFailed" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider when the consumer and provider have been specified and the provider version specified does not exist deployment_status_summary is expected to be deployable": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::NoDependenciesMissing", | ||
"PactBroker::Matrix::SelectorWithoutPacticipantVersionNumberSpecified" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider when the consumer and provider have been specified and the provider version specified does not exist without any ignore selectors deployment_status_summary is expected not to be deployable": { | ||
"deployable": false, | ||
"reasons": [ | ||
"PactBroker::Matrix::SelectorWithoutPacticipantVersionNumberSpecified", | ||
"PactBroker::Matrix::SpecifiedVersionDoesNotExist" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider when the provider to ignore does not exist includes a warning about the incorrect ignore selector": { | ||
"deployable": null, | ||
"reasons": [ | ||
"PactBroker::Matrix::IgnoreSelectorDoesNotExist", | ||
"PactBroker::Matrix::PactNotEverVerifiedByProvider" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a consumer and ignoring a provider when the provider version to ignore does not exist includes a warning about the incorrect ignore selector": { | ||
"deployable": null, | ||
"reasons": [ | ||
"PactBroker::Matrix::IgnoreSelectorDoesNotExist", | ||
"PactBroker::Matrix::PactNotEverVerifiedByProvider" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a provider and ignoring a consumer with a missing verification from a provider does allows the provider to be deployed even without ignoring anything because there is no connection between that version of the provider and the consumer": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::NoDependenciesMissing" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a provider and ignoring a consumer with a failed verification from a provider deployment_status_summary is expected to be deployable": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::NoDependenciesMissing" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a provider and ignoring a consumer with a failed verification from a provider without any ignore selectors deployment_status_summary is expected not to be deployable": { | ||
"deployable": false, | ||
"reasons": [ | ||
"PactBroker::Matrix::VerificationFailed" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a provider and ignoring a consumer with a failed verification from a provider when ignoring the specific consumer version deployment_status_summary is expected to be deployable": { | ||
"deployable": true, | ||
"reasons": [ | ||
"PactBroker::Matrix::NoDependenciesMissing" | ||
] | ||
}, | ||
"PactBroker::Matrix::Service find when deploying a provider and ignoring a consumer with a failed verification from a provider when ignoring the wrong specific consumer version deployment_status_summary is expected not to be deployable": { | ||
"deployable": false, | ||
"reasons": [ | ||
"PactBroker::Matrix::IgnoreSelectorDoesNotExist", | ||
"PactBroker::Matrix::VerificationFailed" | ||
] | ||
} | ||
} |
125 changes: 0 additions & 125 deletions
125
spec/fixtures/approvals/matrix_integration_ignore_spec.approved.txt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.