它在管道的can-I部署阶段产生的错误如下:
The verification between the latest version of BusinessEventConsumerCustomerConsentionPhoneCall with tag phoenix (fd53a677) and version 002bf857 of EarningAPI failed我没有做任何违反契约的事。gitlab-ci.yaml文件中的代码如下所示:
pact-can-i-deploy-to-phoenix:
stage: pact-can-i-deploy-to-phoenix
image: ...
script:
- pact-broker can-i-deploy --pacticipant DenemeAPI --version $CI_COMMIT_SHORT_SHA --to phoenix --retry-while-unknown=12 --retry-interval=10
except:
- triggers
tags:
- customer
pact-tag-for-phoenix:
stage: pact-tag-for-phoenix
image: ...
script:
- pact-broker create-version-tag --pacticipant DenemeAPI --version $CI_COMMIT_SHORT_SHA --tag=phoenix
except:
- triggers
tags:
- customer这里的主要问题是它应该验证一个pact测试,但是它试图验证属于该api.的所有测试。
是什么导致了这个问题,有什么建议吗?我会很高兴,谢谢!
发布于 2021-12-27 13:21:31
试着像这样写:
stages:
- pact-can-i-deploy-to-phoenix
- pact-tag-for-phoenix
pact-can-i-deploy-to-phoenix:
stage: pact-can-i-deploy-to-phoenix
image: registry.gitlab.com/modanisatech/customer/docker-images/pact-cli/master:latest
script:
- pact-broker can-i-deploy --pacticipant EarningAPI --version $CI_COMMIT_SHORT_SHA --to phoenix --retry-while-unknown=12 --retry-interval=10
except:
- triggers
tags:
- customer
pact-tag-for-phoenix:
stage: pact-tag-for-phoenix
image: registry.gitlab.com/modanisatech/customer/docker-images/pact-cli/master:latest
script:
- pact-broker create-version-tag --pacticipant EarningAPI --version $CI_COMMIT_SHORT_SHA --tag=phoenix
except:
- triggers
tags:
- customer
发布于 2021-12-29 15:44:34
协约的验证是如何完成的?那些失败的核查协议的细节是什么?提供者团队可能已经进行了导致此问题的更新。很难从给定的描述中提供适当的答案。
https://stackoverflow.com/questions/70493149
复制相似问题