https://pact.io logo
#general
Title
# general
h

Hari Ravi

05/11/2022, 10:10 PM
Hi everyone! I’m new to PACT. I would like to know does PACT will work on Database contracts?
m

Matt (pactflow.io / pact-js / pact-go)

05/11/2022, 11:19 PM
If you mean SQL queries or something, then I think the answer is probably no
can you elaborate a bit more on what you want to achieve exactly?
thank you 1
h

Hari Ravi

05/17/2022, 9:40 PM
Sorry for the late reply. I got it ..basically looking for SQL..
m

Matt (pactflow.io / pact-js / pact-go)

05/18/2022, 12:50 AM
I don’t fully understand what you want to test with contract testing here? But I’d suggest contract testing is not going to be the best tool for the job here.
h

Hari Ravi

05/19/2022, 8:05 PM
Matt, Ignore my previous question. I went through pact documentation and got pact is only used for contracts. I have one more question..I want to publish the contract to the pact broker and my contract has timestamp data. Please let me know is it possible to change the time stamp data when the producer consumes the pact contract from the broker.
m

Matt (pactflow.io / pact-js / pact-go)

05/20/2022, 12:36 AM
the answer is “it depends”. In some languages you can
There are also things called “request filters” that can let you modify the request body too
h

Hari Ravi

05/20/2022, 1:21 AM
Thanks Matt. This helps
👍 1
6 Views