Jamie Weatherby
10/02/2023, 1:11 PMCorey Maynard
10/03/2023, 8:24 PMBeth (pactflow.io/Pact Broker/pact-ruby)
Jonathan Reyes
10/12/2023, 2:49 PMRuth
10/30/2023, 8:56 PMCody Jenkins
11/01/2023, 2:39 AMPatrício
11/24/2023, 5:37 PMError:
OperationResultTest::#target_type#test_0001_should be set to configured value after initialize for new record:
RSpec::Mocks::OutsideOfExampleError: The use of doubles or partial doubles from rspec-mocks outside of the per-test lifecycle is not supported.
I am not using Rspec. And looking into Gemfile.lock, I see that Pact is the the introducing rspec. So I decided to disable pact, and my tests are green.
Any idea?Lukasz
11/29/2023, 6:54 AMCalum Maciver-Whyte
11/30/2023, 11:58 AMservice_provider
and message_provider
in the same pact_helper.rb
file?
The solution I'm about to try is just changing the name of the message provider to super_secret_name_for_slack_message
, and I expect that to work.
It would be ideal though, if we didn't need to have two different names for the provider service depending on which type of Pact we're expecting.
Pact.service_provider "super_secret_name_for_slack" do
honours_pacts_from_pact_broker do
pact_broker_base_url pact_base_url, {token: token}
consumer_version_selectors [version_selector]
end
app_version provider_version
app_version_tags [provider_branch]
app_version_branch provider_branch
publish_verification_results publish_flag
end
Pact.message_provider "super_secret_name_for_slack" do
honours_pacts_from_pact_broker do
pact_broker_base_url pact_base_url, {token: token}
consumer_version_selectors [version_selector]
end
app_version provider_version
app_version_tags [provider_branch]
publish_verification_results publish_flag
builder do |message_description|
DatabaseCleaner.clean
CONFIG[message_description].call
end
end
Gerard Molina
12/13/2023, 12:48 PMTom Dracz
12/20/2023, 11:02 AMrequest_customizer
got added a good while back and in principle should let me achieve what I want to - i.e. dynamically modify the request body before running interaction.
However I'm unable to see how I can tap into this/pass customizer as an option when running bundle exec pact verify
- it's not a CLI recognised option. Any good ideas here?sr
12/22/2023, 12:54 PMtest
or development
?
bundle exec rake pact:verify
rake aborted!
KeyError: key not found: "RAILS_ENV"
2. The API request in the consumer pact is a GET request to get foo/123. How do I ensure this id and associated data will exist in the database? (either test or dev). Surely I don't create this data but if I need do how is this done? I was under the impression that Provider simply pulls down the contract and runs it against an instance of the app. Since this will run on CI then I assume it will run against test
and out sqlite3 db?Joe Risner
01/22/2024, 7:54 PMpact-ruby
on the provider and pact-js
on the consumer. When I run the provider verification, I see WARN
logs for
> WARN: Ignoring unsupported combine AND for path
On the consumer side, we're using matchers from the V2 version, not V3, since V3 matchers aren't yet supported by pact-ruby
. Still seeing these logs, though. Is there any way to suppress these logs on provider verifications other than by increasing the log level to ERROR
?
Thanks.Wiktor Karpinski
02/17/2024, 10:14 AMLogi Ragnarsson
02/18/2024, 9:43 AMMilda
02/27/2024, 11:55 AMrack
v2.2.8, any chance for a version bump and release?Pere Villega
03/26/2024, 12:16 PMEvan Rademacher
04/05/2024, 4:22 PMSarah Sehr
04/12/2024, 9:15 PMMichael Strasser
04/19/2024, 5:33 AMTomer
05/16/2024, 8:38 AMTaha Shakibania
05/27/2024, 11:03 AMJason Sunde
05/28/2024, 3:23 PMgeorgia andrews
06/03/2024, 5:40 PMPK
06/04/2024, 3:45 AMStephen Bell
06/13/2024, 11:08 PMGraham Pederson
06/14/2024, 6:55 PMPaolo Laurenti
06/17/2024, 6:53 AMJocelyn Lecomte
07/25/2024, 9:23 AMDiego Betancur
07/29/2024, 4:44 PM