Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to tell the broker whether a missing consumer or missing provider is safe for a particular contract #697

Open
canny bot opened this issue Jun 26, 2024 · 1 comment

Comments

@canny
Copy link

canny bot commented Jun 26, 2024

At the moment, can-i-deploy returns false if you're trying to deploy a consumer without a provider, but true if you're trying to deploy a provider without a consumer.

This is appropriate behaviour if the consumer is an HTTP client, and the provider is an HTTP server.

In some contract types (eg SQS messages), both sides can safely deploy without the other one there.

With websockets, an HTTP client might be the producer.

A common scenario for websockets is two contracts - one between the client(consumer) and the servir (producer), and the other between the server (consumer) and the client(producer). The current behaviour of the broker will make it impossible to deploy a websocket server without a client, and impossible to deploy the client without the server.

All these problems could be fixed if it was possible to specify at a contract level which of the consumer / provider need to be present (or not) in order to deploy.

https://pact.canny.io/admin/board/feature-requests/p/ability-to-tell-the-broker-whether-a-missing-consumer-or-missing-provider-is-saf

Copy link
Author

canny bot commented Jun 26, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants