Skip to content

Commit

Permalink
test: change approvals format to json
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Aug 11, 2021
1 parent 661f91c commit f696329
Show file tree
Hide file tree
Showing 9 changed files with 356 additions and 343 deletions.
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"
]
}
}

This file was deleted.

124 changes: 124 additions & 0 deletions spec/fixtures/approvals/matrix_integration_ignore_spec.approved.json
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 spec/fixtures/approvals/matrix_integration_ignore_spec.approved.txt

This file was deleted.

Loading

0 comments on commit f696329

Please sign in to comment.