Matt Lund
05/20/2022, 9:08 PMLewis Prescott
05/21/2022, 9:23 AMMatt (pactflow.io / pact-js / pact-go)
Eugene Baranovsky
05/22/2022, 11:32 PMEugene Baranovsky
05/22/2022, 11:33 PMYousaf Nabi (pactflow.io)
With apologies for asking something that I see has been asked before..
I saw a lot of talk about it but I’m still not clear on whether it’s a no-go or whether it can be doneYou are reliant on real network calls being replayed by the client (in this case the Pact verifier) in order to issue calls to your provider application under test which has been started. Thanks for the additional context and links @Eugene Baranovsky . as I have not tickled .NET for many many moons, and have very little language specific advice to provide
Matt Lund
05/23/2022, 4:16 PMAdam Rodger (pact-net)
05/24/2022, 7:01 PMTestServer
. It runs in memory and thus the Rust core has no way of calling it. You have to start the host properly, like all the samples do.Adam Rodger (pact-net)
05/24/2022, 7:02 PMAdam Rodger (pact-net)
05/24/2022, 7:07 PMBret McClory
05/24/2022, 10:48 PMYeah this keeps coming up. You can't use theTrue, but it's understandable why .NET developers familiar with WebApplicationFactory reach for it when trying to implement Pact. WebApplicationFactory does more than just mock out the HTTP stack; it also provides a convenient/familiar API for customizing the SUT (Provider) in various ways that are useful in the context of Pact testing. E.g. replacing out-of-process dependencies with mocks, disabling authn, etc. Pact-Net doesn't have a polished story to tell around that** -- kind of an exercise for the implementer to roll their own WebApplicationFactory-like solution. ** as far as I can tell. Would be very happy to shown otherwise!. It runs in memory and thus the Rust core has no way of calling it.TestServer
Bret McClory
05/24/2022, 11:07 PM