Roma Abrosimov
06/09/2023, 3:28 PMbundle exec rails pact:verify
? Locally I'm using development
but on CI not sure which one to useIvan Mikhalka
07/04/2023, 9:16 PM/usr/lib/ruby/3.0.0/net/http.rb:987:in `initialize': Failed to open TCP connection to <http://xyz.pactflow.io:443|xyz.pactflow.io:443> (getaddrinfo: Try again) (SocketError)
when trying to publish pact via docker CLI?
Command:
docker run --rm -w ${PWD} -v ${PWD}:${PWD} --network bridge -e PACT_DO_NOT_TRACK -e PACT_BROKER_BASE_URL \
-e PACT_BROKER_TOKEN pactfoundation/pact-cli:latest pact-broker publish "${PWD}/pactFiles/" --consumer-app-version=1234 --tag=branchName --branch=branchName
Tõnis Ojandu
07/05/2023, 6:51 AMHazem Borham
07/13/2023, 5:27 PMJoris van Eijden
07/14/2023, 10:58 AMAmit Wertheimer
07/18/2023, 7:31 PMNoor Hashem
07/19/2023, 5:50 PMLotem Dagan
07/20/2023, 10:49 AMLluís Xavier Casals Garcia
07/26/2023, 3:01 PMDale
07/27/2023, 11:23 AMMichelle He
08/08/2023, 9:40 PMYousaf Nabi (pactflow.io)
ffi
gem.
https://github.com/YOU54F/pact-ruby-ffi
I’ve learned Ruby by example from our codebases and happy to pair,Maxime Raverdy
08/17/2023, 3:07 PMWARN: Ignoring unsupported combine AND for path
Thanks a lot 🙏Jianbin Lin
08/18/2023, 2:50 PMStan Amsellem
08/22/2023, 9:36 AMJustyna Sliwinska
08/23/2023, 6:37 AMTeea Alarto
08/25/2023, 1:26 PMEytan Hanig
09/01/2023, 3:06 AMTigran Davtyan
09/12/2023, 3:13 AMGeorg Duemlein
09/18/2023, 4:10 AMMilda
09/26/2023, 12:44 PMJamie 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