Zeus
09/23/2022, 8:32 AMRuby
(Consumer)
B -> microservice which is written in GoLang
(Producer)
Do I need to use pact-ruby
and pact-go
on consumer and producer side respectively?
Is there anything in addition I should before introducing the pact contract tests?Timothy Jones
09/25/2022, 2:12 PMTimothy Jones
09/25/2022, 2:13 PMTimothy Jones
09/25/2022, 2:14 PMTimothy Jones
09/25/2022, 2:15 PMZeus
09/27/2022, 3:12 AMyou'll have a better time with pact-ruby and pact-go on each side, but you don't technically _need_ to
Can you please explain it a bit? Would it be possible to write the pact tests without using pact-ruby since consumer service is written in pretty old version of Ruby ?
Also, would contract tests be ideal to have between a monolithic and microservice ?Timothy Jones
09/27/2022, 7:02 AMWould it be possible to write the pact tests without using pact-ruby since consumer service is written in pretty old version of Ruby ?Apologies, I probably led you a bit astray. It's technically possible, but you'll be much better off using the native framework for your language(s), as then you can easily (eg) call client code, etc.
Timothy Jones
09/27/2022, 7:02 AMAlso, would contract tests be ideal to have between a monolithic and microservice ?Yes. Contract tests are useful any time you have a consumer (client) and a provider (server) that are deployed separately.
Zeus
09/27/2022, 8:00 AMTimothy Jones
09/27/2022, 8:03 AM