我有一个使用pactNet生成的pact文件(我是一名C#程序员),现在我如何将pact文件发布到pact-broker。为此,我使用Curl、ruby和java (使用Gradle)进行了大量的阅读,但没有看到任何与C#类似的东西。以前有没有人做到过这一点,如果有任何指导,我们将不胜感激..
发布于 2017-12-08 21:45:17
var pactPublisher = new PactPublisher("http://test.pact.dius.com.au", new PactUriOptions("username", "password"));
pactPublisher.PublishToBroker(
"..\\..\\..\\Samples\\EventApi\\Consumer.Tests\\pacts\\event_api_consumer-event_api.json",
"1.0.2", new [] { "master" });我认为您应该考虑将发布协议作为Consumer's build的CI任务。
https://stackoverflow.com/questions/44885225
复制相似问题