bethskurrie
2018-03-24 03:40
has joined #pact-php

bethskurrie
2018-04-05 04:09
/github subscribe pact-foundation/pact-php

cfmack
2018-04-05 04:11
has joined #pact-php

bethskurrie
2018-05-02 04:59
/github unsubscribe pact-foundation/pact-php commits public deployments

gonzalogarcia243
2018-06-08 15:00
has joined #pact-php

eduardo.iriarte-mende
2018-09-26 15:38
has joined #pact-php

privat.sebastian.muel
2018-10-21 09:58
has joined #pact-php

charles.prynn
2019-01-22 10:39
has joined #pact-php

mail
2019-02-20 11:05
has joined #pact-php

mail
2019-03-01 11:40
hello everyone! I'm currently evaluating Pact for use with services written in PHP, and I'm wondering if you know of/have tested alternative approaches to setting the provider state, other than the expose-a-custom-endpoint approach?

joseiglesias
2019-03-21 12:48
has joined #pact-php

arunkumarpoonia
2019-03-21 17:12
has joined #pact-php

arunkumarpoonia
2019-03-21 17:13
I am unable to build interaction without given, more details - https://github.com/pact-foundation/pact-php/issues/117

arunkumarpoonia
2019-03-21 17:18
@bethskurrie can you please help here ?

arunkumarpoonia
2019-03-25 11:51
best approach for managing provider state

arunkumarpoonia
2019-03-25 11:51
?

anothonyvong
2019-03-27 16:01
has joined #pact-php

vaso.giamarelou
2019-04-20 11:44
has joined #pact-php

detert
2019-05-07 12:41
has joined #pact-php

detert
2019-05-07 12:44
Hi there. I currently try to implement pact with php. I use `https://github.com/pact-foundation/pact-mock-service-docker` as mock service and I have a running customer test. However I am not able to create a pact file that shall be send to the pact broker. What do I miss? Do I miss something at `https://github.com/pact-foundation/pact-php/`?

matt.fellows
2019-05-07 13:43
has joined #pact-php

matt.fellows
2019-05-07 13:43
I responded in general for this

braddle
2019-05-08 10:10
has joined #pact-php

detert
2019-05-13 10:25
I try to run `verifyAll()` in a provider test in order to validate all customer contracts. However I do not really understand how to set the provider state before each verifyAction. Is `https://github.com/pact-foundation/pact-php/blob/master/example/tests/MessageProvider/ExampleMessageProviderTest.php` the correct documentation for that? Something tries to create a server, but I just want to set the state of my database for each contract

matt.fellows
2019-05-13 11:21
That looks to be an example for a message provider - are you testing HTTP interactions or async/messages?

detert
2019-05-13 11:27
HTTP interactions, but I could not find any example to set up a provider state


detert
2019-05-13 11:39
Ah, I missed the `->setProviderStatesSetupUrl`. I'll take a deeper look

matt.fellows
2019-05-13 11:39
:thumbsup:

matt.fellows
2019-05-13 11:40
At the moment (at least in Pact PHP it seems) you?ll need to add a dynamic endpoint during test to receive the state request and update the state

detert
2019-05-13 11:40
I'll try that. Thank you

detert
2019-05-13 13:35
Great. It works perfectly :slightly_smiling_face:

matt.fellows
2019-05-13 21:10
nicely done! Might be worth raising an issue to have the docs make this clearer on the main README

detert
2019-05-14 06:11
yeah maybe. I'll integrate everything into gitlab first. I can make good suggestions then hopefully

matt.fellows
2019-05-14 06:16
:thumbsup:

braddle
2019-05-16 12:50
Ignore this i think I was mixing up errors in my code. Was trying to improve the output i was getting when my tests failed.

detert
2019-05-17 08:23
when do you publish the results of the provider verifications? Before or after the provider was released?

bethskurrie
2019-05-17 08:31
Before!

bethskurrie
2019-05-17 08:32
You tag the provider version as prod when you release, but the results should be published when you run the verification step, just after your provider unit tests.

detert
2019-05-17 08:39
I see. Do you know any document with a timeline or something, where I can see the order of events as best practice?


detert
2019-05-17 08:43
Oh great. Thank you

bethskurrie
2019-05-17 08:45
I can't seem to get to it on my phone, but if you go to http://docs.pact.io and find the Effective Pact Setup Guide under the Best Practises section, that will give you a step by step set of instructions for setting up your pipeline.

bethskurrie
2019-05-17 08:46
Got to go, :airplane: taking off!

detert
2019-05-17 08:50
Have a good flight

detert
2019-05-21 06:32
I have another question. The docs mention Symfony. Is there a simple was to implement `PhpPact\Standalone\ProviderVerifier::verifiyAll()` without Nginx? I would like to use the abilities of `Symfony\Bundle\FrameworkBundle\Test\WebTestCase` as I have no Nginx running in my CI pipeline currently


detert
2019-05-28 12:30
When I run the provider verification tests with verifyAll and those tests fail, all I receive is an Exception stating "Exception: PactPHP Process returned non-zero exit code: 1". Is there any way to get a better error message? A link to the pact-broker like `https://pact-broker.local/hal-browser/browser.html#/pacts/provider/myprovider/consumer/myconsumer/pact-version/2835ae83c9b6d1328c73110fca62e7e1c2deb01f/verification-results/106` would help, the complete Response body would be perfect

matt.fellows
2019-05-28 12:30
hmm

matt.fellows
2019-05-28 12:31
I?m not close to the PHP implementation, but others that use the same underlying library (e.g. JS and Go) print out the specific issues

matt.fellows
2019-05-28 12:31
You should be able to see _in your terminal_ the exact set of problems

matt.fellows
2019-05-28 12:31
if not, this is a bug (or at the very least, an enhancement request)

detert
2019-05-28 12:32
PHP runs some process and throws an Exception if that fails

matt.fellows
2019-05-28 12:32
hmm. Does the exception contain any detail?

detert
2019-05-28 12:33
I can only use $e->getMessage(), that is just the provided string. However, I see that some logger is used to add more details, maybe I am able to find out how that works

matt.fellows
2019-05-28 12:33
:thumbsup:

pact.io
2019-05-28 16:33
has joined #pact-php

pact.io
2019-05-28 19:07
~<@U9UUY3CU9> I am able to reproduce the problem, however I am not able to write a good test for it. The output of `pact-provider-verifier` seems to confuse the `Amp\Process\Process`. If I run it, the output is not captured completely. However I am not able to find a simpler cmd, that could "make my test red" in the first place. Any ideas?~

pact.io
2019-05-28 20:34
@matt.fellows I added a pull request to my earlier problem (missing error logs)

matt.fellows
2019-05-28 22:10
thanks

pact.io
2019-05-30 13:26
Does someone use pact-php with windows? I am not able to run the tests properly ``` .\vendor\bin\phpunit.bat --debug -c .\example\phpunit.all.xml --filter testBlockingProcess PHPUnit 7.5.12 by Sebastian Bergmann and contributors. Test 'PhpPact\Standalone\Runner\ProcessRunnerTest::testBlockingProcess' started [2019-05-30 12:26:11] server.debug: Process command: dir [] [] Test 'PhpPact\Standalone\Runner\ProcessRunnerTest::testBlockingProcess' ended Time: 24.31 minutes, Memory: 6.00 MB There was 1 error: 1) PhpPact\Standalone\Runner\ProcessRunnerTest::testBlockingProcess Amp\Process\ProcessException: Failed to create child process: 2: Das System kann die angegebene Datei nicht finden. F:\windows\pact-php\vendor\amphp\process\lib\Internal\Windows\SocketConnector.php:344 F:\windows\pact-php\vendor\amphp\amp\lib\Loop\NativeDriver.php:130 F:\windows\pact-php\vendor\amphp\amp\lib\Loop\Driver.php:134 F:\windows\pact-php\vendor\amphp\amp\lib\Loop\Driver.php:72 F:\windows\pact-php\vendor\amphp\amp\lib\Loop.php:84 F:\windows\pact-php\src\PhpPact\Standalone\Runner\ProcessRunner.php:159 F:\windows\pact-php\src\PhpPact\Standalone\Runner\ProcessRunner.php:100 F:\windows\pact-php\tests\PhpPact\Standalone\Runner\ProcessRunnerTest.php:22 ERRORS! Tests: 1, Assertions: 0, Errors: 1. ```

pact.io
2019-05-30 13:27
Following the source code, it looks like a timeout. I tried to increase the timeout from 1000 to 100000, it did not help

n.chachampis
2019-06-11 06:50
has joined #pact-php

pact.io
2019-06-11 16:59
Is the todo list in https://github.com/pact-foundation/pact-php/issues/29 up to date? What is most important? I think about contributing a bit more

detert
2019-06-25 06:53
Could you create a new tag for the latest version?

marco
2019-11-18 09:00
has joined #pact-php

v.melnychuk12
2019-12-18 18:45
has joined #pact-php

taisedias
2019-12-22 21:54
has joined #pact-php

marco
2020-01-14 14:18
Hi guys, What is the process to update the pact binaries? I want to be able to add a tag to my provider version which requires a newer pact-provider-verifier standalone.

marco
2020-01-14 17:14
Could someone help me with this failing test? I can't find out what's going wrong...

matt.fellows
2020-01-14 19:44
If it?s not obvious on the Pact PHP github page, perhaps raise a ticket showing the problem and/or put together a PR with your suggestion

matt.fellows
2020-01-14 19:45
There is possibly a reference in the installation code somewhere that pulls it down

matt.fellows
2020-01-14 19:45
If you could share your test setup and logs that would be helpful


matt.fellows
2020-01-14 21:14
ohhh

matt.fellows
2020-01-14 21:14
right

marco
2020-01-14 21:18
I don't have experience with the message validation and it seems to go wrong there. I digged in to it but can't really wrap my head around what's going wrong :sweat_smile:

matt.fellows
2020-01-14 21:18
Had a quick look. It looks like the verification (or the test) is hitting a webserver, which I?m not sure is the correct behaviour in a message verification test.

matt.fellows
2020-01-14 21:18
yeah, neither

matt.fellows
2020-01-14 21:18
Might need @cfmack when he?s available to take a squiz

marco
2020-01-14 21:19
That would be awesome, meanwhile I'll get some sleep and maybe a fresh mind will do wonders tomorrow morning. Thanks for now!

cfmack
2020-01-15 02:32
Howdy y'all. It appears the only thing that was materially updated was a big jump in the Ruby version. I bet if we get real deep, something changed there, either an API, a new parameter, something. There is actually a request to add logging of Ruby to the PHP configurations. I.e. when calling Ruby, log at the debug level. If you want to put in a PR for https://github.com/pact-foundation/pact-php/issues/109 it may help :slightly_smiling_face:

cfmack
2020-01-15 02:34
I can take a peek.

cfmack
2020-01-15 02:48
@matt.fellows I'm honest, I had to google a "squiz". Not a Texas saying ... yet. I may make it one.

cfmack
2020-01-15 03:33
@bethskurrie, I got weird one here. Between stand alone 1.60.0 and 1.60.1, pact message broker stopped putting provider states array into the message provider states array. I'll put in an issue to see if I can articulate it better.

matt.fellows
2020-01-15 03:53
I think that?s quite an old version - have you tried with latest? Or is that just your debugging finding the cause of the issue?

bethskurrie
2020-01-15 03:55
OK, I'll have a look when you've got the info together

cfmack
2020-01-15 04:07
https://github.com/pact-foundation/pact-ruby-standalone/issues/43 I know I know I'm on a old version. Been meaning on updating it sooner. What can I say, I like the classics :slightly_smiling_face:. All good if you can take a peek. May be @marco can provider a stand alone example. Yes, I definitely need to update the version!

cfmack
2020-01-15 04:11
I'm going to bed, y'all.


marco
2020-01-15 12:27
Thanks so much for helping already! I'll try to get an example after work today, tried in between meetings but need some focus time to wrap my head around the workings :sweat_smile:

marco
2020-01-15 18:47
Yeey, found an easy way to reproduce, documented it as a comment on the issue: https://github.com/pact-foundation/pact-ruby-standalone/issues/43#issuecomment-574797605

cfmack
2020-01-16 05:16
Super sweet! Thanks, Matt!

bethskurrie
2020-01-16 05:17
@cfmack I just realised I commented on the repro issue, not your original one.

cfmack
2020-01-16 05:19
All good. I think I got around to it. The code is in a POC state. There are use cases in Message that I am unsure of how we are supposed to handle ... but the original code did not handle them anyways, for better or worse.

bethskurrie
2020-01-16 05:20
I'm currently in message pact headspace, because I'm writing the ruby verification dsl

bethskurrie
2020-01-16 05:20
so if you want someone to bounce ideas off, feel free.

cfmack
2020-01-16 05:21
the crux is with the PHP implementation, I have no idea what do do with the params

bethskurrie
2020-01-16 05:22
for the provider states?

cfmack
2020-01-16 05:22
Are we supposed to use the params to set the provider state? (typing this out as I stare into the void)

bethskurrie
2020-01-16 05:22
As in, you don't get what they're for, or you don't know how to make the code handle them?

cfmack
2020-01-16 05:23
handle

bethskurrie
2020-01-16 05:23
So, the code that sets up the provider states should be passed the params

cfmack
2020-01-16 05:23
right

cfmack
2020-01-16 05:23
I think in the case of message broker, I actually need multiple call backs to get this to work

bethskurrie
2020-01-16 05:23
I know it'll look completely diff in php, but in ruby it goes like: ```Pact.provider_states_for "Foo" do provider_state "a world exists" do set_up do | params | DataStore.greeting_recipient = params[:name] end end end```

cfmack
2020-01-16 05:23
call back per state, then the final call back to execute the pact logic

bethskurrie
2020-01-16 05:24
mm.

bethskurrie
2020-01-16 05:24
I'm thinking that we should change the callback to allow just one call for all the states together.

bethskurrie
2020-01-16 05:24
Because sometimes there are dependencies between them that you need to set up, so you want the context from the previous state.

bethskurrie
2020-01-16 05:25
what do you think?

cfmack
2020-01-16 05:26
I should just require params to be passed into the callback with the pact json

cfmack
2020-01-16 05:26
I think I have flawed logic implementation the first go around

bethskurrie
2020-01-16 05:26
So, I've just been chatting to ron about how pact jvm does it


cfmack
2020-01-16 05:27
In the case where I have multiple messages in a single pact, I maintain a list of callbacks for all messages at once. Right now, those are keyed by providerState ... when they should be keyed by description

bethskurrie
2020-01-16 05:27
I can't see how that handles provider states, so you'll have to ask Matt.

bethskurrie
2020-01-16 05:28
> when they should be keyed by description

bethskurrie
2020-01-16 05:28
Yes, this

bethskurrie
2020-01-16 05:28
This is what I've just written

bethskurrie
2020-01-16 05:28
```CONFIG = { "a message" => lambda { BarProvider.new.create_message } } MESSAGE_INVOKER = lambda { |description| CONFIG[description].call }```

cfmack
2020-01-16 05:28
LOL perfect

cfmack
2020-01-16 05:29
In the original implementation, for reasons I do not recall, I only allowed one state per callback ... which is just silly

cfmack
2020-01-16 05:30
I'm out of here tonight. I have been thinking of y'all down under. Stay safe.

bethskurrie
2020-01-16 05:31
Thanks! Looking forward to being able to go outside and breathing clean air sometime in the future...

marco
2020-01-16 13:05
Thank you guys so much for helping! I posted a response to the issue (https://github.com/pact-foundation/pact-php/pull/143#issuecomment-575140757) tried to pass the params into the callback but running into issues there as well...

marco
2020-01-21 08:16
@cfmack do you maybe have some time to check out my latest comment to the issue :slightly_smiling_face:?


cfmack
2020-01-22 02:44
I've not at the time but hope to so tonight or this week.

marco
2020-01-22 19:05
Thanks, I'm flying out tomorrow for a quick holiday so will not be online for the next days. :disappointed:

matt.fellows
2020-01-22 21:28
Enjoy your break then!

deepakverma
2020-03-26 22:00
has joined #pact-php

lbraymusso
2020-04-02 05:42
has joined #pact-php

catalin
2020-06-23 15:25
has joined #pact-php

greg.tyler
2020-07-02 09:45
has joined #pact-php

christoffer.lindstrom
2020-07-10 12:27
has joined #pact-php

vladg
2020-07-17 20:56
has joined #pact-php


angelo
2020-07-20 09:57
has joined #pact-php

angelo
2020-07-20 09:57
Hi! We're using pact-js (v9.11) for consumer side and pact-php (v5.0) for provider side. Is there a way to have WIP pacts activated using the php library for the provider side? Ive seen in the github issues that's its yet to be implemented and I wonder if there's a workaround? (edited)

matt.fellows
2020-07-20 10:18
Yes. I haven't looked at the PHP verifier but the flags should be really easy to add

matt.fellows
2020-07-20 10:19
It just wraps the Ruby standalone verifier (bundled with Pact PHP), so if you're not doing anything fancy you could just invoke it directly and enable Wip pacts until the flag is added

matt.fellows
2020-07-20 10:19
You also need to enable it on your broker if you're self hosting (enabled on Pactflow accts by default)

matt.fellows
2020-07-20 10:20
Just out and about but if none of that makes sense let me know and when I'm back at my desk o can clear it up :grinning:

tien.xuan.vo
2020-07-21 01:58
has joined #pact-php

tien.xuan.vo
2020-07-21 10:59
@matt.fellows I'm here already. Please show us how to maintain this project

angelo
2020-07-30 04:58
is there a way to publish verification results with tags (read the docs saw nothing about it)? Currently I'm doing it after publishing to broker I run the dockerized cli to add tags and having problems with the webhook since it triggers without a tag so slack notifs have incomplete info

sschectman
2020-08-04 16:07
has joined #pact-php

sschectman
2020-08-04 16:18
Getting this error after installing pact : Fatal error: Uncaught Error: Class 'PhpPact\Standalone\MockService\MockServerConfig' not found

matt.fellows
2020-08-05 00:06
It should be doable but may not yet be exposed

sschectman
2020-08-07 20:25
I have pact directory set in config but pact file is not being generated, can someone advise?

angelo
2020-08-11 06:26
using laravel 5.5 atm to run the provider tests. I tried using trait RefreshDatabase in my test file but in only works between tests and pact provider verification only runs in one test function so db doesnt actually reset. Is there a way of using RefreshDatabase inside your controller or an alternative method?

angelo
2020-08-11 10:35
nevermind solved it by running the facade artisan migrate:fresh inside the state setup endpoint.

os.shulyak
2020-08-17 10:50
has joined #pact-php

os.shulyak
2020-08-17 10:51
hey there. I?m trying it implement PACT messages in php with this example https://github.com/pact-foundation/pact-php#message-support , but i?ve got the error with using of `ExampleMessageProvider`  class, and the error looks like this: ```Error : Class 'MessageProvider\ExampleMessageProvider' not found``` and this is the namespace that i use: ```use MessageProvider\ExampleMessageProvider;``` For now, have no idea how to fix that..

heytaco
2020-08-25 03:57
has joined #pact-php

heytaco
2020-08-25 03:57
Hi there! My name is HeyTaco!, and you can use me to give people tacos to show your appreciation. My tacos will spread joy through Slack!

nazar.khmil
2020-10-05 10:34
has joined #pact-php

xandebianchi
2020-10-05 13:05
has joined #pact-php

dorin.enache
2020-10-05 15:01
has joined #pact-php

ledinhcuong99
2020-10-06 12:53
has joined #pact-php

dothetan.040490
2020-10-07 09:14
has joined #pact-php

dagostino.remy
2020-10-07 23:03
has joined #pact-php

abhi.nandan
2020-10-08 06:38
has joined #pact-php

przemyslaw.dabrowski
2020-10-08 12:36
has joined #pact-php

emiliano.righi
2020-10-08 13:25
has joined #pact-php

cariaga.bh
2020-10-08 21:03
has joined #pact-php

campellcl
2020-10-09 00:06
has joined #pact-php

elenitsaa043
2020-10-09 10:00
has joined #pact-php

adriangabrieloros
2020-10-09 11:05
has joined #pact-php

sh.ilgam_pact
2020-10-11 16:13
has joined #pact-php

anastasiia.bielik
2020-10-12 11:13
has joined #pact-php

deepika.krishnakumar
2020-10-12 15:03
has joined #pact-php

anbansal27
2020-10-12 23:02
has joined #pact-php

prabhakar.thippa
2020-10-13 04:58
has joined #pact-php

giadinhluong
2020-10-13 06:24
has joined #pact-php

pavank
2020-10-13 08:41
has joined #pact-php

stephane.meng
2020-10-13 09:06
has joined #pact-php

abirlal.bose
2020-10-13 09:45
has joined #pact-php

mateusz.mrzyglod
2020-10-14 09:32
has joined #pact-php

cathleen.yuan
2020-10-14 11:16
has joined #pact-php

ramana.jaladurgam
2020-10-14 16:10
has joined #pact-php

alik.berezovsky
2020-10-14 18:38
has joined #pact-php

a.robecke
2020-10-14 19:24
has joined #pact-php

mikahchapman
2020-10-14 21:47
has joined #pact-php

hem_kec
2020-10-15 00:44
has joined #pact-php

dothetan.040490
2020-10-15 02:22
@dothetan.040490 has left the channel

marco.cordeiro
2020-10-15 10:54
has joined #pact-php

betty.he
2020-10-15 14:32
has joined #pact-php

tamer
2020-10-16 09:08
has joined #pact-php

mario.gioiosa
2020-10-16 18:57
has joined #pact-php

alik.berezovsky
2020-10-18 17:58
@alik.berezovsky has left the channel

lior.baber
2020-10-19 07:33
has joined #pact-php

jeffbdye
2020-10-19 17:10
has joined #pact-php

jace
2020-10-19 19:22
has joined #pact-php

almaak
2020-10-20 09:35
has joined #pact-php

andra.moraru
2020-10-20 14:13
has joined #pact-php

camila.coder91
2020-10-20 17:06
has joined #pact-php

julzelements
2020-10-21 05:25
has joined #pact-php

kapil.mathur
2020-10-21 06:40
has joined #pact-php

mark.hudson
2020-10-21 10:45
has joined #pact-php

cluu
2020-10-21 17:16
has joined #pact-php

mario.gioiosa
2020-10-21 20:16
@mario.gioiosa has left the channel

camila.campos
2020-10-21 21:35
has joined #pact-php

longlevan
2020-10-22 09:15
has joined #pact-php

justin.garfield
2020-10-22 16:15
has joined #pact-php

guppy0356.nakira
2020-10-23 00:34
has joined #pact-php

ercalbwar
2020-10-24 19:24
has joined #pact-php

andrewshtamburg
2020-10-25 13:04
has joined #pact-php

siad.ardroumli
2020-10-25 18:16
has joined #pact-php

srikanthpmailid
2020-10-26 01:02
has joined #pact-php

photesthesis_geospiza
2020-10-26 15:10
has joined #pact-php

jackbwheatley
2020-10-27 21:02
has joined #pact-php

carlosalmeida.xon
2020-10-27 22:06
has joined #pact-php

nasir.amin
2020-10-28 11:07
has joined #pact-php

jimish.shah.-nd
2020-10-28 11:26
has joined #pact-php

adam_figgins
2020-10-28 14:20
has joined #pact-php

aperdomobo
2020-10-28 15:42
has joined #pact-php

diazguerra2
2020-10-28 16:06
has joined #pact-php

xsamore
2020-10-28 19:52
has joined #pact-php

simon
2020-10-28 20:49
has joined #pact-php

ruben.cagnie
2020-10-29 01:24
has joined #pact-php

272939217
2020-10-29 05:33
has joined #pact-php

driloni92
2020-10-29 09:05
has joined #pact-php

pauloavra
2020-10-29 12:33
has joined #pact-php

jikogay728
2020-10-30 17:20
has joined #pact-php

blmlcu
2020-10-31 14:51
has joined #pact-php

jamescourtoy
2020-11-02 21:04
has joined #pact-php

telmo.ferreira.costa
2020-11-03 11:32
has joined #pact-php

sergii.kopovskyi
2020-11-03 12:35
has joined #pact-php

silverton.gimenes
2020-11-03 17:58
has joined #pact-php

colber16
2020-11-03 18:34
has joined #pact-php

cvoong
2020-11-03 18:55
has joined #pact-php

pavel.azarau
2020-11-06 21:57
has joined #pact-php

pavel.azarau
2020-11-06 21:59
hello folks. Haven?t found this info in a channel. Is there a way to configure multiple providers for consumer via phpunit.xml?

pavel.azarau
2020-11-06 22:01
I see an example ```<php> <env name="PACT_CONSUMER_NAME" value="Some_consumer"/> <env name="PACT_CONSUMER_VERSION" value="1.0.0"/> <env name="PACT_CONSUMER_TAG" value="sometag"/> <env name="PACT_PROVIDER_NAME" value="somename"/> </php>``` but what if I need few providers?

pbobba
2020-11-09 23:03
has joined #pact-php

jun.li
2020-11-09 23:05
has joined #pact-php

douweicai
2020-11-10 04:11
has joined #pact-php

christian.huber
2020-11-10 09:20
has joined #pact-php

vuttithatkrongyot
2020-11-10 10:57
has joined #pact-php

dan.iosif
2020-11-10 17:06
has joined #pact-php

pavel.azarau
2020-11-10 18:24
Tumbleweed

rodrigo.costa20
2020-11-12 00:59
has joined #pact-php

yong.gong188
2020-11-12 09:13
has joined #pact-php

anandhadeepak
2020-11-12 13:03
has joined #pact-php

david.dias
2020-11-12 20:04
has joined #pact-php

billal.patel
2020-11-13 10:31
has joined #pact-php

billal.patel
2020-11-13 10:42
@billal.patel has left the channel

louis.oliver
2020-11-16 10:33
has joined #pact-php

ashishkujoy
2020-11-16 15:08
has joined #pact-php

pradeepchoube
2020-11-17 03:49
has joined #pact-php

meng-lingtao
2020-11-17 14:39
has joined #pact-php

pabvidcal
2020-11-17 15:30
has joined #pact-php

magesh.nagamani
2020-11-18 05:15
has joined #pact-php

jstoebel
2020-11-18 13:53
has joined #pact-php

daniel.sayer89
2020-11-19 10:33
has joined #pact-php

art.ptushkin
2020-11-19 10:34
has joined #pact-php

pact457
2020-11-19 10:36
has joined #pact-php

ajerthan.sivayoganath
2020-11-19 10:38
has joined #pact-php

philipchardwick
2020-11-19 11:05
has joined #pact-php

tanzmann
2020-11-19 11:09
has joined #pact-php

olivier.quere
2020-11-19 12:10
has joined #pact-php

wilfried.vandenberghe
2020-11-19 12:20
has joined #pact-php

alan.hanafy
2020-11-19 19:28
has joined #pact-php

michael.deutscher
2020-11-19 21:39
has joined #pact-php

gerry.power
2020-11-20 03:31
has joined #pact-php

alex900
2020-11-20 05:08
has joined #pact-php

tomas.panik
2020-11-20 08:28
has joined #pact-php

marc.ferland
2020-11-20 14:43
has joined #pact-php

sebastien.crapoulet
2020-11-20 15:24
has joined #pact-php

adutrillaux
2020-11-20 15:28
has joined #pact-php

he
2020-11-20 15:59
has joined #pact-php

ivgeni.slabkovski
2020-11-20 21:52
has joined #pact-php

serhatburakyildirim
2020-11-21 21:57
has joined #pact-php

alnasl
2020-11-22 18:46
has joined #pact-php

ashutosh23802
2020-11-23 06:20
has joined #pact-php

leonty
2020-11-23 10:33
has joined #pact-php

dariusz.piwko
2020-11-23 11:34
has joined #pact-php

praneeth.kumar
2020-11-23 16:18
has joined #pact-php

mark.white
2020-11-24 09:03
has joined #pact-php

ufuk.ozcelik
2020-11-24 14:58
has joined #pact-php

stefanos.varsanis
2020-11-24 16:48
has joined #pact-php

lalexander2810
2020-11-24 16:53
has joined #pact-php

sivaprasad9
2020-11-24 20:46
has joined #pact-php

scyr
2020-11-25 14:56
has joined #pact-php

timotheus.ruprecht
2020-11-25 22:12
has joined #pact-php

manali.mogre
2020-11-26 11:44
has joined #pact-php

erik.terpstra
2020-11-26 12:08
has joined #pact-php

kjayachandra2000
2020-11-26 20:40
has joined #pact-php

kjayachandra2000
2020-11-26 22:00
@kjayachandra2000 has left the channel

sushil.kumar
2020-11-27 01:45
has joined #pact-php

zhujian
2020-11-27 07:54
has joined #pact-php

h.octavian
2020-11-27 14:08
has joined #pact-php

noel
2020-11-28 23:12
has joined #pact-php

muraalee
2020-11-30 01:56
has joined #pact-php

pooja.sharma
2020-11-30 08:52
has joined #pact-php

mo
2020-11-30 09:24
has joined #pact-php

david.greene
2020-11-30 21:47
has joined #pact-php

bas
2020-12-01 09:00
has joined #pact-php

wainstead
2020-12-01 14:57
has joined #pact-php

jerobinson
2020-12-01 20:32
has joined #pact-php

sumedhagamage
2020-12-02 03:33
has joined #pact-php

sumedhagamage
2020-12-02 04:12
@sumedhagamage has left the channel

fealaer
2020-12-02 11:40
has joined #pact-php

fealaer
2020-12-02 11:58
@fealaer has left the channel

patrick.hendron
2020-12-02 14:44
has joined #pact-php

lpratt
2020-12-02 18:19
has joined #pact-php

sandragnzalez
2020-12-03 11:04
has joined #pact-php

kristian
2020-12-03 14:34
has joined #pact-php

me1466
2020-12-03 23:42
has joined #pact-php

wenfeng.li
2020-12-04 11:42
has joined #pact-php

cdambo
2020-12-05 11:59
has joined #pact-php

gayatree.eee
2020-12-08 04:50
has joined #pact-php

c.pavan1986
2020-12-09 04:18
has joined #pact-php

william.pritchard
2020-12-09 15:28
has joined #pact-php

parveshchaudhary111
2020-12-09 17:54
has joined #pact-php

w.sobasik
2020-12-10 10:39
has joined #pact-php

thanuxxxx
2020-12-12 22:41
has joined #pact-php

ian.hamilton
2020-12-13 06:53
has joined #pact-php

colm.j.murphy91
2020-12-13 07:02
has joined #pact-php

victoria.kruczek
2020-12-13 14:13
has joined #pact-php

wuddarwin
2020-12-14 05:23
has joined #pact-php

connor.aird
2020-12-14 15:52
has joined #pact-php

arman.najafian
2020-12-14 15:52
has joined #pact-php

praveen.lakkaraju
2020-12-14 16:12
has joined #pact-php

alejandro.germain
2020-12-14 16:26
has joined #pact-php

josh.ellinger
2020-12-15 01:22
has joined #pact-php

ufuk.ozcelik
2020-12-15 08:22
@ufuk.ozcelik has left the channel

nikitsenka
2020-12-15 09:35
has joined #pact-php

hibahawes
2020-12-15 09:53
has joined #pact-php

sarvar
2020-12-15 14:24
has joined #pact-php

suruchipatidar14
2020-12-16 05:35
has joined #pact-php

smatheson
2020-12-16 06:33
has joined #pact-php

olayemifolakemi
2020-12-16 15:23
has joined #pact-php

ania.kovalchuk
2020-12-17 00:09
has joined #pact-php

writetojoshma
2020-12-17 05:52
has joined #pact-php

rejeesh.g
2020-12-17 11:07
has joined #pact-php

lukas.kempec
2020-12-17 12:45
has joined #pact-php

vikas543
2020-12-17 16:28
has joined #pact-php

bpugh
2020-12-17 17:05
has joined #pact-php

jeff.burmood
2020-12-19 17:45
has joined #pact-php

kyle.florence
2020-12-19 19:21
has joined #pact-php

ankurmalik22
2020-12-19 21:14
has joined #pact-php

vsukumaran
2020-12-20 01:56
has joined #pact-php

omer.morad
2020-12-20 08:10
has joined #pact-php

ringo
2020-12-20 10:51
has joined #pact-php

omer.moradd
2020-12-20 18:01
has joined #pact-php

souravsen1
2020-12-21 11:28
has joined #pact-php

andoni.arroyo
2020-12-21 17:51
has joined #pact-php

theovanessen
2020-12-22 10:47
has joined #pact-php

stuart3166
2020-12-22 12:35
has joined #pact-php

winfante
2020-12-22 22:51
has joined #pact-php

lars.bonnes
2020-12-23 13:05
has joined #pact-php

eungjun.yi
2020-12-25 14:25
has joined #pact-php

ebanster
2020-12-27 13:18
has joined #pact-php

onur.baskirt
2020-12-28 10:48
has joined #pact-php

massimo.daros
2020-12-29 13:18
has joined #pact-php

chris.fullinwider
2020-12-29 18:15
has joined #pact-php

piotr.soltysiak
2020-12-30 16:55
has joined #pact-php

adrian.przybyla
2021-01-04 13:41
has joined #pact-php

dcorrales
2021-01-04 22:06
has joined #pact-php

jokubas.lekevicius
2021-01-04 22:10
has joined #pact-php

matt195
2021-01-05 16:35
has joined #pact-php

rafael.manzoni
2021-01-05 17:56
has joined #pact-php

animesh2712
2021-01-05 19:29
has joined #pact-php

info
2021-01-06 01:55
has joined #pact-php

pascal.libenzi
2021-01-06 10:57
has joined #pact-php

brett
2021-01-06 18:55
has joined #pact-php

josh.rosenfeld
2021-01-06 19:39
has joined #pact-php

carlo
2021-01-07 13:24
has joined #pact-php

andrewshtamburg
2021-01-07 16:03
@andrewshtamburg has left the channel

danny.porrello
2021-01-07 16:48
has joined #pact-php

dawood.abbas
2021-01-08 07:00
has joined #pact-php

victoria.kruczek
2021-01-10 16:35
@victoria.kruczek has left the channel

cksharma122
2021-01-10 17:19
has joined #pact-php

caiquedpfc
2021-01-11 04:05
has joined #pact-php

henrik.rudstrom
2021-01-11 18:30
has joined #pact-php

eric
2021-01-12 10:23
has joined #pact-php

fnguyen
2021-01-13 00:39
has joined #pact-php

pollet_22
2021-01-13 16:04
has joined #pact-php

dshattuck
2021-01-13 20:49
has joined #pact-php

thomas.rosati
2021-01-13 21:58
has joined #pact-php

rahulsmalpani
2021-01-14 07:56
has joined #pact-php

sacha.camfferman768
2021-01-14 09:42
has joined #pact-php

brandonbeard86
2021-01-14 22:10
has joined #pact-php

geetishnayak
2021-01-15 01:02
has joined #pact-php

shettyg
2021-01-15 14:18
has joined #pact-php

natarajang1
2021-01-15 15:29
has joined #pact-php

michel.neufeglise
2021-01-18 08:55
has joined #pact-php

bart.boersma
2021-01-18 10:48
has joined #pact-php

monica.wu
2021-01-19 06:25
has joined #pact-php

makobernal
2021-01-19 08:23
has joined #pact-php

jibrail.idris
2021-01-19 10:11
has joined #pact-php

jmvb.registros
2021-01-19 11:01
has joined #pact-php

tpham
2021-01-19 22:36
has joined #pact-php

vishal.grover
2021-01-20 03:12
has joined #pact-php

priya.saraf
2021-01-20 08:43
has joined #pact-php

fahad.aj.khan
2021-01-20 08:58
has joined #pact-php

nicole.jaenchen
2021-01-20 09:38
has joined #pact-php

dinakaran.ulaganathan
2021-01-20 13:59
has joined #pact-php

ptsiakos77
2021-01-20 21:55
has joined #pact-php

mhdtouban
2021-01-21 01:58
has joined #pact-php

veeraprathap.n
2021-01-21 04:10
has joined #pact-php

tsiakos
2021-01-21 09:24
has joined #pact-php

oleg
2021-01-21 13:05
has joined #pact-php

thomas.powell
2021-01-22 10:18
has joined #pact-php

stefan.selent
2021-01-23 01:54
has joined #pact-php

paulo
2021-01-25 11:37
has joined #pact-php

kmckeever
2021-01-25 14:38
has joined #pact-php

robert.land
2021-01-25 19:25
has joined #pact-php

aparnachaudhari
2021-01-25 21:34
has joined #pact-php

gwhill7
2021-01-25 23:23
has joined #pact-php

bibinc99
2021-01-26 14:37
has joined #pact-php

luisc.barretog
2021-01-27 00:42
has joined #pact-php

laxmi.somni508
2021-01-27 10:27
has joined #pact-php

ryanding16
2021-01-27 20:25
has joined #pact-php

athurner
2021-01-28 13:55
has joined #pact-php

alex.mcnair
2021-01-28 18:35
has joined #pact-php

mailinglistsspammedme
2021-01-28 23:30
has joined #pact-php

mailinglistsspammedme
2021-01-28 23:31
Good question


matt.fellows
2021-01-29 00:08
can you please elaborate on the ?hard coding?? Perhaps that can be made more dynamic

mailinglistsspammedme
2021-01-29 00:11
PHPUnit has this concept of a "Test Suite" which is a grouping of tests. This is an _optional_ construct, and you can also just run random folders separately which doesn't have a test suite.

mailinglistsspammedme
2021-01-29 00:12
The way that listener works, it requires a named test suite to be listed in it's configuration, so if you just run 'all tests' in your IDE, or you run some sub folder, that listener never fires.

mailinglistsspammedme
2021-01-29 00:12
Because of this code: ``` if (\in_array($suite->getName(), $this->testSuiteNames)) { $this->server = new MockServer($this->mockServerConfig); $this->server->start(); }```

mailinglistsspammedme
2021-01-29 00:14
So I can just use the other instructions for starting the Mock Server in this case, however then my CI breaks for when we should actually publish the pacts.

matt.fellows
2021-01-29 01:56
I see. I roughly understand, it?s probably worth raising a feature request via Github

matt.fellows
2021-01-29 01:57
if it?s easy enough to implement, you could even submit a PR for it?

steven.beaver.retail
2021-01-29 15:34
has joined #pact-php

ekberli.elbrus
2021-01-30 16:33
has joined #pact-php

george.south
2021-02-01 21:12
has joined #pact-php

twierzchowski
2021-02-03 07:05
has joined #pact-php

yassin.hajaj
2021-02-03 10:35
has joined #pact-php

dany.marques90
2021-02-03 12:48
has joined #pact-php

marcelo
2021-02-03 13:11
has joined #pact-php

sandeeparthur
2021-02-03 19:46
has joined #pact-php

octoberclub
2021-02-04 16:27
has joined #pact-php

slavick
2021-02-04 17:21
has joined #pact-php

imran.settuba
2021-02-04 18:57
has joined #pact-php

christopher.roberts
2021-02-05 01:02
has joined #pact-php

r.darcel
2021-02-05 09:15
has joined #pact-php

ashish.joshi
2021-02-06 01:07
has joined #pact-php

przemek.sech296
2021-02-08 23:18
has joined #pact-php

vplows
2021-02-09 06:00
has joined #pact-php

rodney.stromlund
2021-02-09 16:18
has joined #pact-php

nada
2021-02-09 19:00
has joined #pact-php

siddhardhan
2021-02-09 20:21
has joined #pact-php

sjdl
2021-02-09 22:14
has joined #pact-php

lars.hisken916
2021-02-10 08:08
has joined #pact-php

pauligoe10
2021-02-10 08:19
has joined #pact-php

tusharvarm
2021-02-10 09:38
has joined #pact-php

igorsharf
2021-02-10 10:39
has joined #pact-php

kieran
2021-02-10 17:13
has joined #pact-php

poward
2021-02-10 18:17
has joined #pact-php

ckhadilkar
2021-02-10 21:16
has joined #pact-php

neild
2021-02-11 18:53
has joined #pact-php

painenigowthami
2021-02-11 22:32
has joined #pact-php

stephenkilbourn
2021-02-11 23:02
has joined #pact-php

tcarlson
2021-02-11 23:05
has joined #pact-php

fnguyen
2021-02-12 01:34
@fnguyen has left the channel

r.strauch
2021-02-12 10:15
has joined #pact-php

ztlboy05
2021-02-12 14:57
has joined #pact-php

smith260194
2021-02-12 15:22
has joined #pact-php

dabfleming
2021-02-12 20:34
has joined #pact-php

prasanthp
2021-02-13 00:45
has joined #pact-php

bhardwajdiwakar
2021-02-14 22:38
has joined #pact-php


hiteshpatadia
2021-02-15 06:29
has joined #pact-php

vikrant.sarkaniya
2021-02-15 13:31
has joined #pact-php

lemitrou
2021-02-15 14:20
has joined #pact-php

helloraj
2021-02-16 08:09
has joined #pact-php

jamesmlucas
2021-02-16 19:29
has joined #pact-php

gabe707
2021-02-16 20:31
has joined #pact-php

wangpei9679
2021-02-16 21:29
has joined #pact-php

geir
2021-02-16 23:03
has joined #pact-php

soruma.net
2021-02-17 05:58
has joined #pact-php

therimpact
2021-02-17 12:30
has joined #pact-php

andrzej.igielski
2021-02-17 21:41
has joined #pact-php

mikewagner21
2021-02-18 03:15
has joined #pact-php

khandelwalbhushan
2021-02-18 08:10
has joined #pact-php

aniket.agarwal
2021-02-18 09:21
has joined #pact-php

arpit.modani
2021-02-18 09:43
has joined #pact-php

byronth
2021-02-18 11:45
has joined #pact-php

isa.levine
2021-02-18 23:37
has joined #pact-php

r.strauch
2021-02-19 08:41
@r.strauch has left the channel

brian.pfretzschner
2021-02-19 10:15
has joined #pact-php

chitra.adikesavan
2021-02-20 15:50
has joined #pact-php

andrzej.igielski
2021-02-20 19:28
@andrzej.igielski has left the channel

ankita.soni
2021-02-22 07:26
has joined #pact-php

jacek.helper
2021-02-22 08:03
has joined #pact-php

dany.marques90
2021-02-22 13:54
@dany.marques90 has left the channel

seanw122
2021-02-22 15:36
has joined #pact-php

akennedy
2021-02-22 15:54
has joined #pact-php

esimpson
2021-02-22 16:42
has joined #pact-php

dagrawal
2021-02-22 17:24
has joined #pact-php

venkata.pro
2021-02-22 21:47
has joined #pact-php

jordan.levin
2021-02-23 19:14
has joined #pact-php

francesco.latorre
2021-02-24 05:59
has joined #pact-php

aniket.g2185
2021-02-24 09:13
has joined #pact-php

sundaresank360
2021-02-24 12:12
has joined #pact-php

jhawthor
2021-02-24 15:18
has joined #pact-php

chris.r.thomas
2021-02-24 16:54
has joined #pact-php

peter.cook
2021-02-24 17:05
has joined #pact-php

jayeshguru81
2021-02-24 18:34
has joined #pact-php

ben.kirberger
2021-02-24 19:16
has joined #pact-php

m.stephkan
2021-02-25 05:30
has joined #pact-php

stephen.tjasink
2021-02-25 08:23
has joined #pact-php

beatrizwaclawek
2021-02-25 20:27
has joined #pact-php

zhoutianli1234
2021-02-25 21:09
has joined #pact-php

travis.day
2021-02-26 04:06
has joined #pact-php

andrew.cunningham
2021-02-26 11:13
has joined #pact-php

andrew.cunningham
2021-02-26 11:54
@andrew.cunningham has left the channel

brianmasschaele
2021-02-27 13:27
has joined #pact-php

pedroefajardo_pactio
2021-02-27 17:18
has joined #pact-php

dominic_herrmann
2021-03-01 06:54
has joined #pact-php

matthew.long
2021-03-02 14:08
has joined #pact-php

tmoncm
2021-03-02 17:17
has joined #pact-php

phoenixcampos01
2021-03-02 21:25
has joined #pact-php

hugh.paul.mcgowan
2021-03-03 17:52
has joined #pact-php

normanrs
2021-03-04 11:18
has joined #pact-php

jayson.bailey
2021-03-04 19:18
has joined #pact-php

mjsmcp
2021-03-08 23:46
has joined #pact-php

javier.garcia_cotado
2021-03-09 21:52
has joined #pact-php

akos.csurai
2021-03-10 13:39
has joined #pact-php

akos.csurai
2021-03-10 14:12
@akos.csurai has left the channel

testme2020testme
2021-03-10 14:12
has joined #pact-php

tommy.mirchandani
2021-03-10 17:13
has joined #pact-php

varinderjitkaur13
2021-03-11 01:46
has joined #pact-php

krcl.dev
2021-03-11 05:11
has joined #pact-php

krishnaraoveera1294
2021-03-11 17:53
has joined #pact-php

raghavendra.kalakonda
2021-03-11 23:08
has joined #pact-php

andries.spies
2021-03-12 07:25
has joined #pact-php

kamil.klima
2021-03-12 11:38
has joined #pact-php

lswanborough
2021-03-15 00:50
has joined #pact-php

don.tobias
2021-03-15 19:35
has joined #pact-php

marcelo
2021-03-16 12:18
@marcelo has left the channel

sagar.kathuria
2021-03-17 04:25
has joined #pact-php

shao.sum
2021-03-17 08:35
has joined #pact-php

riddhichopra
2021-03-18 01:28
has joined #pact-php

anu.de
2021-03-18 02:28
has joined #pact-php

sreyaslj
2021-03-18 04:25
has joined #pact-php

arvind1017
2021-03-18 22:48
has joined #pact-php

sushilvc84
2021-03-19 00:30
has joined #pact-php

tejakoshti7
2021-03-19 06:26
has joined #pact-php

yannick.adler
2021-03-19 12:44
has joined #pact-php

smith260194
2021-03-19 17:41
@smith260194 has left the channel

aelse
2021-03-19 23:54
has joined #pact-php

eric2323223
2021-03-20 01:35
has joined #pact-php

jordan.r.stewart
2021-03-20 16:07
has joined #pact-php

tmorrison
2021-03-21 21:45
has joined #pact-php

a.chandrasekaran
2021-03-22 00:50
has joined #pact-php

maksym.motornyi
2021-03-22 11:50
has joined #pact-php

gareth.somerville
2021-03-22 12:10
has joined #pact-php

joseph.method
2021-03-22 19:55
has joined #pact-php

dennyg666
2021-03-22 20:54
has joined #pact-php

me1295
2021-03-23 00:15
has joined #pact-php

anchit.99
2021-03-23 09:04
has joined #pact-php

joseph.method
2021-03-23 14:29
@joseph.method has left the channel

wola.adedeji
2021-03-23 16:25
has joined #pact-php

kenny.shobowale
2021-03-23 16:38
has joined #pact-php

anbu.pandian
2021-03-24 11:54
has joined #pact-php

rachel.barton
2021-03-24 19:12
has joined #pact-php

james522
2021-03-24 22:06
has joined #pact-php

anne.schuth320
2021-03-25 07:49
has joined #pact-php

james.shirtcliffe
2021-03-25 12:04
has joined #pact-php

serhii.makarenko
2021-03-25 12:55
has joined #pact-php

mashabudryte
2021-03-25 14:35
has joined #pact-php

matthew.simon.barnes_
2021-03-25 16:08
has joined #pact-php

jose.manzano
2021-03-26 14:27
has joined #pact-php

chris.faulkner
2021-03-26 16:13
has joined #pact-php

bryanw
2021-03-26 18:46
has joined #pact-php

kerem.durak
2021-03-29 08:34
has joined #pact-php

dave.clissold
2021-03-29 12:40
has joined #pact-php

sidhant.bhayana.15
2021-03-29 18:34
has joined #pact-php

crhawkins85
2021-03-30 21:02
has joined #pact-php

pranav.gore
2021-03-31 01:58
has joined #pact-php

harsha6988
2021-03-31 12:19
has joined #pact-php

leixu
2021-03-31 14:42
has joined #pact-php

matthew.brown
2021-03-31 15:15
has joined #pact-php

oleksandr.tryshchenko
2021-03-31 19:54
has joined #pact-php

phelantomas
2021-04-01 13:13
has joined #pact-php

ktogias
2021-04-01 20:04
has joined #pact-php

ktogias
2021-04-01 20:26
Hello. I try to verify my provider with PACT-PHP, but verifier does not seem to take into account the match type (like and eachLike)  matchingRules. Test will succeed only when the actual pact response body is returned. When I change a value eg. 'id': 345 instead of 'id': 123 the provider test fails, although pact file has matchingRules like ```"$.body[*].id": { "match": "type" }``` Am I missing something? Shouldn't the verifier check only for the type of the responce objects?

ktogias
2021-04-01 20:33
My PACT as shown in pact borker HAL Browser is this: https://pastebin.com/05LvhW00

ktogias
2021-04-01 20:33
A provider returning the same objects with different numeric ids fail to validate it with pact php. If all values are exactly the same it validates.

balaji.sivakumar
2021-04-02 05:41
has joined #pact-php

matt.fellows
2021-04-02 12:23
It looks like a v3 generated pact, so it's possible it's not reading the matchers. What language are you using to generate the provider? If you can serialise a V2 pact that might help

ktogias
2021-04-02 12:26
The provider is on php. The pact file is generated with pact-js and jest from a javascript client.

ktogias
2021-04-02 12:27
The pact os v3. Matchers do not work on v3 pacts?

matt.fellows
2021-04-02 22:22
They do, but pact pythont doesn't support v3 just yet

matt.fellows
2021-04-02 22:23
Are you using the new v3 pact library?

matt.fellows
2021-04-02 22:23
It doesn't quite look like it looking at the pact

matt.fellows
2021-04-02 22:35
The matchers look like V2 ones, but the spec says three. How'd you generate it?

matt.fellows
2021-04-02 22:36
You could use the generic CLI verifier: https://docs.pact.io/implementation_guides/cli/

uryadov212
2021-04-05 20:52
has joined #pact-php

soumya.aithal966
2021-04-05 22:45
has joined #pact-php

sheyan.rizfee
2021-04-06 00:55
has joined #pact-php

piotr
2021-04-06 09:24
has joined #pact-php

dmitry.korolev
2021-04-06 11:47
has joined #pact-php

dmitry.korolev
2021-04-06 11:49
@dmitry.korolev has left the channel

ktogias
2021-04-06 13:00
Hi. The pacts are generated with pactjs and jest.

matt.fellows
2021-04-06 13:26
Which version of pact?

matt.fellows
2021-04-06 13:27
The beta version? I ask because I'm confused about the spec version in the file. You haven't modified afterwards?

sravyavadrevu988
2021-04-06 20:40
has joined #pact-php

johnnycareer
2021-04-06 21:34
has joined #pact-php

johnnycareer
2021-04-06 21:41
@johnnycareer has left the channel

danil.nurgaliev
2021-04-07 12:26
has joined #pact-php

gtsifrikas
2021-04-08 08:53
has joined #pact-php

kanapuramamarnath
2021-04-08 09:18
has joined #pact-php

arnaud.dutrillaux
2021-04-09 10:59
has joined #pact-php

gsinghania
2021-04-09 15:40
has joined #pact-php

souravmohanty35
2021-04-09 16:34
has joined #pact-php

itzdavey
2021-04-09 17:23
has joined #pact-php

tmorrison
2021-04-12 00:18
@tmorrison has left the channel

laura.edington
2021-04-13 17:45
has joined #pact-php

liam.mcdermott
2021-04-13 22:38
has joined #pact-php

wedlaaa
2021-04-14 13:33
has joined #pact-php

wderksen
2021-04-14 22:26
has joined #pact-php

mail_4brad
2021-04-15 02:34
has joined #pact-php

mail_4brad
2021-04-15 05:15
@mail_4brad has left the channel

goncalosamuel
2021-04-15 15:08
has joined #pact-php

matthew.hall
2021-04-15 17:36
has joined #pact-php

raony
2021-04-15 19:21
has joined #pact-php

gupta.ratnesh9
2021-04-16 04:48
has joined #pact-php

greg595au
2021-04-16 10:00
has joined #pact-php

manel_ben_yahia
2021-04-16 13:59
has joined #pact-php

maxence
2021-04-17 11:07
has joined #pact-php

kranti.deep
2021-04-17 14:17
has joined #pact-php

aaronw153
2021-04-17 21:42
has joined #pact-php

github
2021-04-19 00:57
GitHub app is successfully upgraded in your workspace :tada: To receive notifications in your private channels, you need to invite the GitHub app `/invite @GitHub`

kranti.deep
2021-04-19 08:04
@kranti.deep has left the channel

dwmahieddine
2021-04-19 12:44
has joined #pact-php

garrettmichael
2021-04-19 18:34
has joined #pact-php

daniel.kalleward
2021-04-20 08:16
has joined #pact-php

mattias.persson
2021-04-20 12:45
has joined #pact-php

martin.eklund
2021-04-20 12:47
has joined #pact-php

enda.brody
2021-04-20 17:37
has joined #pact-php

cristian.moisa
2021-04-20 18:25
has joined #pact-php

darccide
2021-04-21 01:35
has joined #pact-php

stain.witness
2021-04-22 02:43
has joined #pact-php

oleksandra.pishcheiko
2021-04-22 08:31
has joined #pact-php

akos.csurai.4github
2021-04-22 10:01
has joined #pact-php

christosbouloumpasis
2021-04-22 10:38
has joined #pact-php

temanibeck
2021-04-22 16:04
has joined #pact-php

michael_swiss
2021-04-22 21:04
has joined #pact-php

tien.xuan.vo
2021-04-23 02:17
I'm learning to use pact in PHP with FFI https://github.com/tienvx/pact-reference/tree/add-php/php. I have some questions with pact messages: ? To verify that consumer is able to handle a message, how I can trigger a message handler in consumer using Pact Mock Server FFI? ? To verify that provider is able to produce a message, Pact Verifier FFI made a `POST /` then compare response to the message's contents. Is that how Pact Verifier FFI supposed to work?

bas
2021-04-23 07:45
@bas has left the channel

dawoud.sheraz
2021-04-23 09:34
has joined #pact-php

matt.fellows
2021-04-23 11:33
1. You can?t actually do that via the FFI bindings, you?ll need to construct the pact interface first, extract out the values (sans matchers) and then pass the payload to the function in the PHP code itself. If the PHP code doesn?t fail, then you can serialise the pact file. I?d show you a Go example, but it?s a bit of a mess. See also https://github.com/pact-foundation/pact-message-demo (that was the Ruby design, but some of the principles apply) 2. On the provider side. You?ll need to stand up an HTTP endpoint on behalf of the provider, and when the verifier does it?s thing you map the interaction description to a registered PHP function (aka the producer) that returns its payload. The proxy returns this back to the verifier to check that the producer function was able to create the correct message

adriano.tanoue
2021-04-23 12:01
has joined #pact-php

saurabh.goel
2021-04-24 20:10
has joined #pact-php

tien.xuan.vo
2021-04-25 02:00
Thank @matt.fellows. I didn't get all ideas here. I will take a look at that repository and ask more questions later (I don't know Ruby but I will try)

matt.fellows
2021-04-25 02:43
You don't need to know Ruby, just that it's how it works today interfacing to Ruby via CLI calls

matt.fellows
2021-04-25 02:43
The diagrams are the useful bits

cemal.onder
2021-04-25 12:22
has joined #pact-php

richard.forjoe
2021-04-26 00:52
has joined #pact-php

github2
2021-04-26 08:55
[pact-foundation/pact-php] Issue opened by mattias-persson

ron.aharoni
2021-04-26 11:03
has joined #pact-php

andrewmorton
2021-04-26 13:33
has joined #pact-php

aram
2021-04-26 15:24
has joined #pact-php

marcelo.souzameinberg
2021-04-26 21:32
has joined #pact-php

github2
2021-04-26 23:26
[pact-foundation/pact-php] Pull request ready for review by siad007

songqing.gu
2021-04-27 01:25
has joined #pact-php

fortiss.anita
2021-04-27 09:34
has joined #pact-php

keshav.reddy503
2021-04-27 12:06
has joined #pact-php

jeremykeczan
2021-04-27 14:57
has joined #pact-php

yeseniavega411
2021-04-27 15:31
has joined #pact-php

almantusk
2021-04-27 16:56
has joined #pact-php

alexandra.huamani
2021-04-28 00:12
has joined #pact-php

tonynguyenit18
2021-04-28 02:12
has joined #pact-php

agrawalneeraj43
2021-04-28 04:37
has joined #pact-php

shixun.liu1023
2021-04-28 04:39
has joined #pact-php

narendra.pathai
2021-04-28 06:21
has joined #pact-php

marcin.grzejszczak
2021-04-28 13:53
has joined #pact-php

flubniewski
2021-04-28 17:01
has joined #pact-php

roy_collings
2021-04-30 15:15
has joined #pact-php

prachi_mangesh_edake
2021-05-03 04:43
has joined #pact-php

sams.prashanth
2021-05-03 08:04
has joined #pact-php

philip.m.wood
2021-05-03 12:46
has joined #pact-php

amiller
2021-05-03 15:27
has joined #pact-php

agarwal.akash333
2021-05-03 23:14
has joined #pact-php

marcin.grzejszczak
2021-05-04 07:26
@marcin.grzejszczak has left the channel

anand.ilkal
2021-05-04 08:01
has joined #pact-php

dennis.minard
2021-05-04 16:23
has joined #pact-php

chris.williams
2021-05-04 16:41
has joined #pact-php

ssorcnafets
2021-05-04 19:20
has joined #pact-php

kowalczuk.jnr
2021-05-04 22:24
has joined #pact-php

hugo
2021-05-05 00:48
has joined #pact-php

jadelong
2021-05-05 15:51
has joined #pact-php

alexei.solcanu
2021-05-06 02:01
has joined #pact-php

zonkor
2021-05-06 08:08
has joined #pact-php

florian.mautendorfer
2021-05-06 14:04
has joined #pact-php

john.mcnulty
2021-05-06 16:49
has joined #pact-php

tarunmehrotra3
2021-05-10 06:31
has joined #pact-php

jbecker
2021-05-10 16:31
has joined #pact-php

james.wettenhall
2021-05-11 04:54
has joined #pact-php

eduardo.marques
2021-05-11 09:19
has joined #pact-php

al8x.romanov
2021-05-11 13:09
has joined #pact-php

jr.jenks
2021-05-11 21:46
has joined #pact-php

sammomichael
2021-05-12 02:27
has joined #pact-php

tony.foster
2021-05-12 03:44
has joined #pact-php

jan.businsky
2021-05-12 09:10
has joined #pact-php

lreisch
2021-05-12 19:23
has joined #pact-php

jorge.curima.corp
2021-05-13 01:37
has joined #pact-php

anh.evizi.test
2021-05-13 05:56
has joined #pact-php

yka259
2021-05-13 08:22
has joined #pact-php

joshibharat
2021-05-13 11:43
has joined #pact-php

smankala
2021-05-13 20:55
has joined #pact-php

martin.pelikan
2021-05-14 06:48
has joined #pact-php

joao_glorioso
2021-05-14 08:41
has joined #pact-php

ashok.jan31
2021-05-14 12:25
has joined #pact-php

gusfisha
2021-05-14 19:52
has joined #pact-php

keithgutfreund
2021-05-14 20:13
has joined #pact-php

k.gutfreund
2021-05-15 03:47
has joined #pact-php

siegcollado
2021-05-17 05:03
has joined #pact-php

simon.thomas1978
2021-05-17 08:53
has joined #pact-php

keimiokamoto
2021-05-17 10:36
has joined #pact-php

fabian.feary
2021-05-17 11:52
has joined #pact-php

josh.brangwyn
2021-05-17 12:19
has joined #pact-php

xiao.liang
2021-05-17 16:41
has joined #pact-php

bhattacharyyasom
2021-05-18 14:05
has joined #pact-php

lalit210784
2021-05-18 17:55
has joined #pact-php

zaxosdimi
2021-05-18 22:14
has joined #pact-php

viktor.trako
2021-05-19 15:45
has joined #pact-php

abdel.akkoub
2021-05-19 17:27
has joined #pact-php

akrala
2021-05-19 21:22
has joined #pact-php

mazi.fayazfar
2021-05-19 22:23
has joined #pact-php

daniel.qu
2021-05-20 18:03
has joined #pact-php

vijay.chawla
2021-05-21 08:37
has joined #pact-php

tim.walter
2021-05-21 09:12
has joined #pact-php

ankit.laddha
2021-05-21 14:03
has joined #pact-php

dimundo
2021-05-21 14:09
has joined #pact-php

include.melaz
2021-05-22 13:15
has joined #pact-php

uddhavchopade
2021-05-23 08:32
has joined #pact-php

lukasz.wlosek
2021-05-24 08:03
has joined #pact-php

komathy_priya_dhanas
2021-05-24 09:26
has joined #pact-php

nh.salah
2021-05-24 11:46
has joined #pact-php

erinc1915
2021-05-24 16:11
has joined #pact-php

nzarate
2021-05-24 18:11
has joined #pact-php

jonathan.arreola
2021-05-24 21:20
has joined #pact-php

cesar.consultorjr
2021-05-24 21:39
has joined #pact-php

gdfesta
2021-05-25 00:44
has joined #pact-php

utsavk3210
2021-05-25 08:37
has joined #pact-php

daniel.cardinha
2021-05-25 10:06
has joined #pact-php

dan.haughey
2021-05-25 14:34
has joined #pact-php

vince.lee
2021-05-25 14:36
has joined #pact-php

pact544
2021-05-25 16:01
has joined #pact-php

shlomi
2021-05-25 22:41
has joined #pact-php

raquel.bautista
2021-05-26 09:38
has joined #pact-php

vince.lee
2021-05-26 09:41
@vince.lee has left the channel

aubilla
2021-05-26 09:52
has joined #pact-php

vishnuprakash323
2021-05-26 10:46
has joined #pact-php

rob.caiger
2021-05-26 11:54
has joined #pact-php

lio.lunesu
2021-05-26 17:55
has joined #pact-php

nahuel.dallavecchia
2021-05-26 20:24
has joined #pact-php

mathew.baltes
2021-05-26 23:33
has joined #pact-php

stephen.leece
2021-05-26 23:44
has joined #pact-php

james_fraser
2021-05-27 09:23
has joined #pact-php

mostafa.zaher
2021-05-27 10:13
has joined #pact-php

utsavtiwary10
2021-05-27 10:53
has joined #pact-php

kamoljan
2021-05-28 02:39
has joined #pact-php

mathias.duesterhoeft
2021-05-28 08:59
has joined #pact-php

matty_o_connor01
2021-05-28 15:57
has joined #pact-php

nathaniel.emmons
2021-05-28 18:25
has joined #pact-php

sapoho3257
2021-05-29 16:10
has joined #pact-php

matt.fellows
2021-05-29 22:50
@tien.xuan.vo :wave: how is the rust integration going? We?ve made a few changes to the FFI interface recently, my aim is to get some docs / guidance on that published next week.

tien.xuan.vo
2021-05-30 08:10
Hi, I am stuck with the segmentation fault error. And I don't know what happen and how to resolve it yet. One good news is pact-reference fixed this issue https://github.com/pact-foundation/pact-php/issues/162

tien.xuan.vo
2021-05-30 08:11
I will try new code to see if the segmentation fault is fixed or not

andjela.rajic
2021-05-30 20:00
has joined #pact-php

sumitsg004
2021-05-31 05:10
has joined #pact-php

james_fraser
2021-05-31 08:59
@james_fraser has left the channel

allan.barbosa
2021-05-31 14:08
has joined #pact-php

vinicius.grund
2021-05-31 14:35
has joined #pact-php

todd.lemmonds
2021-06-01 15:57
has joined #pact-php

alexander.infante
2021-06-01 15:57
has joined #pact-php

michael.doyle
2021-06-01 15:58
has joined #pact-php

paulorochag
2021-06-01 20:20
has joined #pact-php


matt.fellows
2021-06-02 03:07
Ah, sorry I missed this response Tien

matt.fellows
2021-06-02 03:09
What?s the seg fault you?re getting?

matt.fellows
2021-06-02 03:10
I also note you?re not using the handle based interface - that means you?re creating the pact by hand? Or is that a #TODO ?

matt.fellows
2021-06-02 03:10
(i.e. Pact PHP is generating the pact to give to the mock server)

matt.fellows
2021-06-02 03:10
Is it the request or response side that is seg faulting?

tien.xuan.vo
2021-06-02 03:12
It's just 'Segmentation fault', no more information

tien.xuan.vo
2021-06-02 03:13
> I also note you?re not using the handle based interface - that means you?re creating the pact by hand? Or is that a #TODO ?

tien.xuan.vo
2021-06-02 03:13
Please teach me how to use it, I'm new in FFI stuff


matt.fellows
2021-06-02 03:17
Ah!

matt.fellows
2021-06-02 03:17
nvm you _are_ using the handle based interface

matt.fellows
2021-06-02 03:18
I saw `//$pact = file_get_contents(__DIR__ . '/../../pact/consumer-1-provider.json');` and misread.

matt.fellows
2021-06-02 03:18
you?re on the right track.

matt.fellows
2021-06-02 03:18
When is the segfault occurring? i.e. what line in your PHP script there is it failing?


matt.fellows
2021-06-02 03:19
you?re correct, my apologies

tien.xuan.vo
2021-06-02 03:19
the line with `with_body`

tien.xuan.vo
2021-06-02 03:19
If you comment out the code, you will see the issue

matt.fellows
2021-06-02 03:19
consumer side or provider?

tien.xuan.vo
2021-06-02 03:20
ah sorry run this please

tien.xuan.vo
2021-06-02 03:20
`composer consumer-1-matches`

tien.xuan.vo
2021-06-02 03:20
consumer side

matt.fellows
2021-06-02 03:20
I don?t have PHP installed sorry

matt.fellows
2021-06-02 03:20
at least, I?ll need some time to get a workable environment

tien.xuan.vo
2021-06-02 03:21
I can't send you more information, because I just can't

tien.xuan.vo
2021-06-02 03:22
I tried the suggestion here https://pact-foundation.slack.com/archives/CA2S7E6KC/p1619436401022000 but it does not work

matt.fellows
2021-06-02 03:23
It doesn?t look like you?re calling the `init` method before the test runs, this will explain some lack of output


tien.xuan.vo
2021-06-02 03:25
I tried `$ffi->init("LOG_LEVEL=debug");` but it does not print anything, then I removed the code

tien.xuan.vo
2021-06-02 03:25
I will add again later tonight

matt.fellows
2021-06-02 03:25
no that?s not correct

matt.fellows
2021-06-02 03:25
it takes the env var in the argument

matt.fellows
2021-06-02 03:25
and then in your environment (e.g. a shell) you need to export the environment variable

matt.fellows
2021-06-02 03:25
e.g. `LOG_LEVEL=trace composer <command>`

tien.xuan.vo
2021-06-02 03:26
:+1: I will try it later and report the results here. Thanks

github2
2021-06-02 09:20
[pact-foundation/pact-php] Issue opened by guiyomh

github2
2021-06-02 09:35
[pact-foundation/pact-php] Issue closed by guiyomh

tien.xuan.vo
2021-06-02 14:08
I got this error: ```[2021-06-02T13:59:24Z WARN pact_mock_server_ffi] description is NULL! [2021-06-02T13:59:24Z WARN pact_mock_server_ffi] path is NULL! [2021-06-02T13:59:24Z WARN pact_mock_server_ffi] name is NULL! [2021-06-02T13:59:24Z WARN pact_mock_server_ffi] Ignoring header with empty or null name Segmentation fault```

jaspal.gill
2021-06-02 15:23
has joined #pact-php

wenqiglantz
2021-06-02 18:19
has joined #pact-php

ch.toimbetov
2021-06-02 21:46
has joined #pact-php

matt.fellows
2021-06-02 23:39
that tells me you?re not passing a pointer to the FFI interface

matt.fellows
2021-06-02 23:40
I?m not sure how to do that in PHP, but in go there is a c wrapper that can be used to wrap go strings into c strings

matt.fellows
2021-06-02 23:41
looks like its documented on this page: https://www.php.net/manual/en/ffi.examples-basic.php something like ``FFI::addr(...)`` will give a pointer to the string

matt.fellows
2021-06-02 23:41
It?s probably unlikely to work just passing PHP objects about - c won?t know about them

kyle.florence
2021-06-03 04:57
@kyle.florence has left the channel

xyz1kind
2021-06-03 05:03
has joined #pact-php

aftab.shamim2020
2021-06-03 06:02
has joined #pact-php

slu.mendozaharold
2021-06-03 10:33
has joined #pact-php

sergio.artero
2021-06-04 10:07
has joined #pact-php

v-gabriel.dantas
2021-06-04 15:26
has joined #pact-php

leonardo.viana
2021-06-04 18:52
has joined #pact-php

yashdev963
2021-06-07 06:51
has joined #pact-php

i.pinzari
2021-06-07 17:27
has joined #pact-php

gurkiratguliani
2021-06-07 19:36
has joined #pact-php

krishna.ramnk
2021-06-08 13:24
has joined #pact-php

github2
2021-06-08 14:05
[pact-foundation/pact-php] Pull request opened by jildertmiedema

github2
2021-06-08 15:35
[pact-foundation/pact-php] Pull request opened by jildertmiedema

github2
2021-06-08 15:51
[pact-foundation/pact-php] Pull request opened by jildertmiedema

sagar.kharab
2021-06-09 00:32
has joined #pact-php

david.vancouvering
2021-06-09 03:36
has joined #pact-php

nuno.pik
2021-06-09 06:58
has joined #pact-php

natashakdykes
2021-06-09 16:06
has joined #pact-php

torbjorn.vatn
2021-06-09 17:30
has joined #pact-php

s.goel
2021-06-10 08:57
has joined #pact-php

s.goel
2021-06-10 14:17
@s.goel has left the channel

kondal.ramidi
2021-06-10 16:13
has joined #pact-php

richard
2021-06-11 00:13
has joined #pact-php

jwcarman
2021-06-11 14:23
has joined #pact-php

hello370
2021-06-11 14:58
has joined #pact-php

vikrant82
2021-06-12 12:16
has joined #pact-php

tien.xuan.vo
2021-06-12 12:47
I found the problem: I use the wrong type in `header.h`: It should be `uintptr_t pact;` not `unsigned int pact;`

tien.xuan.vo
2021-06-12 12:48
Do you want to merge this https://github.com/tienvx/pact-reference/tree/add-php/php into pact-reference?

github2
2021-06-12 17:23
[pact-foundation/pact-php] Pull request merged by cfmack

github2
2021-06-12 17:23
[pact-foundation/pact-php] Pull request merged by cfmack

github2
2021-06-12 17:24
[pact-foundation/pact-php] Pull request closed by cfmack

github2
2021-06-12 17:26
[pact-foundation/pact-php] Pull request merged by cfmack

github2
2021-06-12 17:26
[pact-foundation/pact-php] Pull request merged by cfmack

github2
2021-06-12 17:27
[pact-foundation/pact-php] Issue opened by cfmack

daniel.bubenheim
2021-06-14 08:05
has joined #pact-php

joaoproenca
2021-06-14 10:15
has joined #pact-php

github2
2021-06-14 11:34
[pact-foundation/pact-php] Pull request opened by jameshalsall

e.pittaluga.b
2021-06-14 16:34
has joined #pact-php

npatil
2021-06-14 17:28
has joined #pact-php

lucas.rolle
2021-06-15 06:48
has joined #pact-php

caoilte
2021-06-15 11:36
has joined #pact-php

caoilte
2021-06-15 14:43
@caoilte has left the channel

danielabbitt
2021-06-15 17:12
has joined #pact-php

tom.borglum
2021-06-15 17:29
has joined #pact-php

tien.xuan.vo
2021-06-16 06:03
I am checking the code of pact-php, and I have some questions: ? Where do we download dynamic libraries + c's header files into? `vendor` or `/usr/local/lib` ? I think pact-reference does not provide as much features as pact-ruby-standalone provide, doesn't it? For example `can-i-deploy` tool, publish pact files, tag version

matt.fellows
2021-06-16 06:09
If you can vendor them that's better

matt.fellows
2021-06-16 06:09
Correct, it's really just for the test itself

matt.fellows
2021-06-16 06:10
Personally, the CLI should be used for publishing / tagging etc

matt.fellows
2021-06-16 06:10
I.e. Not via code

michael.branders
2021-06-16 06:57
has joined #pact-php

tien.xuan.vo
2021-06-16 06:57
Sorry I miss one items: ? Download to `vendor` via requiring a new php package that contains `dll` or `so` or `dylib` files ? Download to `root/pact/bin/` like current version ? Download to `/usr/local/lib`

matt.fellows
2021-06-16 07:06
Option #2 looks best, that is a path inside the project?

matt.fellows
2021-06-16 07:07
Whatever is easiest for the user


matt.fellows
2021-06-16 07:11
Something like is ideal, because it's contained within the installed package and hidden from the user. If it had to go into an OS lib dir it gets messier

jedlicka
2021-06-16 10:12
has joined #pact-php

jpasse
2021-06-16 13:45
has joined #pact-php

jan.malkiewicz
2021-06-16 14:48
has joined #pact-php

jeen.broekstra
2021-06-17 06:13
has joined #pact-php

minijb225
2021-06-17 06:44
has joined #pact-php

tomknee1
2021-06-18 08:15
has joined #pact-php

rockin291
2021-06-19 05:18
has joined #pact-php

zainamro1
2021-06-20 17:17
has joined #pact-php

nferrazzano
2021-06-21 05:23
has joined #pact-php

lewis.prescott079
2021-06-21 12:55
has joined #pact-php

vlad
2021-06-21 18:23
has joined #pact-php

christopher.doherty
2021-06-21 19:01
has joined #pact-php

liorra
2021-06-22 04:17
has joined #pact-php

stanojevic.boban
2021-06-22 10:20
has joined #pact-php

miguel.carneiro
2021-06-22 12:51
has joined #pact-php

tien.xuan.vo
2021-06-22 16:21
I have several questions. First question: is this true for FFI? ? Each test is given a dedicated server and port, ... and improving isolation between tests. ? Pact files will be appended to during test execution

tien.xuan.vo
2021-06-22 16:22
Second question (related to above question): ? Currently each project/service have 2 environment variables: `PACT_CONSUMER_NAME` and `PACT_PROVIDER_NAME` ? Then I saw this error `ERROR pact_mock_server_ffi] unable to write the pact file: Unable to merge pacts: Can't convert interaction of type V3 Synchronous/HTTP to V3 Asynchronous/Messages` ? So do we need to split into 4 variables `PACT_HTTP_CONSUMER_NAME` , `PACT_MESSAGE_CONSUMER_NAME` , `PACT_HTTP_PROVIDER_NAME` , `PACT_MESSAGE_PROVIDER_NAME` ?

srinagasai.krishnasan
2021-06-22 17:35
has joined #pact-php

tien.xuan.vo
2021-06-23 01:51
I can edit above question so I add new one here: > // NOTE: this must be different to the HTTP one, can't mix both interaction styles until v4 So in v4 we need to merge those variables back?

matt.fellows
2021-06-23 01:57
Yes, but you must set `overwrite` to `false` in `write_pact_file`

matt.fellows
2021-06-23 01:57
How are these variables used? By Pact PHP or your project?


tien.xuan.vo
2021-06-23 01:58
Those variables are in Pact PHP

matt.fellows
2021-06-23 01:58
but at the moment yes, you can?t have a message interactions and http interactions in the same file

tien.xuan.vo
2021-06-23 02:07
Is it a good idea for Pact PHP to support only v4 ?

tien.xuan.vo
2021-06-23 02:08
When is v4 specification released?

matt.fellows
2021-06-23 02:08
no that?s definitely not a good idea :slightly_smiling_face:

matt.fellows
2021-06-23 02:08
It should support v2 and v3 (v2 is the most commonly used)

matt.fellows
2021-06-23 02:09
The v4 feature set has only just been agreed as a specification, and it is not yet fully implemented anywhere.

varnit.garg2424
2021-06-23 06:19
has joined #pact-php

varun.patil
2021-06-23 12:44
has joined #pact-php

mselvakumar
2021-06-23 23:54
has joined #pact-php

srikanth.rachakonda
2021-06-24 02:32
has joined #pact-php

ali.akbar
2021-06-24 06:58
has joined #pact-php

erterpstra
2021-06-24 19:20
has joined #pact-php

abinzahid
2021-06-25 06:12
has joined #pact-php

jchandorkar
2021-06-26 09:01
has joined #pact-php

rani.sathya
2021-06-27 04:14
has joined #pact-php

cala.dev_pact
2021-06-28 04:07
has joined #pact-php

robert.rap
2021-06-28 06:34
has joined #pact-php

v-ratngupta
2021-06-28 07:13
has joined #pact-php

e.hallowell
2021-06-28 13:28
has joined #pact-php

tien.xuan.vo
2021-06-28 16:12
Is it true that pact-php version <=7 is designed to test 1 consumer calling 1 provider only?

matt.fellows
2021-06-28 23:57
Each consumer test is only designed for a single consumer/provider, is that what you mean?

matt.fellows
2021-06-28 23:58
that?s the same for all frameworks

matt.fellows
2021-06-28 23:58
mind clarifying what you mean?

tien.xuan.vo
2021-06-29 01:32
? For each test case like this, it's designed for single consumer/provider pair, and I have no question about it: ```$config = new MockServerEnvConfig(); $builder = new InteractionBuilder($config); $builder ->given('a person exists') ->uponReceiving('a get request to /hello/{name}') ->with($request) ->willRespondWith($response); $service = new HttpClientService($config->getBaseUri()); // Pass in the URL to the Mock Server. $result = $service->getHelloString('Bob'); $builder->verify(); $this->assertEquals('Hello, Bob', $result);``` ? But for the whole test suite, there is only one mock server, and that mock server is designed for one consumer/provider pair https://github.com/pact-foundation/pact-php/blob/master/src/PhpPact/Consumer/Listener/PactTestListener.php#L60, consumer and provider are defined by environment variables `PACT_CONSUMER_NAME` and `PACT_PROVIDER_NAME` ? And for the whole project (many test suites), I think we can only define 1 value for those environment variables `PACT_CONSUMER_NAME` and `PACT_PROVIDER_NAME` , so we can only test single consumer/provider pair https://github.com/mattermack/pact-php-example/blob/master/example-one/test/phpunit.example.one.xml#L25

tien.xuan.vo
2021-06-29 01:37
That's why I asked whether `pact-php` version `<=7` is designed for 1 consumer/provider pair (for the whole project)

mishalalexander20
2021-06-29 07:36
has joined #pact-php

lukemufc125
2021-06-29 07:57
has joined #pact-php

prash471
2021-06-29 09:43
has joined #pact-php

martijn.hagens
2021-06-29 10:12
has joined #pact-php

miguel.carneiro
2021-06-29 10:23
@miguel.carneiro has left the channel

mikko.s.koskinen
2021-06-29 17:05
has joined #pact-php

zhaoyi0113
2021-06-30 02:13
has joined #pact-php

sgottipati
2021-07-01 06:02
has joined #pact-php

vshankar
2021-07-01 06:06
has joined #pact-php

e.generalov
2021-07-01 07:19
has joined #pact-php

e.generalov
2021-07-01 07:21
@e.generalov has left the channel

github2
2021-07-01 10:08
[pact-foundation/pact-php] Pull request opened by Sertion

matt.fellows
2021-07-01 12:03
Sorry Tien, I missed this. What?s the example code to merge into pact reference?

tien.xuan.vo
2021-07-01 12:24
Uglyog merged it for me already

eduards.klavins
2021-07-01 13:44
has joined #pact-php

felix.gomez
2021-07-01 14:38
has joined #pact-php

bbako
2021-07-01 20:51
has joined #pact-php

phil.armstrong
2021-07-02 06:49
has joined #pact-php

gargshubham49
2021-07-02 07:21
has joined #pact-php

vinnys.lins
2021-07-05 13:49
has joined #pact-php

github2
2021-07-05 16:03
[pact-foundation/pact-php] Pull request merged by cfmack

talank
2021-07-06 03:52
has joined #pact-php

juri.petersen
2021-07-06 07:29
has joined #pact-php

leolvicario
2021-07-06 07:36
has joined #pact-php

swoichhaa
2021-07-06 08:46
has joined #pact-php

ivo.velthoven174
2021-07-06 09:28
has joined #pact-php

fjtdg
2021-07-06 12:16
has joined #pact-php

steve.etherington
2021-07-06 16:44
has joined #pact-php

rosh.mjohn
2021-07-07 07:19
has joined #pact-php

mahajanalokkumar
2021-07-07 10:41
has joined #pact-php

jyiyng2002
2021-07-07 19:57
has joined #pact-php

splurgeop
2021-07-07 21:48
has joined #pact-php

kapoor.manil
2021-07-07 22:30
has joined #pact-php

pashas.2k3
2021-07-08 03:41
has joined #pact-php

vijayanaggella
2021-07-08 05:25
has joined #pact-php

ananthshenoy03
2021-07-08 05:46
has joined #pact-php

sai5i.islam
2021-07-08 06:40
has joined #pact-php

poorvasgokhale
2021-07-08 09:08
has joined #pact-php

suresh.thammishetti
2021-07-08 11:08
has joined #pact-php

michael.katende
2021-07-09 10:41
has joined #pact-php

marcin.baranowski953
2021-07-09 10:42
has joined #pact-php

bedfordwest
2021-07-10 22:21
has joined #pact-php

firstamit
2021-07-11 14:07
has joined #pact-php

omar554
2021-07-11 21:54
has joined #pact-php

k.deepupardha
2021-07-12 10:23
has joined #pact-php

lumenofor
2021-07-12 10:46
has joined #pact-php

jayr.motta
2021-07-12 13:57
has joined #pact-php

doug.shattuck
2021-07-12 20:26
has joined #pact-php

tien.xuan.vo
2021-07-13 01:58
Hi @cfmack, as you can see in the room #pact-rust, Matt suggested me to contact with you to discuss about my code to update pact-php to support Pact Rust FFI. You can see my code here https://github.com/pact-foundation/pact-php/compare/master...tienvx:rust-ffi?expand=1 I didn't create merge request because it's still a mess, and it's not green yet, still waiting for next release of Pact FFI. Any suggestion are welcome.

sorin_balbae
2021-07-13 07:41
has joined #pact-php

akara
2021-07-13 10:34
has joined #pact-php

nathan.derave
2021-07-13 12:28
has joined #pact-php

matthew.schaad
2021-07-13 21:29
has joined #pact-php

neenad.jadhavgre
2021-07-13 22:30
has joined #pact-php

cristian
2021-07-14 06:18
has joined #pact-php

michal.bernhard
2021-07-14 11:16
has joined #pact-php

richard.jones254
2021-07-14 23:53
has joined #pact-php

edanielsen
2021-07-15 00:46
has joined #pact-php

abatan.k
2021-07-15 03:48
has joined #pact-php

mandeep302755
2021-07-15 04:49
has joined #pact-php

mahajanrupali22
2021-07-15 05:46
has joined #pact-php

hylke.de.jong
2021-07-15 12:49
has joined #pact-php

efemgy
2021-07-15 14:27
has joined #pact-php

amreenshaik.basha
2021-07-16 04:06
has joined #pact-php

rhian.van.esch
2021-07-16 12:14
has joined #pact-php

wilco.van.esch
2021-07-16 12:30
has joined #pact-php

karl.morrison
2021-07-16 12:56
has joined #pact-php

timothyjabez
2021-07-16 17:23
has joined #pact-php

ppdnguyen
2021-07-18 16:23
has joined #pact-php

cgoodison
2021-07-18 23:56
has joined #pact-php

sripathi
2021-07-19 12:30
has joined #pact-php

calvin.krist
2021-07-19 15:29
has joined #pact-php

vinay.viswanadha
2021-07-19 15:30
has joined #pact-php

brian.mitchell
2021-07-19 15:37
has joined #pact-php

mike.geeves064
2021-07-19 18:07
has joined #pact-php

ben.clare2
2021-07-20 08:16
has joined #pact-php

rafael.moral
2021-07-20 11:48
has joined #pact-php

andrii.rakhimov
2021-07-20 23:06
has joined #pact-php

boris.gordon
2021-07-20 23:25
has joined #pact-php

github2
2021-07-22 00:25
[pact-foundation/pact-php] Issue opened by bethesque

ryn.anderson
2021-07-22 17:41
has joined #pact-php

github2
2021-07-22 19:36
[pact-foundation/pact-php] Issue opened by pekhota

schakalabbi
2021-07-22 21:29
has joined #pact-php

uryadov212
2021-07-23 06:15
@uryadov212 has left the channel

consulting
2021-07-23 12:33
has joined #pact-php

galante2123
2021-07-23 14:14
has joined #pact-php

dc113604
2021-07-23 14:39
has joined #pact-php

dsinecos
2021-07-26 04:49
has joined #pact-php

mebenhoeh
2021-07-26 05:20
has joined #pact-php

dsmileb
2021-07-26 16:06
has joined #pact-php

hazel.wright
2021-07-26 19:04
has joined #pact-php

matt682
2021-07-27 01:32
has joined #pact-php

vbhardwaj.eminent
2021-07-28 05:15
has joined #pact-php

miguel.panelo
2021-07-28 07:29
has joined #pact-php

otaviio
2021-07-28 07:57
has joined #pact-php

patrice.krakow
2021-07-28 10:00
has joined #pact-php

david.simpson
2021-07-28 12:51
has joined #pact-php

e.alderson004
2021-07-28 17:17
has joined #pact-php

jdalessandro
2021-07-29 07:27
has joined #pact-php

eric.tang1
2021-07-29 16:22
has joined #pact-php

antklim
2021-07-29 22:25
has joined #pact-php

toffer.lim87
2021-07-30 03:51
has joined #pact-php

aphronio
2021-07-30 13:42
has joined #pact-php

aphronio
2021-07-30 13:46
can we use wiremock instead of pact standalone server? If yes then is it a good idea?

matt.fellows
2021-07-30 23:08
What are you trying to achieve? Mountebank is a great stubbing tool but doesn't do contract testing

matt.fellows
2021-07-30 23:09
So it depends

fabio882
2021-08-01 19:31
has joined #pact-php

eddie
2021-08-02 04:08
has joined #pact-php

aphronio
2021-08-02 10:55
I want to integrate contract based testing in already built microservices. So, I was wondering if there is a way to capture the requests and response from the real system instead of writing my own using pact-php request and response classes. Because I don't have proper documentation of API's and it would be a lot of work if had to define them manually for every test i create.

matt.fellows
2021-08-02 11:55
You could certainly do that, but you?d need to convert them back to a Pact file somehow. We don?t currently have that capability

matt.fellows
2021-08-02 11:55
furthermore, you?ll be missing out on adding matching rules, which means tests may be brittle for your provider when they verify it

matt.fellows
2021-08-02 11:56
Think of it this way: you?re writing _unit test_ of your code. Autogenerating unit tests is a bad idea, because now your tests aren?t having their assumptions tested properly


matt.fellows
2021-08-02 11:58
we also did an AMA on this back in April ?can I generate a test from my OAS??: https://docs.pact.io/help/amas/#ukeu

aphronio
2021-08-02 13:39
I see, I actually saw a talk where the developer was using wiremock in combination with springcloud contracts to auto generate contract files. I thought maybe it is also possible with pact to use a third party mock server because wiremock server is easier as compared to pact standalone server that comes with pact-php. Or may be i am not using it right? Thanks for your explanation and patience. I really appreciate it

matt.fellows
2021-08-03 06:37
There might be an adapter for Wiremock to convert to a Pact file, but it would be really hard to do with matching rules. Without matching rules, your Pact tests will be very painful

matt.fellows
2021-08-03 06:37
That is to say, any autogenerated pact file is likely going to be brittle to verify on the provider side with Pact

matt.fellows
2021-08-03 06:37
You could definitely do it with the Pactflow https://docs.pactflow.io/docs/workshops/bi-directional

matt.fellows
2021-08-03 06:38
but that is a different proposition

aphronio
2021-08-03 08:35
okay I'll continue working on it. And get back to you if i have any questions. You have been very helpful in clarifying things. thanks!

marvin.kienitz
2021-08-05 07:20
has joined #pact-php

danieljak
2021-08-05 10:09
has joined #pact-php

univ.anirudh
2021-08-05 13:22
has joined #pact-php

james.perepiczka
2021-08-05 16:29
has joined #pact-php

j3rry.wan9
2021-08-05 21:44
has joined #pact-php

sadikshahidain
2021-08-06 02:14
has joined #pact-php

sadikshahidain
2021-08-06 02:41
Using Pact for the first time (!) after being a longtime fan-at-a-distance and had a couple of (maybe dumb) questions for the consumer side in PHP I wasn't super sure about and was hoping anyone could share their insights on ? Is the right way to read the log file the Ruby mock service generates to just read it directly through PHP? (I couldn't find a helper method for this, like in analogy to "setLog"?) ? Is there a way to clear the interactions between tests? (the Ruby service's readme https://github.com/pact-foundation/pact-mock_service#mock-service-usage should be done, but I wasn't sure how to do it in my test code) ? Re: the MockServerConfig instance (which I'm setting up for now as a static variable in PHPUnit's setupBeforeClass hook) ? Both "HealthCheckTimeout" and "HealthCheckRetrySec" seem to need to be set (via their setters) in order to avoid a type error (like "...must be of the type int, null returned") when they're retrieved (the code is running on PHP 7.4 if that's relevant, as it seems this requirement was introduced in PHP 7? I'm new to PHP as well) ?? Are there specific defaults I should be setting these to? ? What does "setCors" drive here? (The ones I've written so far seem to work no matter how it's set) Sorry for the deluge, but thank you in advance!

matt.fellows
2021-08-06 02:43
any reason why you aren?t using https://github.com/pact-foundation/pact-php/ directly?

matt.fellows
2021-08-06 02:43
the mock service is not really intended for direct usage by users

sadikshahidain
2021-08-06 02:44
Oh yeah sorry I am using pact-php directly (in PHPUnit)

matt.fellows
2021-08-06 02:44
> What does ?setCors? drive here? (The ones I?ve written so far seem to work no matter how it?s set) That?s for when the mock service is being interacted with over a browser environment, that needs to respect CORS


matt.fellows
2021-08-06 02:44
I can?t answer the other bits, don?t know PHP / Pact-PHP well enough.

matt.fellows
2021-08-06 02:45
But, the mock service should be cleared between interactions. If it?s not, it could be a bug in Pact PHP or a missing documentation

sadikshahidain
2021-08-06 02:47
No worries, that alone is v helpful Ohhh, ok so that should just be automatically happening then? I thought I ran into it once when debugging after copy-pasting a test and forgetting to update the interaction, but that could've been something else now that I think about it. I'll keep an eye out for it just in case

sadikshahidain
2021-08-06 02:48
Would it be helpful to create repros for the other ones and write them as issues on Github to get feedback?

matt.fellows
2021-08-06 02:49
I can?t see how it does it in the code (clears expectations, that is)

matt.fellows
2021-08-06 02:49
so it?s possible it doesn?t, but it?s also possible I?m misunderstanding the PHP usage

matt.fellows
2021-08-06 02:49
> Would it be helpful to create repros for the other ones and write them as issues on Github to get feedback? Repros are always highly appreciated!

sadikshahidain
2021-08-06 02:50
Yeah when I skimmed it I only saw a "deleteAllInteractions" during the "finalize" step. Maybe that's what I'm missing? (since I haven't started to setup the contract parts yet?)


sadikshahidain
2021-08-06 02:53
I have to drop off for today, but I'll try and spin up some isolated repros over the weekend and get those on Github to help others chime in if they can. thank you a bunch for the speedy and helpful replies!

ganginenik
2021-08-06 18:14
has joined #pact-php

sadikshahidain
2021-08-09 02:18
Got Gitpod up and running for those repros, but still have to create them. Had 1 organizational question come up in the meantime around submitting issues: If I have several smaller things related to the READme specifically, should I bundle those all in one issue, or split them into several?

matt.fellows
2021-08-09 02:19
Start with what ever is simpler and then go from there (maybe just a single one?)

george.south
2021-08-09 21:51
@george.south has left the channel

xiaoyewang
2021-08-10 01:13
has joined #pact-php

mfellows_admin
2021-08-10 02:52
has joined #pact-php

qingyuliu
2021-08-10 09:27
has joined #pact-php

dhairyapatel071996
2021-08-10 20:06
has joined #pact-php

beem132
2021-08-10 21:21
has joined #pact-php

rfang
2021-08-11 00:49
has joined #pact-php

subhashnarla
2021-08-11 07:29
has joined #pact-php

jkdihenkar
2021-08-11 10:43
has joined #pact-php

christian.kampka
2021-08-11 10:51
has joined #pact-php

ashwinparthasarathy30
2021-08-11 11:23
has joined #pact-php

andrew.jensen
2021-08-11 16:18
has joined #pact-php

vivekkurhe1993
2021-08-12 03:44
has joined #pact-php

aakbar
2021-08-12 06:05
has joined #pact-php

tm.buga
2021-08-12 08:55
has joined #pact-php

yanivhad
2021-08-12 08:58
has joined #pact-php

francois.fernandes
2021-08-12 11:55
has joined #pact-php

johnathan.gilday
2021-08-13 16:40
has joined #pact-php

ben.kaiser
2021-08-13 17:47
has joined #pact-php

johnathan.gilday
2021-08-13 20:03
@johnathan.gilday has left the channel

dbekman
2021-08-13 20:51
has joined #pact-php

github2
2021-08-15 03:00
[pact-foundation/pact-php] Issue opened by Grunet

sadikshahidain
2021-08-15 03:05
Oh neat this automatically showed up here. I tried to be fairly thorough but lmk if there are any additional details I should/need to add to help triage it. I'll try to get issues/repros spun up for the things I ran into after getting the basic setup done. Top of the list for me is making the information in the log files more easily accessible in CI with the work setup, so I'll maybe focus on repro-ing that next, hopefully by next weekend at the latest.

matt.fellows
2021-08-15 03:55
Thanks! I'll take a look tomorrow. I don't maintain PHP but I'm sure your feedback will be helpful in some way

matt.fellows
2021-08-15 03:55
Really appreciate that thank you

matt.fellows
2021-08-15 03:56
:taco: for @sadikshahidain

chen
2021-08-15 09:34
has joined #pact-php

tom.willmott
2021-08-16 13:47
has joined #pact-php

github2
2021-08-16 15:37
[pact-foundation/pact-php] Pull request opened by WaylandAce

franklin.lucena89
2021-08-16 16:52
has joined #pact-php

sadikshahidain
2021-08-16 23:13
For sure! Makes me feel like I'm giving back in some very small way to all your all's OSS work I and others benefit from

ram.tripathi
2021-08-17 06:33
has joined #pact-php

ricardo.neto
2021-08-17 09:22
has joined #pact-php

andrew.patterson
2021-08-17 14:55
has joined #pact-php

pshah
2021-08-17 15:31
has joined #pact-php

dylanchase26
2021-08-18 04:11
has joined #pact-php

satish.chandra
2021-08-18 05:54
has joined #pact-php

flynnhandley
2021-08-18 22:30
has joined #pact-php

thomaswtsang
2021-08-19 16:53
has joined #pact-php

chris005
2021-08-19 19:07
has joined #pact-php

srimuralixi
2021-08-20 02:18
has joined #pact-php

manika.goel
2021-08-20 05:38
has joined #pact-php

akanksha.sharma
2021-08-20 06:31
has joined #pact-php

jonah
2021-08-20 14:42
has joined #pact-php

tlzhou
2021-08-20 15:02
has joined #pact-php

sadikshahidain
2021-08-23 03:00
Sorry I haven't got around to making reproductions for this yet, but if it would help I can also just add screenshots/error dumps that I ran into at work. I could get those a little faster probably. But for any of them if it would help to have a live reproduction of just lmk and I can put one together on Gitpod (otherwise I can just wait until I hear word for them) Thanks again for all your all's work on this extremely helpful tool!

ramya.sri
2021-08-23 03:52
has joined #pact-php

joseramonrivera21
2021-08-23 08:49
has joined #pact-php

denny.duttig
2021-08-23 10:10
has joined #pact-php

akansha.saraswat3
2021-08-23 10:50
has joined #pact-php

sushant.soni
2021-08-23 21:10
has joined #pact-php

ajaiswal595
2021-08-24 11:00
has joined #pact-php

pd287515778
2021-08-24 12:48
has joined #pact-php

hwebster
2021-08-25 05:30
has joined #pact-php

hoangvo
2021-08-25 05:43
has joined #pact-php

jobjingjo
2021-08-25 06:20
has joined #pact-php

sagarsitap596
2021-08-25 14:10
has joined #pact-php

kyle.fischer
2021-08-25 16:31
has joined #pact-php

datasmithadvtech
2021-08-25 19:43
has joined #pact-php

todor.m.kolev
2021-08-25 19:59
has joined #pact-php

sushmitha.amin
2021-08-26 04:31
has joined #pact-php

shwetastar98
2021-08-26 12:35
has joined #pact-php

contact
2021-08-26 12:44
has joined #pact-php

malena.cadima
2021-08-26 16:07
has joined #pact-php

louis.ss
2021-08-27 01:42
has joined #pact-php

sergio.amorim
2021-08-27 14:40
has joined #pact-php

slin
2021-08-29 23:51
has joined #pact-php

shane.robinson
2021-08-30 00:30
has joined #pact-php

br.maher
2021-08-30 04:35
has joined #pact-php

kwongyun
2021-08-30 15:57
has joined #pact-php

0x06065a
2021-08-31 00:02
has joined #pact-php

matt.thomas
2021-08-31 05:29
has joined #pact-php

abhi.nandan964
2021-08-31 10:19
has joined #pact-php

shivi.btech08
2021-08-31 21:03
has joined #pact-php

kpuengpanich
2021-09-01 07:14
has joined #pact-php

mhmtyuceoz
2021-09-01 07:35
has joined #pact-php

volkan.tufekci
2021-09-02 08:47
has joined #pact-php

yassine
2021-09-02 10:59
has joined #pact-php

connor.beck
2021-09-02 13:39
has joined #pact-php

maurits.out
2021-09-02 15:12
has joined #pact-php

kumasaka.tk
2021-09-02 21:24
has joined #pact-php

valeriia.danylenko
2021-09-03 18:26
has joined #pact-php

irmt06
2021-09-04 22:51
has joined #pact-php

divyalakshmi.gk
2021-09-07 01:46
has joined #pact-php

constantin.jaeck
2021-09-07 02:24
has joined #pact-php

narendra_uppara
2021-09-07 07:17
has joined #pact-php

nikuplanchiwar
2021-09-07 08:03
has joined #pact-php

sdomeracki
2021-09-07 10:22
has joined #pact-php

gibraltor999
2021-09-07 12:03
has joined #pact-php

norway.martin
2021-09-07 18:38
has joined #pact-php

adamdullenty
2021-09-08 08:23
has joined #pact-php

martin.a.harkins
2021-09-08 12:15
has joined #pact-php

rocco.smit
2021-09-09 06:20
has joined #pact-php

andrei_mironau
2021-09-09 10:00
has joined #pact-php

febin.sathar
2021-09-09 10:17
has joined #pact-php

jcaromiq
2021-09-09 11:47
has joined #pact-php

mirko.zipris
2021-09-09 20:08
has joined #pact-php

dotelnp
2021-09-10 06:48
has joined #pact-php

volkan.tufekci
2021-09-10 11:24
@volkan.tufekci has left the channel

sameer.patil
2021-09-10 18:42
has joined #pact-php

b.1.alpha
2021-09-10 19:17
has joined #pact-php

naushad_amin
2021-09-11 23:15
has joined #pact-php

jose_rodriguez
2021-09-13 13:16
has joined #pact-php

kyle_evans
2021-09-13 13:16
has joined #pact-php

rahul.louis
2021-09-13 15:55
has joined #pact-php

a.koka
2021-09-13 17:01
has joined #pact-php

efloresambrosio
2021-09-13 20:09
has joined #pact-php

olle_hallin
2021-09-14 05:50
has joined #pact-php

a.babenko
2021-09-14 14:00
has joined #pact-php

vasavi.balanagu
2021-09-14 16:49
has joined #pact-php

samuel.sjoberg
2021-09-14 21:49
has joined #pact-php

domingo
2021-09-14 23:51
has joined #pact-php

pradeepkumarstudent20
2021-09-15 03:32
has joined #pact-php

bryan
2021-09-15 15:16
has joined #pact-php

dboxler
2021-09-15 18:35
has joined #pact-php

keerthisiv
2021-09-16 03:59
has joined #pact-php

adelina.simion
2021-09-16 08:41
has joined #pact-php

akke.luukkonen
2021-09-16 10:29
has joined #pact-php

alejandro.pena
2021-09-16 13:37
has joined #pact-php

bbleach
2021-09-17 07:30
has joined #pact-php

rushideshpandes
2021-09-20 13:11
has joined #pact-php

gemhar
2021-09-20 14:33
has joined #pact-php

jsegall
2021-09-20 21:37
has joined #pact-php

dalkire
2021-09-21 13:30
has joined #pact-php

hakan.celebi
2021-09-21 19:43
has joined #pact-php

samuel.sjoberg
2021-09-21 20:12
@samuel.sjoberg has left the channel

nrobison
2021-09-22 15:39
has joined #pact-php

calise
2021-09-22 17:06
has joined #pact-php

gemhar
2021-09-23 03:50
@gemhar has left the channel

nareshnavinash
2021-09-23 09:28
has joined #pact-php

radu.simu
2021-09-23 09:38
has joined #pact-php

aterrong
2021-09-23 09:42
has joined #pact-php

nisharaveendran30
2021-09-23 10:34
has joined #pact-php

sujithsukumaranm
2021-09-23 10:36
has joined #pact-php

sureshbabudevaki
2021-09-23 12:01
has joined #pact-php

greg.hinsley
2021-09-23 12:29
has joined #pact-php

nyman.robin
2021-09-24 07:07
has joined #pact-php

ricardo.paquito
2021-09-24 10:36
has joined #pact-php

abramenkov.valentin
2021-09-24 12:42
has joined #pact-php

leo.tang
2021-09-24 17:56
has joined #pact-php

jyotiguptaofficial
2021-09-25 13:00
has joined #pact-php

mattandaey
2021-09-25 20:32
has joined #pact-php

saurelio58
2021-09-27 12:39
has joined #pact-php

francisco
2021-09-27 18:27
has joined #pact-php

jamesatroughton
2021-09-28 10:42
has joined #pact-php

jake.thacker
2021-09-28 22:06
has joined #pact-php

craig.schwarzwald
2021-09-28 22:37
has joined #pact-php

owain.hunt
2021-09-29 12:58
has joined #pact-php

damtsisa
2021-09-30 06:58
has joined #pact-php

morsisdivine
2021-09-30 09:23
has joined #pact-php

patrice.jy.thomas
2021-09-30 15:05
has joined #pact-php

kschendster
2021-09-30 16:46
has joined #pact-php

adam.dubnytskyy
2021-09-30 17:49
has joined #pact-php

stefano.varesi
2021-09-30 17:51
has joined #pact-php

steven.yi
2021-09-30 20:17
has joined #pact-php

calcorbin
2021-09-30 23:09
has joined #pact-php

osikwemhev
2021-10-01 01:45
has joined #pact-php

kentaro
2021-10-01 10:05
has joined #pact-php

vitali.domashkevitsh
2021-10-01 10:08
has joined #pact-php

seb983
2021-10-01 11:30
has joined #pact-php

vannessa.andrade
2021-10-01 14:44
has joined #pact-php

mickfagan
2021-10-02 10:36
has joined #pact-php

maxim.matviyuk
2021-10-03 16:48
has joined #pact-php

jonathan.a.stern
2021-10-03 20:38
has joined #pact-php

chris.ramsden
2021-10-04 16:40
has joined #pact-php

edanielsen
2021-10-05 03:03
@edanielsen has left the channel

brian.fung
2021-10-05 04:57
has joined #pact-php

elekberhacizade
2021-10-05 05:27
has joined #pact-php

ankit.wadhwana
2021-10-05 12:23
has joined #pact-php

zhaopeng
2021-10-05 12:24
has joined #pact-php

bjorn.johansson
2021-10-05 13:16
has joined #pact-php

pcting
2021-10-05 18:57
has joined #pact-php

pcting
2021-10-05 19:26
@pcting has left the channel

aulia.ahn
2021-10-06 00:01
has joined #pact-php

muralis
2021-10-06 01:21
has joined #pact-php

lakapoor777
2021-10-06 08:47
has joined #pact-php

garry.jeromson973
2021-10-06 09:52
has joined #pact-php

anagha.sulakhe
2021-10-06 16:27
has joined #pact-php

mesut.gunes
2021-10-07 09:03
has joined #pact-php

vandana.bhaskersen
2021-10-08 09:58
has joined #pact-php

ad.redouani
2021-10-09 15:11
has joined #pact-php

amulyadoss
2021-10-09 21:09
has joined #pact-php

farshad.falaki
2021-10-10 19:13
has joined #pact-php

jhopkinwilliams
2021-10-12 02:01
has joined #pact-php

josephhaig
2021-10-12 08:52
has joined #pact-php

margarita.lukjanska
2021-10-12 10:12
has joined #pact-php

oak155online
2021-10-12 14:17
has joined #pact-php

filipovic
2021-10-13 06:51
has joined #pact-php

stefan.smith
2021-10-13 09:37
has joined #pact-php

warren
2021-10-13 16:45
has joined #pact-php

michael.stein
2021-10-13 19:02
has joined #pact-php

hwillj
2021-10-14 14:52
has joined #pact-php

fengniy
2021-10-15 02:09
has joined #pact-php

mark.dathorne
2021-10-15 09:51
has joined #pact-php

haroldlearning93
2021-10-15 14:49
has joined #pact-php

vsrungar95
2021-10-15 22:14
has joined #pact-php

jsoto128
2021-10-16 20:45
has joined #pact-php

fiszczu
2021-10-17 17:04
has joined #pact-php

brocheleau
2021-10-18 03:23
has joined #pact-php

andrerc
2021-10-18 22:11
has joined #pact-php

rodolfo.valenzuela
2021-10-19 07:43
has joined #pact-php

kamilyrb
2021-10-19 22:31
has joined #pact-php

joel.whalen588
2021-10-20 20:27
has joined #pact-php

vasil.vasilev
2021-10-21 08:41
has joined #pact-php

ben.crinion
2021-10-21 11:09
has joined #pact-php

estephania.calvo
2021-10-21 19:27
has joined #pact-php

ahmetbcakici
2021-10-21 22:38
has joined #pact-php

abarcadabra
2021-10-22 12:30
has joined #pact-php

harwin1494
2021-10-22 19:04
has joined #pact-php

anindita.ghosh
2021-10-22 23:26
has joined #pact-php

rajnish.maurya
2021-10-25 06:47
has joined #pact-php

alanbos
2021-10-25 10:11
has joined #pact-php

kuzmanovid
2021-10-25 13:59
has joined #pact-php

j.malyjasiak
2021-10-25 14:24
has joined #pact-php

rtbhosale17
2021-10-25 14:25
has joined #pact-php

stefano.mantini
2021-10-25 14:31
has joined #pact-php

r.muthukumar136
2021-10-25 14:59
has joined #pact-php

gravis54
2021-10-25 21:46
has joined #pact-php

misha.antipenko
2021-10-25 21:57
has joined #pact-php

j.malyjasiak
2021-10-26 06:01
@j.malyjasiak has left the channel

adomanski
2021-10-26 10:43
has joined #pact-php

kriegster108
2021-10-26 14:58
has joined #pact-php

adam.witko
2021-10-27 07:36
has joined #pact-php

alex.macpherson
2021-10-27 08:28
has joined #pact-php

yurich00
2021-10-27 18:10
has joined #pact-php

lincolnf
2021-10-27 23:30
has joined #pact-php

lawrencemajmacdonald
2021-10-28 07:33
has joined #pact-php

zsolt.vilagos
2021-10-28 10:00
has joined #pact-php

zsolt.vilagos
2021-10-28 10:00
@zsolt.vilagos has left the channel

norway.martin
2021-10-28 15:59
@norway.martin has left the channel

ramesh.dhanasekaran
2021-10-29 02:20
has joined #pact-php

christopher.mcewen
2021-10-29 12:14
has joined #pact-php

catalin.comarnescu
2021-10-29 12:31
has joined #pact-php

kiran.rudrangi
2021-10-29 16:48
has joined #pact-php

ahmed_syed
2021-11-01 20:46
has joined #pact-php

somayajulaas
2021-11-02 00:38
has joined #pact-php

john
2021-11-02 03:32
has joined #pact-php

rochitsen
2021-11-02 10:49
has joined #pact-php

finta.pl
2021-11-02 14:43
has joined #pact-php

alessandro.borraccino
2021-11-02 17:04
has joined #pact-php

myao
2021-11-02 22:23
has joined #pact-php

matti.anusha
2021-11-03 02:58
has joined #pact-php

ozgurerisir
2021-11-03 10:30
has joined #pact-php

jordan.r.stewart
2021-11-04 08:47
@jordan.r.stewart has left the channel

dean.miley1
2021-11-05 11:40
has joined #pact-php

martha.nolan
2021-11-05 11:50
has joined #pact-php

eniko_kollar
2021-11-05 16:46
has joined #pact-php

ashwin
2021-11-05 17:58
has joined #pact-php

d.philipp
2021-11-08 03:51
has joined #pact-php

hamzah.saleem
2021-11-08 11:22
has joined #pact-php

srividya.ece
2021-11-08 12:17
has joined #pact-php

markus.joschko
2021-11-08 13:13
has joined #pact-php

markus.joschko
2021-11-08 14:17
@markus.joschko has left the channel

belugin.v
2021-11-08 17:16
has joined #pact-php

will.griffiths
2021-11-09 05:25
has joined #pact-php

navilooz
2021-11-09 08:48
has joined #pact-php

keith.hirst
2021-11-09 12:13
has joined #pact-php

rbo
2021-11-09 17:47
has joined #pact-php

harshaan.n.khan
2021-11-10 05:38
has joined #pact-php

esparga
2021-11-10 14:32
has joined #pact-php

jeanlucc
2021-11-10 16:40
has joined #pact-php

thales.areis
2021-11-10 19:33
has joined #pact-php

henk.koopman
2021-11-11 08:56
has joined #pact-php

lena.lindblad
2021-11-11 09:58
has joined #pact-php

radekkoubsky
2021-11-11 16:24
has joined #pact-php

aditya
2021-11-11 17:20
has joined #pact-php

claire
2021-11-11 17:55
has joined #pact-php

gentritmm
2021-11-12 08:35
has joined #pact-php

wilson.espina
2021-11-12 09:52
has joined #pact-php

megan.twyver
2021-11-12 18:39
has joined #pact-php

mischa.molhoek
2021-11-14 09:42
has joined #pact-php

69vron
2021-11-15 01:35
has joined #pact-php

james.sawle
2021-11-15 08:49
has joined #pact-php

pete.watts
2021-11-15 12:46
has joined #pact-php

joshua.badger
2021-11-15 17:10
has joined #pact-php

omarsaddaoui
2021-11-17 02:55
has joined #pact-php

mbyrne
2021-11-17 14:23
has joined #pact-php

matthew.drill
2021-11-18 01:08
has joined #pact-php

james.halsall
2021-11-18 12:02
has joined #pact-php

chvram
2021-11-19 14:09
has joined #pact-php

akhandalmani.malik
2021-11-19 14:17
has joined #pact-php

elias.frykholm
2021-11-19 15:17
has joined #pact-php

martin.carlin
2021-11-19 15:52
has joined #pact-php

paul.nardone
2021-11-19 16:12
has joined #pact-php

emily
2021-11-19 18:56
has joined #pact-php

pietrucha.bartosz
2021-11-20 13:47
has joined #pact-php

mastrobardo
2021-11-21 11:42
has joined #pact-php

fed
2021-11-22 04:20
has joined #pact-php

tumunshaily
2021-11-22 07:54
has joined #pact-php

yunfeng.wang
2021-11-22 09:25
has joined #pact-php

christos.litsas
2021-11-23 13:05
has joined #pact-php

walter.psjr
2021-11-23 17:39
has joined #pact-php

steveforwork2
2021-11-24 08:47
has joined #pact-php

fredrik.ostling
2021-11-24 11:56
has joined #pact-php

jorge.nunez
2021-11-24 14:28
has joined #pact-php

asradhakrishnan
2021-11-24 17:20
has joined #pact-php

edouard.lopez
2021-11-25 11:01
has joined #pact-php

maxkitzing
2021-11-25 17:49
has joined #pact-php

cristian.carrillo
2021-11-26 00:06
has joined #pact-php

christoph.oswald
2021-11-26 09:53
has joined #pact-php

gjourdanweil
2021-11-26 14:39
has joined #pact-php

sean.pike
2021-11-26 14:48
has joined #pact-php

gjourdanweil
2021-11-28 20:09
@gjourdanweil has left the channel

michael.bannister
2021-11-29 07:43
has joined #pact-php

rjadams96
2021-11-29 18:47
has joined #pact-php

pavithz
2021-11-29 23:51
has joined #pact-php

mfellows_20211130
2021-11-30 06:57
has joined #pact-php

mfellows_20211130v2
2021-11-30 10:32
has joined #pact-php

mfellows_20211130v3
2021-11-30 10:57
has joined #pact-php

mfellows_20211130v4
2021-11-30 11:16
has joined #pact-php

agittcelik
2021-11-30 18:35
has joined #pact-php

alturil
2021-11-30 20:56
has joined #pact-php

draper.joseph
2021-12-01 06:50
has joined #pact-php

abhay175
2021-12-01 07:35
has joined #pact-php

joelgrimberg
2021-12-01 11:27
has joined #pact-php

reem.alashry
2021-12-01 12:09
has joined #pact-php

beshoy.ibrahim
2021-12-01 12:09
has joined #pact-php

omar.radi
2021-12-01 12:10
has joined #pact-php

mmudassar192
2021-12-01 12:11
has joined #pact-php

eric.seipold
2021-12-01 13:40
has joined #pact-php

apselsevier
2021-12-01 16:48
has joined #pact-php

ali.korayem
2021-12-01 18:55
has joined #pact-php

luiz.filipe.abrahao
2021-12-01 21:04
has joined #pact-php

david.cummings
2021-12-02 14:13
has joined #pact-php

miccagiann
2021-12-02 14:17
has joined #pact-php

praveen.em
2021-12-03 07:40
has joined #pact-php

ally.parker
2021-12-03 11:18
has joined #pact-php

rishabh.gaur
2021-12-03 11:43
has joined #pact-php

william.wallace
2021-12-03 15:12
has joined #pact-php

batiushkov.nik
2021-12-03 15:48
has joined #pact-php

keith.mcgrath
2021-12-03 18:28
has joined #pact-php

rchandragupthara
2021-12-03 19:32
has joined #pact-php

vinicius.cosmi
2021-12-03 20:01
has joined #pact-php

ichatterjee
2021-12-03 21:27
has joined #pact-php

ben.watts
2021-12-03 23:48
has joined #pact-php

imikhtyuk
2021-12-06 00:36
has joined #pact-php

john
2021-12-06 05:49
so the php provider what exactly does this do: ```->setRequestFilter( function (RequestInterface $r) { return $r->withHeader('MY_SPECIAL_HEADER', 'my special value'); } );```

norrischebl
2021-12-06 05:54
has joined #pact-php

matt.fellows
2021-12-06 06:20
it looks like a request intercepter. It will intercept the request from the Pact verification process -> [your custom code] -> [provider]

matt.fellows
2021-12-06 06:20
it means you can modify the request sent to the provider. Only do this if you know what you?re doing, because you can esentially completely modify the contract here, invalidating it competely

smantini
2021-12-06 09:25
has joined #pact-php

gzinger
2021-12-06 11:19
has joined #pact-php

vinicius.cosmi
2021-12-06 12:14
~s~

mahatmafatal
2021-12-06 13:50
has joined #pact-php

jacob.v.gardner
2021-12-06 14:59
has joined #pact-php

glebing2000
2021-12-07 07:28
has joined #pact-php

sergio.freire
2021-12-07 09:52
has joined #pact-php

sahoo.skumar
2021-12-07 10:55
has joined #pact-php

kingyang728
2021-12-07 15:58
has joined #pact-php

jesseaantebi
2021-12-07 19:36
has joined #pact-php

rsheikh
2021-12-07 22:34
has joined #pact-php

john
2021-12-08 00:28
ah ok thanks

john
2021-12-08 00:30
what version of pact php is compatible with guzzle 6.5? Nevermind i tried 6.0.3 but i get all sorts of dependency conflicts

jorgwel
2021-12-08 01:22
has joined #pact-php

rahul.anwekar23
2021-12-08 04:19
has joined #pact-php

luanacosta05
2021-12-08 20:34
has joined #pact-php

saurabh.techiee
2021-12-09 09:41
has joined #pact-php

albertcabantog
2021-12-09 10:52
has joined #pact-php

paul.scholes
2021-12-10 10:21
has joined #pact-php

chris.sloan
2021-12-10 10:48
has joined #pact-php

leon.york
2021-12-10 12:42
has joined #pact-php

kyle.craviotto
2021-12-10 16:40
has joined #pact-php

lorenz.schumann
2021-12-10 18:33
has joined #pact-php

luispires.m
2021-12-13 12:32
has joined #pact-php

fabio.rodrigues
2021-12-13 16:22
has joined #pact-php

mbailey
2021-12-13 22:17
has joined #pact-php

dkwak
2021-12-14 03:47
has joined #pact-php

haoran.lin
2021-12-14 05:27
has joined #pact-php

tom450
2021-12-14 08:06
has joined #pact-php

pajaree.tuampitak
2021-12-14 10:00
has joined #pact-php

nitins333
2021-12-14 10:03
has joined #pact-php

jaakko.tompuri
2021-12-14 13:10
has joined #pact-php

albert.moreno
2021-12-14 17:01
has joined #pact-php

himanshu
2021-12-15 06:16
has joined #pact-php

john
2021-12-15 06:33
im getting the following error : ``` 1) ProviderTest::testProvider Error: Class 'Uri' not found /var/www/tests/Contract/ProviderTest.php:13``` how do i fix that?

matt.fellows
2021-12-15 06:34
a little more context please?

matt.fellows
2021-12-15 06:34
See also howtoask

2021-12-15 06:34
Please see this page for some tips on how to ask for help to get the best response from the community https://docs.pact.io/help/how_to_ask_for_help

john
2021-12-15 06:34
ah sorry Matt

john
2021-12-15 06:36
im running a php app inside docker with this command: ```docker-compose run symfony composer run test:contract``` and I have the following imports : ```use PhpPact\Provider\MessageVerifier; use PhpPact\Standalone\ProviderVerifier\Model\VerifierConfig;``` but the test run is throwing that error and i dont know why

john
2021-12-15 06:36
```"test:contract": "vendor/bin/phpunit tests/Contract/ProviderTest.php",```

john
2021-12-15 06:36
I looked on the php example you have

matt.fellows
2021-12-15 06:36
what?s line 13 of ProviderTest.php?

john
2021-12-15 06:37
```->setProviderBaseUrl(new Uri('http://localhost:3000')) // URL of the Provider.```

john
2021-12-15 06:37
is that Uri some pact dependency?

matt.fellows
2021-12-15 06:37
have you got an import for the Uri class?

john
2021-12-15 06:37
no i didnt see that in the example


matt.fellows
2021-12-15 06:38
what example are you referring to?

john
2021-12-15 06:38
ah there is a php example on the pact github i think

matt.fellows
2021-12-15 06:39
The example from github that I can see imports Uri explicitly (see link above)

matt.fellows
2021-12-15 06:39
In any case, it needs to be imported - not a PHP expert, but the error message seems pretty clear to me!

john
2021-12-15 06:40
ok i fixed that error after you pointed out that line 13

matt.fellows
2021-12-15 06:40
:thumbsup:

john
2021-12-15 06:40
thanks Matt

matt.fellows
2021-12-15 06:40
np

john
2021-12-15 06:40
hey one other question

john
2021-12-15 06:40
when it says something like: ```Error: Call to undefined method PhpPact\Standalone\ProviderVerifier\Model\VerifierConfig::setRequestFilter()```

john
2021-12-15 06:41
how would i go about fixing that

matt.fellows
2021-12-15 06:42
If it?s undefined, my assumption is that the version of Pact PHP you have doesn?t have that function on the `VerifierConfig` type

matt.fellows
2021-12-15 06:42
what version are you running?

john
2021-12-15 06:42
6.0.3 i think

john
2021-12-15 06:42
i will remove it


matt.fellows
2021-12-15 06:43
(that?s a commit, it may not be _the_ commit, but looks like it?s in the next major version)

john
2021-12-15 06:44
also does ```use PhpPact\Standalone\ProviderVerifier\Model\VerifierConfig;``` contain the class Verifier?

john
2021-12-15 06:45
sorry to be a pain in the backside

matt.fellows
2021-12-15 06:45
haha I don?t know, I?ve never used Pact PHP before

matt.fellows
2021-12-15 06:45
I?m just searching the repository

john
2021-12-15 06:45
ah i think it is use PhpPact\Standalone\ProviderVerifier\Verifier;


john
2021-12-15 06:47
hey Matt im getting some log messages!

john
2021-12-15 06:47
```Testing ProviderTest [2021-12-15 06:46:36] http://console.info: Verifying PACT with script:```

john
2021-12-15 06:48
but it returns an error: ```1) ProviderTest::testProvider Exception: PactPHP Process returned non-zero exit code: 255``` but its ok i can maybe look at that tomorrow . at least i can run this php test which is an accomplishment - for me at least lol

matt.fellows
2021-12-15 06:49
haha small wins!

john
2021-12-15 09:00
Do you think this error is related to apple M1 silicon? ```[2021-12-15 08:29:29] console.debug: Process command: /var/www/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/Installer/../../../../pact/bin/pact-provider-verifier https://fddfd.pactflow.io/pacts/provider/GraphQLProvider/consumer/GraphQLConsumer/latest/master/ --provider-base-url=http://localhost:3000 --provider-app-version=1.0.0 --publish-verification-results --enable-pending --include-wip-pacts-since=2020-01-30 [] [] [2021-12-15 08:29:29] console.debug: Exit code: 255 [] [] [2021-12-15 08:29:29] http://console.info: out > [] [] [2021-12-15 08:29:29] console.error: err > qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory```

john
2021-12-15 09:02
or is it some weird docker related issue?

matt.fellows
2021-12-15 09:41
What docker container is it? Qemu?

matt.fellows
2021-12-15 09:42
Looks unrelated to M1 and more related to missing standard build tools like ld

matt.fellows
2021-12-15 09:42
Howtodocker


matt.fellows
2021-12-15 09:42
Not sure but that might be relevant/useful

diva.pant1
2021-12-15 14:21
has joined #pact-php

johnreilly100
2021-12-15 16:36
has joined #pact-php

elliot.weiser
2021-12-15 19:06
has joined #pact-php

john
2021-12-16 01:22
thanks Matt i'll take a look at this document

sunit
2021-12-16 07:27
has joined #pact-php

felipe.simoes
2021-12-16 18:42
has joined #pact-php

ameadewi
2021-12-16 18:48
has joined #pact-php

john
2021-12-17 03:04
If i am using the php pact stuff like the above example is that using the underlying Ruby binary? ```For Pact implementations that leverage the underlying Ruby binary for their implementation, you'll need to ensure the following dependencies are met: Bash (it's not enough to have Ash) Standard CAs for TLS network communication glibc```

matt.fellows
2021-12-17 03:29
yes, that?s correct

matt.fellows
2021-12-17 03:29
Same work is going on to port to the rust shared core, but that?s in a branch

john
2021-12-17 03:45
interesting, im much more familiar with rust than php - though i normally do games development on rust and not this contract testing related stuff lol

michael.scheepers
2021-12-17 08:11
has joined #pact-php

yanis.benekaa
2021-12-17 16:05
has joined #pact-php

john
2021-12-20 01:01
Im getting the following error when trying to run a provider test via docker-compose inside a php symphony app: ```console.error: err > ERROR: ld.so: object '/usr/lib/preloadable_libiconv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.``` does anyone know what that could refer to?

john
2021-12-20 01:12
so it looks like im getting a 401 when it is trying to get the pact from pactflow?

john
2021-12-20 01:13
```Error reading file from https://mypactflow.pactflow.io/pacts/provider/GraphQLProvider/consumer/GraphQLConsumer/latest/ HTTP request failed: status=401 /var/www/vendor/pact-foundation/pact-php/pact/lib/vendor/ruby/2.2.0/gems/pact-support-1.15.1/lib/pact/consumer_contract/pact_file.rb:71:in `block in get_remote_with_retry'```

matt.fellows
2021-12-20 01:23
libiconv is a pretty core library for dealing with character encodings, from memory

matt.fellows
2021-12-20 01:23
I can imagine a number of libraries might rely on this

matt.fellows
2021-12-20 01:23
If you set verbose mode on, you should be able to see why it?s erroring

matt.fellows
2021-12-20 01:24
It?s either going to be: 1. Missing auth token 2. Invalid auth token 3. You don?t have permissions / read-only token

matt.fellows
2021-12-20 01:24
if you?re using Docker, be sure to check that the environment variable is correctly passed into the container

john
2021-12-20 03:04
sorry Matt, i didnt see your reply. So basically I need to somehow set up the auth token in docker and pass that to the container. so basicaly just set the bearer token in the header

john
2021-12-20 03:21
ah awesome i set the setBrokenToken and it works

dilek
2021-12-20 12:42
has joined #pact-php

sadhana.0203
2021-12-21 07:55
has joined #pact-php

adrian.ernst.lgln
2021-12-21 08:36
has joined #pact-php

dalton.pinto
2021-12-21 09:53
has joined #pact-php

roman.rutkowski.87
2021-12-21 15:42
has joined #pact-php

maxwell.xandeco
2021-12-22 21:43
has joined #pact-php

lixiaoyan68
2021-12-23 06:50
has joined #pact-php

sashaavramchik
2021-12-23 09:07
has joined #pact-php

jamie.manson
2021-12-23 10:51
has joined #pact-php

colin.ansah
2021-12-23 13:21
has joined #pact-php

bruno855
2021-12-23 17:47
has joined #pact-php

appgify
2021-12-23 20:41
has joined #pact-php

jason329
2021-12-23 22:12
has joined #pact-php

shaheen.d2
2021-12-24 07:55
has joined #pact-php

laura.koekenberg
2021-12-24 10:32
has joined #pact-php

craiganthonyrichards
2021-12-25 05:01
has joined #pact-php

mch
2021-12-28 12:54
has joined #pact-php

florian.becker_pact-s
2021-12-28 14:49
has joined #pact-php

oblique
2021-12-28 18:45
has joined #pact-php

smalladi
2021-12-28 19:22
has joined #pact-php

jordan.nazemi
2021-12-28 19:24
has joined #pact-php

gbhusari
2021-12-28 21:22
has joined #pact-php

pghosh
2021-12-28 21:23
has joined #pact-php

carlos.agullo
2021-12-29 08:46
has joined #pact-php

cyrus.devnomad
2021-12-29 14:15
has joined #pact-php

muirandy
2021-12-30 17:57
has joined #pact-php

hocautomation
2022-01-05 09:54
has joined #pact-php

deepakdaga2007
2022-01-05 17:49
has joined #pact-php

tomas.hornak
2022-01-05 23:49
has joined #pact-php

juan.cruz
2022-01-06 02:44
has joined #pact-php

marconota.mac
2022-01-06 10:30
has joined #pact-php

marta.rey-benito
2022-01-06 15:56
has joined #pact-php

fr4ngus
2022-01-06 16:20
has joined #pact-php

huhuang
2022-01-08 05:28
has joined #pact-php

frankfullstack
2022-01-09 20:33
has joined #pact-php

gkrawczyszyn
2022-01-10 06:51
has joined #pact-php

tom.kelly
2022-01-10 15:05
has joined #pact-php

dave.sorenson
2022-01-10 15:51
has joined #pact-php

gianni.araco
2022-01-11 16:13
has joined #pact-php

anu.johar
2022-01-11 20:25
has joined #pact-php

yann.danot
2022-01-12 10:15
has joined #pact-php

hsanghavi
2022-01-13 00:57
has joined #pact-php

vejeta
2022-01-13 03:19
has joined #pact-php

sweeneyrichard2
2022-01-13 15:43
has joined #pact-php

thuvu.se
2022-01-14 05:51
has joined #pact-php

rahul.meher
2022-01-14 09:02
has joined #pact-php

gavin.campbell
2022-01-14 17:31
has joined #pact-php

davideliu
2022-01-14 17:52
has joined #pact-php

pavlo.sprogis
2022-01-16 17:15
has joined #pact-php

jbrady
2022-01-16 21:54
has joined #pact-php

johnathan
2022-01-17 04:42
has joined #pact-php

dimakos.neoklis
2022-01-17 15:04
has joined #pact-php

gueorgui
2022-01-17 16:43
has joined #pact-php

marcbetts
2022-01-17 22:35
has joined #pact-php

lambat.ishanya
2022-01-18 05:10
has joined #pact-php

sprathi
2022-01-18 13:40
has joined #pact-php

emanuela.ceuta
2022-01-18 16:25
has joined #pact-php

chaugule.sandeep
2022-01-19 05:00
has joined #pact-php

ajay.kawde
2022-01-19 13:34
has joined #pact-php

liam.chen
2022-01-19 21:19
has joined #pact-php

taylor.phillips01
2022-01-19 21:45
has joined #pact-php

sandeepa.kv
2022-01-20 06:46
has joined #pact-php

shane.dombowsky
2022-01-20 14:08
has joined #pact-php

jlbrown
2022-01-20 15:29
has joined #pact-php

gabriel.fatori
2022-01-20 18:36
has joined #pact-php

petersonbtah
2022-01-20 20:16
has joined #pact-php

llast
2022-01-20 21:44
has joined #pact-php

devesh.mishra
2022-01-21 04:26
has joined #pact-php

viveksingh.kiit
2022-01-21 09:29
has joined #pact-php

viveksingh.kiit
2022-01-21 09:58
@viveksingh.kiit has left the channel

james.demaine
2022-01-21 10:02
has joined #pact-php

theferryatbuckland
2022-01-21 20:24
has joined #pact-php

david.kormushoff
2022-01-22 00:54
has joined #pact-php

tom.tantisalidchai
2022-01-25 05:43
has joined #pact-php

cedric.spengler
2022-01-25 15:09
has joined #pact-php

austin.reifsteck
2022-01-25 15:20
has joined #pact-php

hsd999
2022-01-25 19:06
has joined #pact-php

parasonbe
2022-01-25 20:31
has joined #pact-php

alex.diaz
2022-01-26 09:05
has joined #pact-php

kskowron
2022-01-26 11:30
has joined #pact-php

spencerm
2022-01-26 14:33
has joined #pact-php

cristiano.cunha
2022-01-26 14:55
has joined #pact-php

nish063
2022-01-27 02:42
has joined #pact-php

ingcmurcia
2022-01-27 04:41
has joined #pact-php

weijian.duan
2022-01-27 08:58
has joined #pact-php

abraham.gonzalez93
2022-01-27 10:39
has joined #pact-php

demna
2022-01-27 15:29
has joined #pact-php

mircea.ungureanu
2022-01-27 15:48
has joined #pact-php

nikhilwa84
2022-01-27 17:43
has joined #pact-php

bogdanm.rusu
2022-01-27 18:04
has joined #pact-php

cventcport
2022-01-27 22:29
has joined #pact-php

mayuri.khemani
2022-01-28 09:43
has joined #pact-php

sujith.nair2
2022-01-28 12:33
has joined #pact-php

rob
2022-01-28 16:36
has joined #pact-php

radovan
2022-01-29 00:20
has joined #pact-php

mongeyc
2022-01-31 14:03
has joined #pact-php

mike.bernard
2022-01-31 21:14
has joined #pact-php

tjoy
2022-02-01 02:06
has joined #pact-php

max.tilford
2022-02-01 03:17
has joined #pact-php

toanshukumar
2022-02-01 14:15
has joined #pact-php

juanquis419
2022-02-01 15:01
has joined #pact-php

matt.murray
2022-02-01 19:40
has joined #pact-php

frederic.gendebien
2022-02-02 08:54
has joined #pact-php

dougie.robertson
2022-02-02 11:15
has joined #pact-php

juan.avendano
2022-02-02 13:36
has joined #pact-php

ausachov
2022-02-03 13:15
has joined #pact-php

aaron.kibbie
2022-02-03 15:59
has joined #pact-php

williangldzn
2022-02-03 20:23
has joined #pact-php

ricardo.gonzaga
2022-02-04 09:35
has joined #pact-php

robin.jacques
2022-02-04 10:51
has joined #pact-php

joaomiguel.rocha
2022-02-04 17:40
has joined #pact-php

jacek.sienniak
2022-02-07 08:45
has joined #pact-php

jamie.weatherby
2022-02-07 15:25
has joined #pact-php

joaobrandao.rodrigues
2022-02-07 16:30
has joined #pact-php

extra
2022-02-07 21:31
has joined #pact-php

elenatuzel
2022-02-08 08:27
has joined #pact-php

vadim
2022-02-08 09:19
has joined #pact-php

anna.khv
2022-02-08 12:19
has joined #pact-php

dhospital
2022-02-08 16:15
has joined #pact-php

jcabrera
2022-02-08 18:26
has joined #pact-php

ardiel.fuentes
2022-02-09 07:14
has joined #pact-php

ruud.von.faber
2022-02-09 09:11
has joined #pact-php

agustin.gomes
2022-02-09 13:23
has joined #pact-php

thijme.langelaar
2022-02-09 13:29
has joined #pact-php

dharmesh.kumar
2022-02-09 13:52
has joined #pact-php

athaper
2022-02-09 14:14
has joined #pact-php

agustin.gomes
2022-02-09 17:04
Hello folks :wave: This PR hasn't gotten any reviews. Can it be given a review in the next days? the changes are quite simple, and I'd be happy to apply further feedback if required.

svranyes
2022-02-09 20:16
has joined #pact-php

samuel.whittaker
2022-02-09 23:40
has joined #pact-php

david.hvilava
2022-02-10 10:53
has joined #pact-php

carlos.ferrao
2022-02-10 15:46
has joined #pact-php

rios.martinivan
2022-02-10 20:18
has joined #pact-php

charles.kuo
2022-02-10 21:42
has joined #pact-php

sudhanshu.testing
2022-02-11 05:12
has joined #pact-php

alessandro.polidori
2022-02-11 15:02
has joined #pact-php

krisakins
2022-02-12 20:19
has joined #pact-php

ian.cervantez
2022-02-13 03:32
has joined #pact-php

antonio.gamiz
2022-02-14 06:51
has joined #pact-php

zish.gatrad
2022-02-14 16:01
has joined #pact-php

james.troughton
2022-02-14 16:08
has joined #pact-php

manuelam20
2022-02-15 00:41
has joined #pact-php

dchen
2022-02-15 08:03
has joined #pact-php

aristides.suarez
2022-02-15 08:14
has joined #pact-php

marcelino.garcia
2022-02-15 08:22
has joined #pact-php

varnika.singh
2022-02-15 09:11
has joined #pact-php

bernard
2022-02-15 16:22
has joined #pact-php

david.uzumaki
2022-02-15 16:33
has joined #pact-php

abhishekc.jh
2022-02-15 17:21
has joined #pact-php

nuno.frias
2022-02-15 19:28
has joined #pact-php

faran
2022-02-15 22:31
has joined #pact-php

andy
2022-02-16 00:35
has joined #pact-php

andy
2022-02-16 00:36
@andy has left the channel

fushinoryuu
2022-02-16 01:40
has joined #pact-php

abdelior
2022-02-16 08:48
has joined #pact-php

misterjkl
2022-02-16 13:12
has joined #pact-php

brian.azizi
2022-02-16 14:05
has joined #pact-php

richelle.raaphorst
2022-02-16 15:17
has joined #pact-php

guillermo.aguirre
2022-02-17 20:06
has joined #pact-php

adamslack
2022-02-18 15:55
has joined #pact-php

darwin.cahyadi
2022-02-18 18:00
has joined #pact-php

jkdihenkar
2022-02-19 10:51
@jkdihenkar has left the channel

rishi.speets
2022-02-19 14:43
has joined #pact-php

ybergstrom
2022-02-21 03:24
has joined #pact-php

gyuvaraj10
2022-02-21 08:03
has joined #pact-php

athissen
2022-02-21 08:09
has joined #pact-php

andrefcsousa
2022-02-21 10:19
has joined #pact-php

katharina.pavic
2022-02-21 12:37
has joined #pact-php

ipoe
2022-02-21 14:54
has joined #pact-php

jeroen.vandijk
2022-02-21 16:40
has joined #pact-php

ondikumana
2022-02-21 22:13
has joined #pact-php

nithyag.ganesan
2022-02-22 10:01
has joined #pact-php

ntiwari
2022-02-22 11:48
has joined #pact-php

ingcmurcia
2022-02-23 04:34
@ingcmurcia has left the channel

phil.vint
2022-02-23 11:01
has joined #pact-php

phongthornk
2022-02-23 11:04
has joined #pact-php

lukasz
2022-02-23 14:55
has joined #pact-php

phongthornk
2022-02-24 17:54
I really want to implement this for PHP. However, I try to start to implement Pact-PHP with Laravel. I get these errors when I run tests ```Server error: `GET http://localhost:38189/users/1` resulted in a `500 Internal Server Error` response: {"message":"Multiple interaction found for GET /users/1","matching_interactions":[{"description":"A get request to /user (truncated...) at vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 109? if ($summary !== null) { 110? $message .= ":\n{$summary}\n"; 111? } 112? ? 113? return new $className($message, $request, $response, $previous, $handlerContext); 114? } 115? 116? /** 117? * Obfuscates URI if there is a username and a password present +10 vendor frames 11 tests/Consumer/Service/ConsumerServiceHelloTest.php:64 GuzzleHttp\Client::request()``` This is my test code ```<?php namespace Tests\Consumer\Service; use Exception; use GuzzleHttp\Client; use GuzzleHttp\Exception\GuzzleException; use PhpPact\Consumer\InteractionBuilder; use PhpPact\Consumer\Matcher\Matcher; use PhpPact\Consumer\Model\ConsumerRequest; use PhpPact\Consumer\Model\ProviderResponse; use PhpPact\Standalone\MockService\MockServerEnvConfig; use PHPUnit\Framework\TestCase; class ConsumerServiceHelloTest extends TestCase { /** * Example PACT test. * * @throws Exception * @throws GuzzleException */ public function testGetUserWithGivenId() { $matcher = new Matcher(); // Create your expected request from the consumer. $request = new ConsumerRequest(); $request ->setMethod('GET') ->setPath('/users/1') ->addHeader('Content-Type', 'application/json'); // Create your expected response from the provider. $response = new ProviderResponse(); $response ->setStatus(200) ->addHeader('Content-Type', 'application/json') ->setBody([ 'id' => 1 ]); // Create a configuration that reflects the server that was started. You can create a custom MockServerConfigInterface if needed. $config = new MockServerEnvConfig(); $builder = new InteractionBuilder($config); $builder ->uponReceiving('A get request to /users/{id}') ->with($request) ->willRespondWith($response); // This has to be last. This is what makes an API request to the Mock Server to set the interaction. $client = new Client([ 'base_uri' => $config->getBaseUri(), ]); $result = $client->request('GET', '/users/1', [ 'headers' => [ 'Content-Type' => 'application/json', ], ]); $builder->verify(); // This will verify that the interactions took place. $this->assertEquals('', $result); // Make your assertions. } }``` Debug ```[2022-02-25T00:53:14.684488 #35930] DEBUG -- : { "description": "A get request to /users/{id}", "request": { "method": "GET", "path": "/users/1", "headers": { "Content-Type": "application/json" } }, "response": { "status": 200, "headers": { "Content-Type": "application/json" }, "body": { "id": 1 } }, "metadata": null }``` Please suggest to me :slightly_smiling_face:

matt.fellows
2022-02-24 22:00
That error usually comes up when there is a conflicting scenario name (`uponReceiving` ) and request details without a state to differentiate the requests. I can?t see it in your test, so this could be that there is a different test somewhere else with the same details. Alternatively, the pact write mode could be `merge` and the pact already has that request in it. In that case, you should clear out the pact file before running your tests

phongthornk
2022-02-25 02:43
@matt.fellows With the pact-php do not require to install pact-ruby-standalone, right? It can running from phpunit.xml. Am I understand, right?

phongthornk
2022-02-25 02:49
Maybe I still don't understand about the state in pact I see this and not clear why I need to setup

matt.fellows
2022-02-25 02:52
is the above your entire setup? It seems like you might be missing something. Are there other tests?

matt.fellows
2022-02-25 02:52
Alternatively, you might not be calling the appropriate lifecycle methods to start/stop the mock server (hence why it thinks it?s seeing a duplicate)

phongthornk
2022-02-25 03:00
I am still confused about how to run a pact with PHP. I try to compare setup from go-workshop, but it differently.

phongthornk
2022-02-25 03:04
Last time, I run a pack-mock-server with a standalone outside PHP project and see the result. So I need to add this `$builder->finalize()` to clear interactions when test end see updated code: ```$request = new ConsumerRequest(); $request->setMethod("GET") ->setPath("/users/1") ->addHeader("Accept", "application/json"); $response = new ProviderResponse(); $response->setStatus(200) ->addHeader("Content-Type", "application/json") ->setBody([ "id" => 1, "name" => "John Doe", "email" => "" ]); $config = new MockServerEnvConfig(); $config->setLog(true) ->setLogLevel('debug'); $builder = new InteractionBuilder($config); $builder->given("User with id 1 exists") ->uponReceiving("GET user for id: 1") ->with($request) ->willRespondWith($response); $client = new Client(["base_uri" => $config->getBaseUri()]); $userApi = new UserApi($client); $result = $userApi->getUserById(1); $this->assertTrue($builder->verify()); $this->assertEquals(1, $result->id); $this->assertEquals('John Doe', $result->name); $this->assertEquals('', $result->email); $builder->finalize();``` Now it can generate pact file, but need to configure running pact-mock-server with phpunit.xml

phongthornk
2022-02-25 03:07
phpunit.xaml ```<?xml version="1.0" encoding="UTF-8"?> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" > <listeners> <listener class="PhpPact\Consumer\Listener\PactTestListener"> <arguments> <array> <element key="0"> <string>PhpPact Example Tests</string> </element> </array> </arguments> </listener> </listeners> <testsuites> <testsuite name="Unit"> <directory suffix="Test.php">./tests/Unit</directory> </testsuite> <testsuite name="Feature"> <directory suffix="Test.php">./tests/Feature</directory> </testsuite> <testsuite name="PhpPact Example Tests"> <directory>./tests/Consumer</directory> </testsuite> </testsuites> <coverage processUncoveredFiles="true"> <include> <directory suffix=".php">./app</directory> </include> </coverage> <php> <env name="APP_ENV" value="testing"/> <env name="BCRYPT_ROUNDS" value="4"/> <env name="CACHE_DRIVER" value="array"/> <env name="MAIL_MAILER" value="array"/> <env name="QUEUE_CONNECTION" value="sync"/> <env name="SESSION_DRIVER" value="array"/> <env name="TELESCOPE_ENABLED" value="false"/> <env name="PACT_MOCK_SERVER_HOST" value="localhost"/> <env name="PACT_MOCK_SERVER_PORT" value="7200"/> <env name="PACT_CONSUMER_NAME" value="Frontend"/> <env name="PACT_CONSUMER_VERSION" value="1.0.0"/> <env name="PACT_CONSUMER_TAG" value="master"/> <env name="PACT_PROVIDER_NAME" value="UserApi"/> <env name="PACT_OUTPUT_DIR" value=".\example\output"/> <env name="PACT_MOCK_SERVER_HEALTH_CHECK_TIMEOUT" value="10"/> <!-- <env name="PACT_BROKER_URI" value="http://localhost"/> --> </php> </phpunit>```

matt.fellows
2022-02-25 03:09
Ah, sorry I?m not sure. I don?t know Pact PHP very well

phongthornk
2022-02-25 03:09
Hmm, Look like PHPUnit can run pact-mock-server now. Not sure I missing something.

phongthornk
2022-02-25 03:11
No worry about that. You always help me. Thanks :slightly_smiling_face:

phongthornk
2022-02-25 03:11
Maybe I need to learn about the concept of Pact too much.

matt.fellows
2022-02-25 03:12

matt.fellows
2022-02-25 03:12
I don?t think you should be starting/stopping the Ruby standalone yourself. It looks like there are PHP methods to do it

matt.fellows
2022-02-25 03:13
you can either a) do a `$server->start();` before your tests and `$server->stop();` after them, or b) use the listeners (I think you?re using the listeners)

phongthornk
2022-02-25 03:14
Yes, you're right. Yesterday I spend more time running it along with Phpunit from the link you share with me. I try to make sure no need to install Ruby and use the standalone like go-workshop

phongthornk
2022-02-25 03:15
Now it can work now. Not sure why?

phongthornk
2022-02-25 03:17
Yesterday, I got an error that failed to connect localhost:7200. pact-mock-server not running.

matt.fellows
2022-02-25 03:18
mmm maybe the server hadn?t started in time?

phongthornk
2022-02-25 03:21
Not sure. Maybe related to the order of phpunit.xml. Today I just change the line of it before testsuite and it works.

phongthornk
2022-02-25 03:25
@matt.fellows Could you please explain about state in pact? I see it need database or file

matt.fellows
2022-02-25 03:49
A state is a general concept. In order to test complex scenarios with pact, your provide may need to be in a particular ?state? to work. e.g. your provider might need to have ?user A exist? in the database, for a request to `/users/A` to return a `200` it might have a state ?user is unauthorized? to return a `403` it might expect the state to be ?backend is unavailable? for a request to return a `500` A state could require you to mock api calls, seed a database, stub internal components etc.

matt.fellows
2022-02-25 03:50
You can use it to test the same calls with multiple responses (e.g. for users, it could be a `200` or a `404` if it doesn?t exist)

phongthornk
2022-02-25 04:31
Normally, It probably works with a file, right?

matt.fellows
2022-02-25 04:33
what do you mean, sorry?

phongthornk
2022-02-25 04:43
Ahh sorry for the unclear text. I mean state is the same with pact file, right?

phongthornk
2022-02-25 04:44
I think it just only texts to tell me what is the test case. ```Given("User sally exists"). UponReceiving("A request to login with user 'sally'").``` This is part of state, right?

matt.fellows
2022-02-25 04:45
yes. your consumer test says what state each test should be in, that?s written to the pact file.

matt.fellows
2022-02-25 04:45
yep!

matt.fellows
2022-02-25 04:45
The combination of `Given` and `UponReceiving` is the scenario you?re testing

matt.fellows
2022-02-25 04:45
you can have the same `UponReceiving` but with different `Given` to test different sub-scenarios

matt.fellows
2022-02-25 04:46
the state is just a string (or an object, in later versions of the spec) that the provider test can used to determine how to get into that state. How you do that, is very specific to your code

phongthornk
2022-02-25 04:46
Oh a bit clear

phongthornk
2022-02-25 04:47
So finally it will generate to a json file, right?

phongthornk
2022-02-25 04:47
Maybe I just need to explore and learn more. Thanks so much for your explanation. :pray:

matt.fellows
2022-02-25 04:48
Pact consumer test generate a pact file (the contract) Contract get?s published to broker (usually, but you can use the pact file) Provider verifies the contract

matt.fellows
2022-02-25 04:48
see the CI/CD workshop in :point_down: howtolearn

2022-02-25 04:48
Here are a number of useful hands-on labs that teach all of the key concepts: https://docs.pactflow.io/docs/workshops and https://docs.pact.io/implementation_guides/workshops

phongthornk
2022-02-25 04:59
@matt.fellows Thank you so much.

phongthornk
2022-02-25 05:20
@matt.fellows What is the exactly BrokerUri in the part of provider? I saw it try to read pact file from this endpoint

matt.fellows
2022-02-25 06:57
see the diagram here: https://docs.pact.io/

ezequiel.uhrig
2022-02-25 13:46
has joined #pact-php

emin.sahin
2022-02-26 13:53
has joined #pact-php

phongthornk
2022-02-27 12:56
Thank you

phongthornk
2022-02-27 12:59
I try to run the next step to verify the pact file from the consumer, but I got this error Not sure why? ```/home/altelma/projects/Jormungandr/pact-workshop-php/example/output/frontend-userapi.json --provider='UserApi' --provider-base-url=http://localhost:8000 --provider-states-setup-url=http://localhost:8000/setup-state [] [] [2022-02-27T12:52:48.781655+00:00] console.debug: Exit code: 2 [] [] [2022-02-27T12:52:48.783429+00:00] http://console.info: out > [] [] [2022-02-27T12:52:48.783550+00:00] console.error: err > No value provided for required options '--provider-base-url'```

ihassin
2022-02-27 21:20
has joined #pact-php

yumiihuang
2022-02-28 09:55
has joined #pact-php

yousaf
2022-02-28 11:57
has joined #pact-php

gerry
2022-02-28 12:56
has joined #pact-php

agustina.bosso
2022-02-28 16:04
has joined #pact-php

deactivateduser320370
2022-03-01 11:41
has joined #pact-php

luke.bickell
2022-03-01 14:46
has joined #pact-php

luke.bickell
2022-03-01 16:04
@luke.bickell has left the channel

james.williams
2022-03-01 16:29
has joined #pact-php

qluck
2022-03-01 22:15
has joined #pact-php

peter.pinda
2022-03-01 23:37
has joined #pact-php

omer.bilgin
2022-03-02 15:51
has joined #pact-php

banolik
2022-03-02 18:35
has joined #pact-php

ancyaziz
2022-03-02 22:26
has joined #pact-php

timothyg
2022-03-02 23:40
has joined #pact-php

harihararaj.lk
2022-03-03 09:44
has joined #pact-php

mircea.ungureanu
2022-03-03 11:40
@mircea.ungureanu has left the channel

toyamarinyon
2022-03-03 13:25
has joined #pact-php

david342
2022-03-03 13:26
has joined #pact-php

tien.xuan.vo
2022-03-03 15:26
Hi @cfmack, I'm Tien, the one who created merge request to use https://github.com/pact-foundation/pact-php/pull/210. I know you are busy, and that merge request is big, so it's hard to review. That's why I think we can split that merge request into smaller merge requests. To do that, I suggest we create a https://github.com/pact-foundation/pact-php/projects?type=beta so we can work together there. You can give advice, we can discuss, create merge request, review, track progress from there. I can think of 2 projects in mind: ? Use Rust FFI ? Support Plugins (CSV, Protobuf) We can start the latter after we finished the former. What do you think?

yesilmenadil
2022-03-03 16:14
has joined #pact-php

dajaman1
2022-03-03 20:30
has joined #pact-php

waqif
2022-03-03 23:32
has joined #pact-php

dmitry.matveev
2022-03-03 23:44
has joined #pact-php

reuben.tonna
2022-03-04 14:32
has joined #pact-php

negrolyze
2022-03-04 15:34
has joined #pact-php

42amehmeto
2022-03-04 19:17
has joined #pact-php

rawatankit90
2022-03-04 22:33
has joined #pact-php

tom.daley
2022-03-07 09:09
has joined #pact-php

leon.brown
2022-03-07 09:26
has joined #pact-php

aurelia.rochat
2022-03-07 10:16
has joined #pact-php

kabhatiya
2022-03-08 00:51
has joined #pact-php

luis.garelli
2022-03-08 09:29
has joined #pact-php

andrevdrodrigues
2022-03-08 12:50
has joined #pact-php

tobias
2022-03-08 13:11
has joined #pact-php

mutharaju.kk
2022-03-08 14:34
has joined #pact-php

gerry
2022-03-08 14:48
@gerry has left the channel

will.robinson
2022-03-08 14:54
has joined #pact-php

fragonib
2022-03-08 16:22
has joined #pact-php

jason.wang
2022-03-08 19:05
has joined #pact-php

sam680
2022-03-09 05:12
has joined #pact-php

annette.reid
2022-03-09 07:44
has joined #pact-php

victor.lau
2022-03-09 20:46
has joined #pact-php

kenneth.krause
2022-03-10 16:41
has joined #pact-php

bergner
2022-03-11 06:19
has joined #pact-php

gotax80534
2022-03-11 06:55
has joined #pact-php

mathias
2022-03-11 10:17
has joined #pact-php

jtcsek
2022-03-11 13:02
has joined #pact-php

joachim005
2022-03-14 08:16
has joined #pact-php

alexstout009
2022-03-14 14:32
has joined #pact-php

paul.richards
2022-03-14 14:38
has joined #pact-php

akif.tahir
2022-03-14 15:00
has joined #pact-php

lramos
2022-03-14 16:29
has joined #pact-php

michael036
2022-03-14 18:31
has joined #pact-php

lauren.coggin
2022-03-14 19:27
has joined #pact-php

mkanika1811
2022-03-15 09:22
has joined #pact-php

ian.pringle
2022-03-15 11:02
has joined #pact-php

karl.wagner
2022-03-15 12:25
has joined #pact-php

karl.wagner
2022-03-15 12:36
Hi all. I hope you can help me here. I am currently trying to write some consumer tests in pact-php (7.0.1) under phpunit (5.7.27) on php 7.4.28. I am using the listener functionality to launch the (Ruby-based?) pact-mock-service. This seemed to work reasonably, but seems to hit a limit after about half a dozen tests, at which point the mock server freezes and starts timing out. Oddly, when it does so, the underlying curl_exec call to the mock server times the request out, but never returns either. I am hitting a wall with attempts to diagnose this right now? I would appreciate any help you may be able and willing to offer.

chaitasi.patel988
2022-03-16 04:04
has joined #pact-php

mathias
2022-03-16 08:05
@mathias has left the channel

jose.iglesias
2022-03-16 09:23
has joined #pact-php

alegab0710
2022-03-16 10:20
has joined #pact-php

serghei.pogodin
2022-03-16 12:31
has joined #pact-php

jeremy.vincent
2022-03-16 14:29
has joined #pact-php

1.g10squad
2022-03-16 16:01
has joined #pact-php

alistair.c.kung
2022-03-16 18:44
has joined #pact-php

adam.howard
2022-03-17 02:05
has joined #pact-php

jonatan.jaworski
2022-03-17 02:32
has joined #pact-php

lewis.greenway-jones
2022-03-17 08:52
has joined #pact-php

pierre.gerard
2022-03-17 11:59
has joined #pact-php

viswanathan.sarma
2022-03-17 22:39
has joined #pact-php

phongthornk
2022-03-18 05:14
Is it possible to use Pact with wrapper Client class? ```use GuzzleHttp\Client; Class InternalClient extends Client { // .... } Class UserApi { public function __construct(private InterClient $client) { } }``` In this case, I should mock InternalClient or UserApi? Now, I got this error ```Server error: `GET http://localhost:7200/interactions/verification` resulted in a `500 Internal Server Error` response: Actual interactions do not match expected interactions for mock MockService. Incorrect requests: GET /v1/sso-user/id (truncated...) ```

matt.fellows
2022-03-18 06:05
I don?t see how a wrapper client class has anything to do with the problem

matt.fellows
2022-03-18 06:05
the problem is your expectation doesn?t match what your code is doing

matt.fellows
2022-03-18 06:06
What your api client (wrapper or otherwise) does needs to match up with your unit test expectations

matt.fellows
2022-03-18 06:06
what does that look like?

phongthornk
2022-03-18 06:14
The problem should cause by `base_uri` , I the API Client not use this to set default endpoint. The endpoint will be placed in UserAPi like this ```Class UserApi { public function __construct(private InterClient $client) { $this->client->setEndpoint('http://localhost/v1/user'); } }``` But in the example of Pact PHP see only a way to mock with base_uri. ```$service = new HttpClientService($config->getBaseUri()); // Pass in the URL to the Mock Server. $result = $service->getHelloString('Bob'); // Make the real API request against the Mock Server.``` Because our API Client does not use base_uri. It makes a request by itself like this ```public function request($method, $uri = '', array $options = []) : ResponseInterface { $uri = $this->baseUrl . $uri; try { $response = $this->makeRequest($method, $uri, $options); .... }``` This is an override Client method. Now I try to create a new Class using the default Client class (GuzzleHttp) instead of the custom Client API class. See it work properly. Need to try more . . .

matt.fellows
2022-03-18 06:21
You need to be able to dynamically configure your API client to send requests to the mock server, and not the real one. How you do that Pact doesn?t really care

phongthornk
2022-03-18 06:25
OK, Thank you so much. Really need to take more time on this. :slightly_smiling_face:

phongthornk
2022-03-18 08:03
Hello, I had a question about Pact (Contract Testing), Can I use or run it together with unit testing in case of any Class have a method or function to make an API to providers. Or it should create a test separately with consumer test only? Example code to write unit test ``` /** * @throws GuzzleException */ public function register(array $params): string { $request = [ 'email' => '', 'password' => 'password', ]; // This line below try to call API to another service $response = $this->registrationApi->registerUser($request); return $response['data']['request_id']; }``` In the example above, Can I do like mention before? to combine between unit testing and Pact? Normally, I will use mock API to serve responses as expected such as mountebank, wiremock, etc.

madhulika.mitra
2022-03-18 15:56
has joined #pact-php

phongthornk
2022-03-21 03:32
Does anyone have an example to use `setRequestFilter()` I was trying but not working.

rupam.saha
2022-03-21 09:26
has joined #pact-php

christian.jeppesen
2022-03-21 10:10
has joined #pact-php

anand.kannan
2022-03-21 10:10
has joined #pact-php

mikhail.yartsev
2022-03-21 10:10
has joined #pact-php

bblechman
2022-03-21 16:36
has joined #pact-php

jeffrey2011998
2022-03-22 09:22
has joined #pact-php

xavier.arque
2022-03-22 11:33
has joined #pact-php

aubrey
2022-03-22 14:32
has joined #pact-php

balazs
2022-03-22 15:51
has joined #pact-php

seasharp37
2022-03-22 22:17
has joined #pact-php

saritacutinha
2022-03-23 07:09
has joined #pact-php

rachelb
2022-03-23 10:16
has joined #pact-php

shaheen
2022-03-23 23:11
has joined #pact-php

sentyaev
2022-03-24 12:36
has joined #pact-php

altan.demirkiran
2022-03-24 14:06
has joined #pact-php

jonathan.fortunati
2022-03-24 21:53
has joined #pact-php

simon.dicola
2022-03-25 10:25
has joined #pact-php

mrooschuz
2022-03-25 14:52
has joined #pact-php

ashok.pathak
2022-03-25 15:17
has joined #pact-php

rdanthuluri
2022-03-27 03:28
has joined #pact-php

abhi.nandan964
2022-03-28 05:01
pact-python question was here, sorry for the confusion

matt.fellows
2022-03-28 05:07
Python or PHP (you're in the PHP Chan)

cudi.unal
2022-03-28 11:25
has joined #pact-php

ashraf.anwar.iw
2022-03-28 13:12
has joined #pact-php

b.costa
2022-03-28 13:15
has joined #pact-php

mark.hopper
2022-03-28 14:53
has joined #pact-php

ashraf.anwar
2022-03-28 15:08
has joined #pact-php

damianruizdev
2022-03-28 18:44
has joined #pact-php

matthew.churcher
2022-03-29 08:48
has joined #pact-php

ben.brugman
2022-03-29 14:32
has joined #pact-php

hassan.shaikley
2022-03-29 16:14
has joined #pact-php

oakkub.1995
2022-03-30 07:10
has joined #pact-php

hiqbal
2022-03-30 15:16
has joined #pact-php

sstenhouse
2022-03-30 15:16
has joined #pact-php

bmeyres
2022-03-30 17:37
has joined #pact-php

alejandro.velez
2022-03-30 18:42
has joined #pact-php

justin
2022-03-30 20:07
has joined #pact-php

leo.adriano1994
2022-03-31 00:00
has joined #pact-php

hitesh.patadia
2022-03-31 04:27
has joined #pact-php

matt.cockayne
2022-03-31 11:02
has joined #pact-php

jimmy
2022-03-31 15:39
has joined #pact-php

bret.mcclory538
2022-04-01 01:10
has joined #pact-php

michael.d
2022-04-01 04:40
has joined #pact-php

yash.deole
2022-04-01 07:07
has joined #pact-php

alan.alie
2022-04-01 08:10
has joined #pact-php

jimmy
2022-04-01 08:11
@jimmy has left the channel

ricardo.cruz
2022-04-01 11:54
has joined #pact-php

lauren.corderoy
2022-04-01 12:24
has joined #pact-php

jiayao.xu
2022-04-01 12:24
has joined #pact-php

shiva.velde0413
2022-04-01 14:44
has joined #pact-php

bret.mcclory538
2022-04-04 03:55
@bret.mcclory538 has left the channel

npc1222
2022-04-04 04:37
has joined #pact-php

arthur
2022-04-04 14:28
has joined #pact-php

agastiya.mohammad
2022-04-05 01:19
has joined #pact-php

paul.stapleton
2022-04-05 07:33
has joined #pact-php

iurisoares1012
2022-04-05 09:53
has joined #pact-php

gocool9996
2022-04-05 10:04
has joined #pact-php

simrat.sidhu
2022-04-05 16:07
has joined #pact-php

gabriel.brazao
2022-04-05 17:42
has joined #pact-php

jhonataok01
2022-04-05 17:43
has joined #pact-php

andre.mariano
2022-04-05 19:10
has joined #pact-php

alex.zuliqiaer
2022-04-05 20:31
has joined #pact-php

lflores
2022-04-05 20:33
has joined #pact-php

keoma4
2022-04-05 21:17
has joined #pact-php

erick.belf
2022-04-05 21:46
has joined #pact-php

michaele
2022-04-06 03:40
has joined #pact-php

guillaume.camus
2022-04-06 12:47
has joined #pact-php

danielglazer123
2022-04-06 19:06
has joined #pact-php

ashish.goyal
2022-04-06 23:14
has joined #pact-php

pennellbeth
2022-04-07 08:04
has joined #pact-php

dominic.gara
2022-04-07 08:57
has joined #pact-php

ivan.cheung
2022-04-07 08:58
has joined #pact-php

omrieyal
2022-04-07 08:58
has joined #pact-php

drakulavich
2022-04-07 08:58
has joined #pact-php

jonoar22
2022-04-07 09:06
has joined #pact-php

josh.king
2022-04-07 09:06
has joined #pact-php

pitas01_lope
2022-04-07 09:35
has joined #pact-php

rarestomos
2022-04-07 09:40
has joined #pact-php

shuba.paripoornam
2022-04-07 09:59
has joined #pact-php

shivam.kumar
2022-04-07 11:00
has joined #pact-php

dgupta2
2022-04-07 13:26
has joined #pact-php

pankajarora512
2022-04-07 22:50
has joined #pact-php

aruncontacts
2022-04-07 22:54
has joined #pact-php

mira.kim
2022-04-07 23:59
has joined #pact-php

alphonse.bendt
2022-04-08 11:44
has joined #pact-php

wim.dupont
2022-04-08 11:49
has joined #pact-php

wilsonmar
2022-04-08 13:41
has joined #pact-php

henit.laxmicant
2022-04-08 14:19
has joined #pact-php

mateustalles
2022-04-08 17:35
has joined #pact-php

bioflash1
2022-04-11 09:21
has joined #pact-php

stambolaolya
2022-04-11 13:20
has joined #pact-php

souravmalhotra007
2022-04-11 15:56
has joined #pact-php

akshay.nm92
2022-04-11 17:48
has joined #pact-php

luxfactaest
2022-04-11 18:25
has joined #pact-php

cameron.allan
2022-04-12 00:15
has joined #pact-php

kendrickbong1996
2022-04-12 04:12
has joined #pact-php

timothy.osm
2022-04-12 05:16
has joined #pact-php

pact270
2022-04-12 08:53
has joined #pact-php

oytun
2022-04-12 13:12
has joined #pact-php

alessandrovermeulen
2022-04-12 14:00
has joined #pact-php

lucka
2022-04-12 15:25
has joined #pact-php

damon_walker
2022-04-12 15:26
has joined #pact-php

anusha_matti
2022-04-12 18:24
has joined #pact-php

albert.pincevic
2022-04-12 21:48
has joined #pact-php

marcello.rigan335
2022-04-13 12:07
has joined #pact-php

koel.misra
2022-04-13 13:31
has joined #pact-php

johnmichael.bullen
2022-04-13 15:04
has joined #pact-php

wng
2022-04-13 17:54
has joined #pact-php

connor.mcneil
2022-04-13 19:45
has joined #pact-php

henrry.salinas
2022-04-13 20:10
has joined #pact-php

danielflieger
2022-04-14 06:37
has joined #pact-php

elyas.najafizada
2022-04-14 11:01
has joined #pact-php

tasaki
2022-04-14 14:46
has joined #pact-php

pennellbeth
2022-04-18 01:36
@pennellbeth has left the channel

jithinjacob2011
2022-04-18 02:43
has joined #pact-php

bkapadia
2022-04-18 17:25
has joined #pact-php

lewiscowles
2022-04-18 19:10
has joined #pact-php

florent
2022-04-19 16:02
has joined #pact-php

b.1.alpha
2022-04-19 18:57
@b.1.alpha has left the channel

testingterrasoft
2022-04-19 19:19
has joined #pact-php

olivia.c
2022-04-19 23:27
has joined #pact-php

testingterrasoft
2022-04-20 14:30
@testingterrasoft has left the channel

ysuei.ygui
2022-04-20 20:42
has joined #pact-php

giuseppe.torchia
2022-04-22 08:25
has joined #pact-php

thadamski
2022-04-22 14:00
has joined #pact-php

druiz
2022-04-22 15:02
has joined #pact-php

tord.brokvist
2022-04-22 15:08
has joined #pact-php

gnanasekar69
2022-04-22 17:23
has joined #pact-php

himanshu.1046
2022-04-24 18:25
has joined #pact-php

chris196
2022-04-25 09:51
has joined #pact-php

manu.vereecken
2022-04-25 11:06
has joined #pact-php

maltechristian.neuman
2022-04-25 11:52
has joined #pact-php

prashanth.ramadass
2022-04-25 14:04
has joined #pact-php

janarthanan.rajendras
2022-04-25 22:35
has joined #pact-php

shreyas.gowda
2022-04-26 02:14
has joined #pact-php

marxjo
2022-04-26 07:09
has joined #pact-php

andrew.fraser
2022-04-26 07:19
has joined #pact-php

lei.shi
2022-04-26 07:46
has joined #pact-php

akash.sharma5253
2022-04-26 11:50
has joined #pact-php

kannan.jai
2022-04-27 07:49
has joined #pact-php

c.giannakopoulos
2022-04-27 10:47
has joined #pact-php

sebastian.spiess
2022-04-27 11:43
has joined #pact-php

oury.diallo
2022-04-27 13:46
has joined #pact-php

jean.paiva42
2022-04-27 18:58
has joined #pact-php

christoffer.vig
2022-04-28 06:09
has joined #pact-php

matt.fellows
2022-04-28 08:07
@tien.xuan.vo @cfmack we?re looking to drop a Pactflow POST to our ~8k user database in the next few days. I?d like to provide an update on all of the great work going on with rust integration and celebrate the good work - what?s the current status? Is it in a state where you would want any beta users or contributors to get involved?

tien.xuan.vo
2022-04-28 08:12
It's not ready unfortunately. The PR is not reviewed yet.

matt.fellows
2022-04-28 08:13
is it in a beta release or something people can muck about with or is that still a bit away?

tien.xuan.vo
2022-04-28 08:17
No, it's not in beta or any kind of testing phrase. I'm sorry.

matt.fellows
2022-04-28 08:18
don?t be sorry - very appreciative of your work! I think we need to find a way to get your more help and/or support. It?s hard to review such a drastic change, so I can understand any sluggishness there

andrea.sangiorgio
2022-04-28 13:01
has joined #pact-php

jason.mcinerney
2022-04-28 19:14
has joined #pact-php

psnyder
2022-04-28 19:22
has joined #pact-php

dominique.cote
2022-04-29 01:17
has joined #pact-php

laura.walsh
2022-04-29 13:40
has joined #pact-php

yousafn
2022-04-29 14:38
has joined #pact-php

mailtoadnan.ahmed
2022-04-30 08:56
has joined #pact-php

prasanna.mallisetty
2022-04-30 12:11
has joined #pact-php

marcelo.jaeggi
2022-05-02 16:26
has joined #pact-php

jaswanth.ooty
2022-05-03 00:26
has joined #pact-php

james.weng
2022-05-03 05:13
has joined #pact-php

jochen.kraushaar
2022-05-03 09:16
has joined #pact-php

anurag.soni1984
2022-05-03 10:58
has joined #pact-php

stephen.taylor
2022-05-03 14:26
has joined #pact-php

conrad
2022-05-03 18:41
has joined #pact-php

qamarlonalmeida
2022-05-05 05:24
has joined #pact-php

ben.pilgrim
2022-05-05 10:19
has joined #pact-php

lredpath
2022-05-05 11:21
has joined #pact-php

alex834
2022-05-05 11:26
has joined #pact-php

nachogonzalez
2022-05-05 15:51
has joined #pact-php

mounaouar
2022-05-05 18:00
has joined #pact-php

joanna.schloss
2022-05-06 04:45
has joined #pact-php

frank.kilcommins
2022-05-06 04:46
has joined #pact-php

douglas.clark
2022-05-06 04:46
has joined #pact-php

aaron.m.williams24
2022-05-06 07:50
has joined #pact-php

joanna.janiec
2022-05-06 08:14
has joined #pact-php

nicholas.simons
2022-05-06 11:02
has joined #pact-php

matias.cardenas
2022-05-06 13:44
has joined #pact-php

akash.srivastava.1911
2022-05-08 09:38
has joined #pact-php

gustavs.slutins
2022-05-09 11:51
has joined #pact-php

yhiamdan
2022-05-09 13:51
has joined #pact-php

thomas.cederholm
2022-05-09 14:48
has joined #pact-php

rakesh.arrepu
2022-05-09 15:22
has joined #pact-php

abhinavsharma333
2022-05-09 17:44
has joined #pact-php

orbit
2022-05-09 18:01
has joined #pact-php

eric.barrow
2022-05-10 03:50
has joined #pact-php

oprisor.cata24
2022-05-10 09:42
has joined #pact-php

jonathan.rice
2022-05-10 10:50
has joined #pact-php

vijayasaratha.v
2022-05-10 14:28
has joined #pact-php

radhika.madala
2022-05-10 18:10
has joined #pact-php

oscar.lopez
2022-05-10 20:39
has joined #pact-php

johnathan.pestano
2022-05-11 00:43
has joined #pact-php

milda.abromaviciute
2022-05-11 12:47
has joined #pact-php

matiasleandronunez
2022-05-11 13:22
has joined #pact-php

croudet
2022-05-11 14:07
has joined #pact-php

alex.bonstrom
2022-05-11 16:19
has joined #pact-php

cody.sims
2022-05-11 16:45
has joined #pact-php

harii.ravii
2022-05-11 22:02
has joined #pact-php

josh.kilazoglou
2022-05-12 04:17
has joined #pact-php

poojakunder1997
2022-05-12 07:25
has joined #pact-php

pekka.kiviniemi
2022-05-12 10:46
has joined #pact-php

sophie.bosse2
2022-05-12 12:45
has joined #pact-php

dimitris.schizas
2022-05-12 16:04
has joined #pact-php

j.shankarnath
2022-05-12 16:37
has joined #pact-php

yesh.veera
2022-05-12 17:35
has joined #pact-php

fabio.been
2022-05-12 18:04
has joined #pact-php

aliboztemir
2022-05-12 19:47
has joined #pact-php

luis.garcia
2022-05-13 09:06
has joined #pact-php

andreas.wiig
2022-05-13 14:18
has joined #pact-php

ocalderin14
2022-05-13 15:20
has joined #pact-php

jyoti.yennam
2022-05-13 17:28
has joined #pact-php

rberger
2022-05-13 21:06
has joined #pact-php

jsb0545
2022-05-15 18:55
has joined #pact-php

leon.luu2
2022-05-16 06:43
has joined #pact-php

samikshaphulzele
2022-05-16 09:53
has joined #pact-php

shiva.idc
2022-05-17 00:33
has joined #pact-php

joseph.joyce
2022-05-17 12:15
has joined #pact-php

vasanth.s
2022-05-17 13:36
has joined #pact-php

sri.kasturi
2022-05-17 14:21
has joined #pact-php

sagupta
2022-05-17 15:27
has joined #pact-php

sagupta
2022-05-17 15:40
Hello team, I have just started implementing a test case using pact-php and i am facing an issue where the consumer repo is a consumer to 3 API . So i plan on creating 3 test case files (one for each provider) and i want to set the provider name for each api . So far i dont see how can i do that . I am setting `PACT_PROVIDER_NAME` from the environment file (in my case i am running the consumer inside a docker container so a .env file) . I tried using below code in the test itself but its not overwriting the environment variable. ```putenv("PACT_PROVIDER_NAME=some-api");``` I am using `MockServerEnvConfig()` to get the configurations. Can someone explain how can we do it ?

carlosh.carmo2
2022-05-17 22:43
has joined #pact-php

matt.fellows
2022-05-18 00:49
in that case, don?t use the `EnvConfig` version, and then you can use `$config->setProvider('someProvider');`

matt.fellows
2022-05-18 00:49
Does that not work for you?


gchursov
2022-05-18 09:43
has joined #pact-php

berk.safranbolulu
2022-05-18 10:18
has joined #pact-php

larshoogma
2022-05-18 11:34
has joined #pact-php

malvika0810
2022-05-18 12:17
has joined #pact-php

sagupta
2022-05-18 12:56
alright yea that works for me . So in this case i have to start the server manually which is not a problem. I can extract out this config in a function which i will need to call in every test as a `before` condition. I am thinking about stopping the server when a exception is thrown from test

nishant.shah
2022-05-18 13:38
has joined #pact-php

vorashil.farzaliyev
2022-05-19 10:59
has joined #pact-php

jlcrazzy
2022-05-19 13:38
has joined #pact-php

galveznairon
2022-05-19 13:40
has joined #pact-php

sunny.cheung
2022-05-19 20:43
has joined #pact-php

chantalnitz
2022-05-20 07:22
has joined #pact-php

robert
2022-05-20 08:47
has joined #pact-php

baris.kucuk.atilim
2022-05-20 09:47
has joined #pact-php

rajnavakoti
2022-05-20 12:42
has joined #pact-php

mlund
2022-05-20 21:04
has joined #pact-php

pavi.dealwis
2022-05-21 03:28
has joined #pact-php

endika2
2022-05-21 10:52
has joined #pact-php

6eo2ge
2022-05-22 13:17
has joined #pact-php

eugene.baranovsky
2022-05-22 23:25
has joined #pact-php

harris
2022-05-23 03:04
has joined #pact-php

abhiattipra
2022-05-23 06:04
has joined #pact-php

max.bruns
2022-05-23 07:13
has joined #pact-php

hello560
2022-05-23 12:23
has joined #pact-php

venky.hodigere
2022-05-23 14:54
has joined #pact-php

prerit.jain
2022-05-23 16:27
has joined #pact-php

evan
2022-05-23 16:48
has joined #pact-php

manuel.porto
2022-05-23 17:56
has joined #pact-php

abhishek.lamba
2022-05-24 09:25
has joined #pact-php

stefan.friese
2022-05-24 09:32
has joined #pact-php

bharath.shetty
2022-05-24 09:33
has joined #pact-php

lewiscowles
2022-05-24 09:48
I Sometimes wonder if the errors are deliberately obtuse... https://github.com/pact-foundation/pact-php/runs/6570723077?check_suite_focus=true

rivanitskiy
2022-05-24 14:23
has joined #pact-php

lewiscowles
2022-05-24 16:47
Added the new http://test.pactflow.io url to this now instead of http://test.pact.dius.com.au Makes me think this is not run often enough.

yousafn
2022-05-24 21:30
Ahh yes, the url was decommissioned on the 2nd May https://docs.pactflow.io/notices/2022-03-28-pact-dius-com-au-decommission and the last changes were 29 days ago to master, so that slipped the net. Comms and co-ordination across the repos for maintainers is high on my list at the moment, as well of ideas to build robust and similar workflows across the libraries to ensure that when changes are made, they are appropriately tested and filtered through. The process is quite slick on some repos which are heavily used, but others are maintained often by single maintainers, so the extra eyes and feedback of new contributors and maintainers alike is really valuable. Appreciate the extra effort going in to make debugging easier to distinguish in future. Will co-ordinate with the maintainers and key contributors and see what we can rustle up, ensuring that we do it in the open so others can get involved

yousafn
2022-05-24 21:32
Obtuse errors frustrate me, I watched a video where someone mentioned one of the best things they did was every time they got an error and it was just garbage on their screen, they would clean up the logging to make it easier to grok for others. Might have been a podcast

marti92
2022-05-24 21:40
has joined #pact-php

matt.fellows
2022-05-24 22:19
Yes, that is strange. It?s hard to know where/why that error is occurring.

matt.fellows
2022-05-24 22:19
can you reproduce locally?

lewiscowles
2022-05-25 01:59
Can I ask why the rust FFI version still uses the ruby-standalone?

tien.xuan.vo
2022-05-25 02:10
That's because there are https://github.com/pact-foundation/pact-php/blob/master/src/PhpPact/Standalone/Broker/Broker.php#L24 that need `pact-broker` binary from ruby-standalone, but I can't find any alternate version written in Rust yet.

lewiscowles
2022-05-25 02:23
Thank you

lewiscowles
2022-05-25 02:23
I'm just seeing if I can get your code running faster than a patch for what is. But that is the very part I'd like to get rid of (well any sub-process calls really)

lewiscowles
2022-05-25 02:25
One potential part that can be pulled out that at least we agree on seems to be the updating of the API url to the new http://test.pactflow.io btw

tien.xuan.vo
2022-05-25 02:40
Please create pull requests. I would like to see them.


tien.xuan.vo
2022-05-25 02:45
:+1: I will rebase into my code when it's merged

lewiscowles
2022-05-25 02:46
Your code has this. The point is that it can be a separate PR. Maybe all the choices could be.

lewiscowles
2022-05-25 02:47
in any case it's working for my local but failing in GitHub. Something else I know you'd mentioned to the pactflow team

lewiscowles
2022-05-25 02:54
Ah, now I'm running it in my GitHub actions it sometimes fails, but other times not... https://github.com/Lewiscowles1986/pact-php/actions/runs/2380311568 I think there are race conditions in the code.

lewiscowles
2022-05-25 02:54
And I don't mean the few lines of config I shuffled around

lewiscowles
2022-05-25 02:59
http://test.pact.dius.com.au won't work while decommissioned Although it is failed in pactflow branch, https://github.com/Lewiscowles1986/pact-php/actions/runs/2380311568 shows this same code passing. This seems to be due to race conditions.

lewiscowles
2022-05-25 03:03
Also while I might abstractly agree on improving logging, if you know where the logs are coming from. a large part of the suggested approach creates extra line-count in PR's and patches, which are then harder to read, review, and inevitably take more time to author, test; and with a sample size of 1 (me) might just be opinion pieces.

lewiscowles
2022-05-25 03:23
large issue capturing. It can be closed if it is an opinion piece https://github.com/pact-foundation/pact-php/issues/250

lewiscowles
2022-05-25 04:22
https://github.com/Lewiscowles1986/pact-php/pull/3 is building now. Works on my local ? removes additional `pact` folder for less changes than `master` ? switches from `pact-stub-server.exe` to `pact-stub-service.bat` ? uses updated http://pactflow.io url Less opinionated take is https://github.com/Lewiscowles1986/pact-php/pull/4 which avoids reverting changes to directory structure.

tien.xuan.vo
2022-05-25 04:26
pact-stub-server which written in Rust does not work for you?

yasarenver
2022-05-25 05:22
has joined #pact-php

lewiscowles
2022-05-25 05:45
Doesn't appear in the zip for me

lewiscowles
2022-05-25 06:01
on ubuntu I just checked this is the same. So I've checked on Windows and Ubuntu

lewiscowles
2022-05-25 06:03
are you by-chance ensuring when you run locally you `rm -rf pact` between runs? I have been since I found that the nested `pact/pact` was a deeper issue. Originally I'd been running `master` then switched to your branch. Which mildly concerns me if people run an upgrade and was why I doubled-down on removing and just having one `pact` directory

brian.quinn
2022-05-25 08:53
has joined #pact-php

lewiscowles
2022-05-25 10:56
If anyone has any bandwidth to get any of the pact-php branches over the line, I don't know what is the issue with pact-foundation pact-php CI, but the same github yaml works https://github.com/Lewiscowles1986/pact-php/pulls there is a PR to fix a URL, and a separate one to help get an FFI patch through.

matt.fellows
2022-05-25 11:40
The URL one looks so basic I just want to merge it, but I think it best the maintainer does that as they own the consequences. It?s possible there is some quantum state causing unreliability, and it just happens to reliably fail on our GH (seems strange, we don?t run custom runners or anything)

matt.fellows
2022-05-25 11:40
FFI might best be Tien

lewiscowles
2022-05-25 11:41
It seems to be flaky even on my runners, but it works. I think it must have always been flaky or people get lucky

lewiscowles
2022-05-25 11:41
FFI, that speeds things up, but it uses this URL change anyway.

lewiscowles
2022-05-25 11:42
Note: this FFI does less than the original. Mostly because I found some issues with shared objects I thought it cruel to pass on, which were leading to some pipeline failures, which did not mention the missing .so files (running the commands directly did though).

matt.fellows
2022-05-25 11:52
Did you re-write it or just tweak what Tien had done? (I?m watching from a far, so am not across the detail). Is it functional? that is, can you use it in your pipelines reliably?

lewiscowles
2022-05-25 11:53
Passes all tests is as far as I've got with it, but timing those it saves > 1 minute

matt.fellows
2022-05-25 11:53
nice

lewiscowles
2022-05-25 11:54
I've also tested on osx, linux and windows now (pet machines local + github)

lewiscowles
2022-05-25 11:54
It should have less failure points. Once FFI handles everything the ruby does it'll be mint (very good)

matt.fellows
2022-05-25 11:54
haha yes!

lewiscowles
2022-05-25 11:55
(apologies for colloquialisms, multiple conversations, one with someone from north of england)

matt.fellows
2022-05-25 11:55
all good. Australian here, mint is a thing (or, at least at some point in my life it was a thing)

lewiscowles
2022-05-25 11:56
:+1:

matt.fellows
2022-05-25 11:57
On the Rust integration to PHP, once concern I have is that it?s such a big PR for a maintainer to get and then do anything practically with. It?s an obviously good thing (we want everyone on the FFI) but also, once the code is merged in it?s the maintainer?s job to keep it alive.

matt.fellows
2022-05-25 11:57
@cfmack how do you think we should approach :point_up: ? cc: @yousafn (something for consideration as we scale)

lewiscowles
2022-05-25 11:58
Once the url fix lands, I want to make one more tiny PR to run scheduled weekly builds in PHP pact, but I'm leaving my job soon so will likely leave PHP to rot afterwards.

lewiscowles
2022-05-25 11:59
I definitely have not reviewed the entire FFI PR

matt.fellows
2022-05-25 12:00
> so will likely leave PHP to rot afterwards :laughing:

jarekrzdbk
2022-05-25 12:45
has joined #pact-php

shaun.mendham
2022-05-25 16:32
has joined #pact-php

lewiscowles
2022-05-25 16:39
but it will fix the test suites and give future visibility into breakages...

pact544
2022-05-25 17:18
Mint. Fellow Manc @lewiscowles?

lewiscowles
2022-05-25 17:19
Afraid I'm an Essex man, but I've been to Manchester and most places :wink:

lewiscowles
2022-05-25 17:20
I was talking to someone from Liverpool at the time

pact544
2022-05-25 17:20
Oof, how to turn off a Manc in two sentences :joy:

lewiscowles
2022-05-25 17:20
:joy:

lewiscowles
2022-05-25 17:21
keep your secrets

plourded
2022-05-25 19:43
has joined #pact-php

emirhan.emmez
2022-05-26 06:31
has joined #pact-php

yasir27uk
2022-05-26 17:56
has joined #pact-php

lcs2019022
2022-05-27 05:27
has joined #pact-php

wieslaw.bondyra
2022-05-27 08:09
has joined #pact-php

lewiscowles
2022-05-27 12:36
Once PHP `Lewiscowles1986:bugfix/update-pact-url` can be merged, we can also work with new `pact-standalone` `1.88.90` in pact-php

yousafn
2022-05-27 13:01
5 minutes into looking at that, and already down a rabbit hole https://github.com/pact-foundation/pact-php/pull/249#issuecomment-1139595563 :joy: Have merged, the main maintainer is asleep and the rest of the team are on Aus time so Friday eve, so probably just you and me on this train. I'm doing some GH stuff for a couple of hours so you can nudge me

yousafn
2022-05-27 13:09
Master is :green_heart: nice one fella

lewiscowles
2022-05-27 13:09
Thanks. I'll raise the ticket to pin 1.88.90

yousafn
2022-05-27 13:11
danke


lewiscowles
2022-05-27 13:12
Thank you

lewiscowles
2022-05-27 13:16
https://github.com/pact-foundation/pact-php/pull/253 This one introduces scheduled builds so that if a maintainer gets "life happen" :tm: then you can still as an org know if that package is failing, and get visibility before a customer comes to you. It's a thing I use if i want to show something so that I know it should always be build-able.

yousafn
2022-05-27 13:17
Nice one, just raised a snagging list/maintenance checklist for repos, so this and any other ideas you have are good to add to that list. I'll refine it and move it to a central location at some point to track and monitor across the repos. https://github.com/pact-foundation/pact-php/issues/254

lewiscowles
2022-05-27 13:19
What a hero @yousafn

yousafn
2022-05-27 13:26
bit of that engineering special sauce, makes a good thing better :chefkiss: I like to try to avoid a broken:window: culture, but it is difficult when the estate is so vast Love this :ok_hand: > l if a maintainer gets "life happen" :tm: Really appreciate your effort's, this is what OSS is all about :clap:

lewiscowles
2022-05-27 13:26
Well I appreciate it's a very small part of the overall PACT space. In my new upcoming role, I am likely to work with PACT again via NodeJS


yousafn
2022-05-27 13:46
If you set `fail-fast: false` it won't fail all the matrix jobs and might let us see if its failing on all those jobs or one consistently I think it is only failing one of the triggered workflows consistently, one that is triggerd by `PULL_REQUEST_TARGET`

lewiscowles
2022-05-27 13:48
believe it or not. It seems to check the `master` branch, so I can't just update my PR to fix that.

lewiscowles
2022-05-27 13:48
it'd be another (potentially failing) PR

yousafn
2022-05-27 13:49
:slightly_smiling_face: I'll do it otherwise at some point today if not, I think that is correct that it checks master based on what I skimmed in the docs. One more failing build can't hurt, if we get one every PR anyway :joy:

lewiscowles
2022-05-27 14:13
See flaky pipeline. I think this is races due to async. Once FFI is in this will calm down as it won't be using AmPHP Process (likely how that is used, not the package that is the issue)

yousafn
2022-05-27 14:34
aye man, flakey pipelines be no fun for anyone. have dropped the `pull_request_target` now and set `fail_fast: false` so that along with your improvements and we should be onto a winner, and Mack can live a happy life.

rafaelcebulla
2022-05-27 15:20
has joined #pact-php

orbit.mjs
2022-05-27 17:45
has joined #pact-php

yousafn
2022-05-27 19:21
@tien.xuan.vo thanks for all your incredible work on this so far. I will do everything I can you help you all get this over the line. Looks like my good friend Lewis who has recently had eyes on the builds is here too so we are in the right place

msparks
2022-05-27 19:56
has joined #pact-php

lewiscowles
2022-05-28 02:48
@tien.xuan.vo I mostly made similar changes (updated URL), but with the difference being that my fork of your branch does not change to the older seemingly un[der]maintained https://github.com/pact-foundation/pact-stub-server. I created https://github.com/pact-foundation/pact-stub-server/issues/47 to track one issue of getting rid of that.

lewiscowles
2022-05-28 02:51
It is still quite a large PR. I wonder if there is a way to make a list of things we want it to do, and then a list of the changes required, so that it might be easier to collaborate on smaller deliverables towards to goal.


tien.xuan.vo
2022-05-30 02:01
> It is still quite a large PR. I wonder if there is a way to make a list of things we want it to do, and then a list of the changes required I didn't prepare that list yet. But I did suggest we can create that list in https://github.com/pact-foundation/pact-php/projects?type=beta so we can collaborate there (see my original message of this thread).

tien.xuan.vo
2022-05-30 02:02
I think https://github.com/tienvx/pact-php/blob/rust-ffi/UPGRADE-8.0.md is a good starting point, we can break down items based on that list

falvarez
2022-05-30 14:17
has joined #pact-php

ruslan.ponomarev
2022-05-31 06:28
has joined #pact-php

alexander.maiburg
2022-05-31 07:31
has joined #pact-php

drakulavich
2022-05-31 08:01
@drakulavich has left the channel

edouard.lopez
2022-05-31 14:28
@edouard.lopez has left the channel

aherbst
2022-05-31 17:31
has joined #pact-php

vipul.pachauri
2022-06-01 08:02
has joined #pact-php

komal.sharma1
2022-06-01 08:02
has joined #pact-php

chris169
2022-06-01 11:53
has joined #pact-php

m.shi
2022-06-01 19:07
has joined #pact-php

asa.anudeep4
2022-06-02 04:33
has joined #pact-php

diede
2022-06-02 10:01
has joined #pact-php

mateusz.zaborowski
2022-06-02 17:54
has joined #pact-php

lewiscowles
2022-06-03 07:14
Hey, Sorry I missed this. UPGRADE looks a great place to break things out. To be honest several of them look like standalone PR's As I can't create a project from the first link, do you think an issue might be a better starting point? GitHub supports `* [ ] sub-task` lists which can be used to tick off each item.

tien.xuan.vo
2022-06-03 07:27
An issue is totally fine for me too.

tien.xuan.vo
2022-06-03 07:28
I think the very first sub-task should be: `[ ] Discuss about a separate branch for 8.x code. Create new branch 8.x, or 7.x and work on master`



rchord23
2022-06-05 19:30
has joined #pact-php

divya.parameswaran
2022-06-05 20:16
has joined #pact-php

alexey.shchukin
2022-06-06 11:46
has joined #pact-php

afang
2022-06-06 22:17
has joined #pact-php

pratish.mp
2022-06-07 00:58
has joined #pact-php

dasarih
2022-06-08 00:20
has joined #pact-php

benjamhawk
2022-06-08 02:37
has joined #pact-php

sclaros
2022-06-08 13:07
has joined #pact-php

daniel.tjondro
2022-06-08 15:25
has joined #pact-php

slacksync
2022-06-08 17:21
has joined #pact-php

sandro
2022-06-08 18:26
has joined #pact-php

hazem
2022-06-08 23:14
has joined #pact-php

leonardo.lanni
2022-06-09 14:51
has joined #pact-php

jcamilovasquezm
2022-06-10 02:47
has joined #pact-php

markrkell
2022-06-10 08:13
has joined #pact-php

eva-maria.schaller
2022-06-10 08:24
has joined #pact-php

michel.kaporin
2022-06-10 14:43
has joined #pact-php

pooja.sharma4099
2022-06-11 08:39
has joined #pact-php

srinivas.vaddi
2022-06-11 16:31
has joined #pact-php

igor.sharfman
2022-06-12 11:25
has joined #pact-php

chituru.chinwah
2022-06-13 08:48
has joined #pact-php

cchinwah1
2022-06-13 09:45
has joined #pact-php

julian.alvarezv
2022-06-13 17:10
has joined #pact-php

malukenho.dev
2022-06-14 14:33
has joined #pact-php

vikki.read
2022-06-14 18:58
has joined #pact-php

omer.khalil
2022-06-14 19:33
has joined #pact-php

rxiao
2022-06-15 04:29
has joined #pact-php

james.demaine373
2022-06-15 10:22
has joined #pact-php

dmoll
2022-06-15 21:10
has joined #pact-php

kurt3402
2022-06-16 04:29
has joined #pact-php

kyo.tang
2022-06-16 06:03
has joined #pact-php

prasadsolanki
2022-06-16 10:58
has joined #pact-php

mairtin.conneely
2022-06-16 12:02
has joined #pact-php

laura.kennedy
2022-06-16 14:32
has joined #pact-php

rxiao
2022-06-16 18:23
@rxiao has left the channel

gaurav.bajpai
2022-06-17 03:41
has joined #pact-php

salmanjamali
2022-06-17 06:49
has joined #pact-php

alansimonalie
2022-06-17 12:57
has joined #pact-php

ben.a.hubbard
2022-06-17 13:47
has joined #pact-php

lafriakh.rachid
2022-06-18 14:24
has joined #pact-php

courtney.lum
2022-06-20 04:02
has joined #pact-php

woojos
2022-06-20 09:58
has joined #pact-php

abdou.ahzab
2022-06-20 10:08
has joined #pact-php

dstekanov.tech
2022-06-20 15:28
has joined #pact-php

rohit.thadhani
2022-06-21 04:39
has joined #pact-php

jvieira
2022-06-21 22:28
has joined #pact-php

marcus.james
2022-06-22 15:28
has joined #pact-php

jonas.pena
2022-06-22 15:50
has joined #pact-php

abudi.hijazi.01
2022-06-22 16:44
has joined #pact-php

vaddisrinivas170497
2022-06-22 18:57
has joined #pact-php

adam.anderson
2022-06-23 03:46
has joined #pact-php

yegorisa
2022-06-23 03:47
has joined #pact-php

swapnil.jagdale
2022-06-23 05:19
has joined #pact-php

mark.mcmurray
2022-06-23 08:33
has joined #pact-php

jacek.maciag
2022-06-23 09:15
has joined #pact-php

sandor.arpa
2022-06-24 09:30
has joined #pact-php

mwilso29
2022-06-24 11:19
has joined #pact-php

renaud.meurisse
2022-06-24 12:47
has joined #pact-php

rk8085858
2022-06-26 08:12
has joined #pact-php

alex.savage
2022-06-27 08:26
has joined #pact-php

simon.selvadurai
2022-06-27 08:28
has joined #pact-php

yasir.khan
2022-06-27 11:21
has joined #pact-php

willem.basson
2022-06-27 11:25
has joined #pact-php

edward.francis
2022-06-27 11:32
has joined #pact-php

laura.cabantous
2022-06-27 11:35
has joined #pact-php

ruslan.charuh
2022-06-27 12:18
has joined #pact-php

pramod-arjun.bhalerao
2022-06-27 12:54
has joined #pact-php

ssomepalli
2022-06-27 14:30
has joined #pact-php

owen.oclee.old
2022-06-27 16:13
has joined #pact-php

oherescu
2022-06-27 19:21
has joined #pact-php

nathan.tejuco
2022-06-28 03:50
has joined #pact-php

jun.ito
2022-06-28 07:47
has joined #pact-php

daniel.shamaeli
2022-06-28 09:01
has joined #pact-php

michael.oloyede
2022-06-28 09:55
has joined #pact-php

lucas.azzola
2022-06-29 04:18
has joined #pact-php

jens.suhr
2022-06-29 09:25
has joined #pact-php

jens.suhr
2022-06-29 09:26
@jens.suhr has left the channel

thammarith.likittheer
2022-06-29 10:46
has joined #pact-php

andrevpuc
2022-06-29 14:24
has joined #pact-php

mylesjj
2022-06-29 16:26
has joined #pact-php

oliviawalsh1
2022-06-30 09:49
has joined #pact-php

hiepluong2205
2022-07-01 06:40
has joined #pact-php

saleh.elnagar
2022-07-01 13:20
has joined #pact-php

animesh.kumar
2022-07-03 16:54
has joined #pact-php

omri.benyair
2022-07-04 03:14
has joined #pact-php

chriswilliamsef
2022-07-04 13:11
has joined #pact-php

rioka68
2022-07-04 13:32
has joined #pact-php

heinenm
2022-07-04 14:01
has joined #pact-php

omri.eyal
2022-07-05 06:22
has joined #pact-php

shen-yu
2022-07-05 15:35
has joined #pact-php

ben.foster
2022-07-05 15:42
has joined #pact-php

maarten.gryp
2022-07-05 16:20
has joined #pact-php

megha.t
2022-07-06 06:56
has joined #pact-php

ravindra.dhaka
2022-07-06 07:08
has joined #pact-php

mrigendra.ranjan
2022-07-06 07:08
has joined #pact-php

deepak.bhoria
2022-07-06 07:11
has joined #pact-php

cjenkins
2022-07-06 07:17
has joined #pact-php

gustavo.chain
2022-07-06 08:04
has joined #pact-php

tobias.friedrich
2022-07-06 08:31
has joined #pact-php

ganesh.panchagnula-no
2022-07-06 11:50
has joined #pact-php

morten.gejl
2022-07-06 13:02
has joined #pact-php

varunthaper
2022-07-06 15:17
has joined #pact-php

jwheatley
2022-07-06 17:12
has joined #pact-php

noor.hashem
2022-07-06 20:23
has joined #pact-php

dormeiri
2022-07-07 09:41
has joined #pact-php

andreaschung1
2022-07-07 12:28
has joined #pact-php

edouard.lopez
2022-07-07 14:53
has joined #pact-php

edouard.lopez
2022-07-07 15:00
Hello, I don't see any `$matcher->string()` , I am mistaken?

parvatshiva
2022-07-07 22:05
has joined #pact-php

jonathan.dowling
2022-07-08 11:37
has joined #pact-php

alex423
2022-07-08 13:59
has joined #pact-php

francis.williams
2022-07-08 19:52
has joined #pact-php

dmitry.sarkisov
2022-07-08 20:07
has joined #pact-php

neokree
2022-07-09 10:50
has joined #pact-php

lynn.alhaimy
2022-07-10 18:20
has joined #pact-php

eirikval
2022-07-11 15:08
has joined #pact-php

sahil.jain
2022-07-12 10:21
has joined #pact-php

kyriacos.elia
2022-07-12 15:43
has joined #pact-php

fabricio.mendes.ti
2022-07-12 16:33
has joined #pact-php

cameron.allan853
2022-07-12 23:18
has joined #pact-php

jeroen.lamain
2022-07-13 08:49
has joined #pact-php

programmingwithbangal
2022-07-13 12:48
has joined #pact-php

rohitkeshwani07
2022-07-13 13:28
has joined #pact-php

gjvengelen
2022-07-13 18:18
has joined #pact-php

lorenz.ammon
2022-07-14 08:52
has joined #pact-php

remigijus.mazulis
2022-07-14 08:53
has joined #pact-php

seanruffatti
2022-07-14 14:40
has joined #pact-php

nico.neirinck
2022-07-15 06:10
has joined #pact-php

k.bangarusamy
2022-07-15 14:36
has joined #pact-php

harinder.kaur
2022-07-15 17:19
has joined #pact-php

mahidasp
2022-07-16 17:30
has joined #pact-php

juan.aa.espiritu
2022-07-17 08:39
has joined #pact-php

thomas.loudon
2022-07-18 11:05
has joined #pact-php

david.hayden
2022-07-18 11:12
has joined #pact-php

hakan.b.jansson
2022-07-18 14:04
has joined #pact-php

jakehowden
2022-07-18 15:54
has joined #pact-php

remigijus.mazulis
2022-07-19 09:18
@remigijus.mazulis has left the channel

chrstnklb
2022-07-19 10:58
has joined #pact-php

andrew.favaloro
2022-07-19 19:36
has joined #pact-php

tarun.gulati1988
2022-07-19 19:41
has joined #pact-php

boweixu
2022-07-19 20:39
has joined #pact-php

juanalvarezarquillos
2022-07-20 05:46
has joined #pact-php

jkaur
2022-07-20 06:32
has joined #pact-php

steve.heasman
2022-07-20 09:08
has joined #pact-php

je.alvinez
2022-07-20 11:17
has joined #pact-php

matkruse
2022-07-20 14:53
has joined #pact-php

2billy
2022-07-20 16:56
has joined #pact-php

christopher.forbes
2022-07-21 09:27
has joined #pact-php

sandy.oberoi
2022-07-21 18:57
has joined #pact-php

adelamarre
2022-07-21 19:37
has joined #pact-php

husamhindustani
2022-07-22 06:52
has joined #pact-php

harley
2022-07-23 02:15
has joined #pact-php

japlavaren
2022-07-25 09:21
has joined #pact-php

alasdair.ryan
2022-07-25 10:45
has joined #pact-php

hui.supat
2022-07-25 13:22
has joined #pact-php

balaramvineethvenugop
2022-07-25 17:06
has joined #pact-php

alan.still
2022-07-25 18:18
has joined #pact-php

yshkedi
2022-07-25 21:16
has joined #pact-php

apapia
2022-07-26 02:27
has joined #pact-php

rziembicki
2022-07-26 10:47
has joined #pact-php

dpal
2022-07-26 10:58
has joined #pact-php

dgrace
2022-07-26 11:02
has joined #pact-php

dgowdappa
2022-07-26 11:02
has joined #pact-php

sascha_pactflow
2022-07-26 20:29
has joined #pact-php

hunsolitude
2022-07-26 22:34
has joined #pact-php

maksym_odanets
2022-07-27 08:07
has joined #pact-php

andrew.january
2022-07-27 09:03
has joined #pact-php

davidf
2022-07-27 09:17
has joined #pact-php

ankit.mittal
2022-07-28 10:00
has joined #pact-php

vishal.kukreja
2022-07-28 10:22
has joined #pact-php

robert.henzel
2022-07-28 19:50
has joined #pact-php

adrianminnock123
2022-07-29 08:53
has joined #pact-php

adam.witko
2022-07-29 09:39
@adam.witko has left the channel

massimiliano.devivo
2022-07-29 12:12
has joined #pact-php

hareesh.dj
2022-07-30 12:01
has joined #pact-php

heera
2022-07-31 08:00
has joined #pact-php

adam.redlisiak
2022-08-01 10:18
has joined #pact-php

altan.demirkiran846
2022-08-01 14:38
has joined #pact-php

nick080
2022-08-01 14:44
has joined #pact-php

ali.ustek
2022-08-01 15:09
has joined #pact-php

adam.redlisiak
2022-08-01 15:56
@adam.redlisiak has left the channel

momarquez
2022-08-01 19:37
has joined #pact-php

rubemfsv15
2022-08-02 20:13
has joined #pact-php

rene.klatt
2022-08-03 06:13
has joined #pact-php

imayat
2022-08-03 09:42
has joined #pact-php

mark.shand
2022-08-03 10:15
has joined #pact-php

rene.klatt
2022-08-03 10:35
Hello, I have an issue with my first setup and need your help, please. `Failed to make connection to Mock Server in 10 attempts.` See details in the thread.

rene.klatt
2022-08-03 10:35
When I run my tests I get the following output: ```server.debug: start background command: .../vendor/pact-foundation/pact-php/src/PhpPact/Standalone/Installer/../../../../pact/bin/pact-mock-service service --consumer='myConsumer' --provider='myProvider' --pact-dir='.../tests/_data/pact' --pact-file-write-mode=overwrite --host=localhost --port=7201 --cors=true [] [] [2022-08-03T08:50:26.030467+00:00] server.debug: started process pid=48193 There was 1 error: --------- 1) ContractTest: Connect an app Test Contract/ContractTest.php:testConnectAnApp [PhpPact\Standalone\Exception\HealthCheckFailedException] Failed to make connection to Mock Server in 10 attempts. #1 .../vendor/pact-foundation/pact-php/src/PhpPact/Standalone/MockService/MockServer.php:168 #2 .../vendor/pact-foundation/pact-php/src/PhpPact/Standalone/MockService/MockServer.php:65 #3 .../tests/Contract/ContractTest.php:74 #4 .../vendor/bin/codecept:117``` I?m also unable to start the `pact-mock-service` with `vendor/pact-foundation/pact-php/pact/bin/pact-mock-service service --consumer='myConsumer' --provider='myProvider' --pact-dir='.../tests/_data/pact' --pact-file-write-mode=overwrite --host=localhost --port=7201 --cors=true` there I get ```.../vendor/pact-foundation/pact-php/pact/lib/ruby/bin/ruby: line 6: .../vendor/pact-foundation/pact-php/pact/lib/ruby/bin.real/ruby: cannot execute binary file .../vendor/pact-foundation/pact-php/pact/lib/ruby/bin/ruby: line 6: .../vendor/pact-foundation/pact-php/pact/lib/ruby/bin.real/ruby: Undefined error: 0``` What do I miss here? Do you need any other information?

matt.fellows
2022-08-03 10:47
What OS and runtime are you on? Is this in docker by any chance?

rene.klatt
2022-08-03 10:48
I?m on a Mac and not running docker but I could run the project in docker

matt.fellows
2022-08-03 10:49
Are you on an M1? And if so, have you tried running on Rosetta mode?

rene.klatt
2022-08-03 11:06
No, I?m not on an M1, I have a 2,6 GHz 6-Core Intel Core i7

matt.fellows
2022-08-03 11:20
Can you please run the following commands (please replace the ? with the correct prefix): ```file .../vendor/pact-foundation/pact-php/pact/lib/ruby/bin/ruby file .../vendor/pact-foundation/pact-php/pact/lib/ruby/bin.real/ruby:```

rene.klatt
2022-08-03 11:23
The first one gives me ```vendor/pact-foundation/pact-php/pact/lib/ruby/bin/ruby: line 6: .../vendor/pact-foundation/pact-php/pact/lib/ruby/bin.real/ruby: cannot execute binary file vendor/pact-foundation/pact-php/pact/lib/ruby/bin/ruby: line 6: .../vendor/pact-foundation/pact-php/pact/lib/ruby/bin.real/ruby: Undefined error: 0``` The second one `zsh: exec format error: vendor/pact-foundation/pact-php/pact/lib/ruby/bin.real/ruby`

matt.fellows
2022-08-03 11:25
did you run the `file` command or just try to execute it?

rene.klatt
2022-08-03 11:26
just execute it

matt.fellows
2022-08-03 11:26
Can you please run with the `file` command prefix as above?

matt.fellows
2022-08-03 11:27
Also, once that has completed, could you please try installing that package manually (see https://github.com/pact-foundation/pact-ruby-standalone/releases/tag/v1.89.02-rc1, which is what Pact PHP should bootstrap under the hood)

rene.klatt
2022-08-03 11:27
1. `vendor/pact-foundation/pact-php/pact/lib/ruby/bin/ruby: Bourne-Again shell script text executable, ASCII text` 2. `vendor/pact-foundation/pact-php/pact/lib/ruby/bin.real/ruby: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.9, stripped`

rene.klatt
2022-08-03 11:29
I?ll install the package manually and try it out as soon as I can.

matt.fellows
2022-08-03 11:30
ok that looks to be the issue. For some reason, it?s downloaded a linux 64 bit binary

matt.fellows
2022-08-03 11:30
is there anything in the instnall logs indicatinsg why that might be?

rene.klatt
2022-08-03 11:30
Do you know where I can find the logs?

matt.fellows
2022-08-03 11:31
I don?t know PHP, but presumably when you install packages there is some log out

matt.fellows
2022-08-03 11:31
how did you install the package?

rene.klatt
2022-08-03 11:31
But that might already help me debug the whole thing. Maybe I can see where the installation happens.

rene.klatt
2022-08-03 11:32
I installed via composer and run the tests, AFAIK the download will happen the first time when you run the tests. I?ll check. Thank you for your support. If I?m stuck again I?ll drop a message here.

matt.fellows
2022-08-03 11:32
cool, no problem!

matt.fellows
2022-08-03 11:32
Good luck :thumbsup:

gunjan.titiya
2022-08-03 11:51
has joined #pact-php

chaitanya.guttula
2022-08-03 12:43
has joined #pact-php

deb.kimnach
2022-08-03 12:48
has joined #pact-php

kaiquan.shi
2022-08-04 03:38
has joined #pact-php

aalexandrumihai
2022-08-04 10:15
has joined #pact-php

alex.makdessi
2022-08-04 13:03
has joined #pact-php

alex.makdessi
2022-08-04 13:08
Hello :wave: I'm trying to setup provider states using the `--provider-states-setup-url` option. However, on the endpoint I configured, I'm receiving a `null` state This is what my endpoint is receiving: ```{"body":{"consumer":"ms.pact-consumer-example-for-php","state":null,"states":[null],"params":[]}}```

alex.makdessi
2022-08-04 13:12
heres the pact file i'm fetching from the broker: ```{ "consumer": { "name": "ms.pact-consumer-example-for-php" }, "provider": { "name": "ms.pact-provider-example-for-php" }, "interactions": [ { "description": "A request for a product", "providerState": "A produ?ct with id c931b702-f48a-447c-8619-80556f40e82b exists", "request": { "method": "GET", "path": "/api/v1/products/c931b702-f48a-447c-8619-80556f40e82b", "headers": { "Content-Type": "application/json" } }, "response": { "status": 200, "headers": { "Content-Type": "application/json" }, "body": { "id": "c931b702-f48a-447c-8619-80556f40e82b", "name": "Drill", "brand": "Makita" }, "matchingRules": { "$.body.id": { "match": "regex", "regex": "^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$" }, "$.body.name": { "match": "type" }, "$.body.brand": { "match": "type" } } } }, { "description": "A request for a product", "providerState": "There is no product with id 9b40cb15-dfcf-496f-9ba2-208312a25527", "request": { "method": "GET", "path": "/api/v1/products/9b40cb15-dfcf-496f-9ba2-208312a25527", "headers": { "Content-Type": "application/json" } }, "response": { "status": 404, "headers": { "Content-Type": "application/json" }, "body": { "error": { "message": "The product with id \"9b40cb15-dfcf-496f-9ba2-208312a25527\" does not exists", "app_code": "PRODUCT_NOT_FOUND" } }, "matchingRules": { "$.body.error.message": { "match": "type" }, "$.body.error.app_code": { "match": "type" } } } } ], "metadata": { "pactSpecification": { "version": "3.0.0" } } }```

yousafn
2022-08-04 13:18
Hey buddy, I don't believe pact-php supports v3.0.0 spec of the pact-specification https://github.com/pact-foundation/pact-php#specifications it may be a red herring, but food for thought

yousafn
2022-08-04 13:22
:thinking_face: Hmm so the pact-verifier functionality in pact-php https://github.com/pact-foundation/pact-php#provider-verification uses the ruby standalone verifier https://github.com/pact-foundation/pact-provider-verifier Looking at that readme, that should support v3 https://github.com/pact-foundation/pact-provider-verifier#pact-specification-v3-provider-state-support That is part of a larger section of verification of provider states in the readme https://github.com/pact-foundation/pact-provider-verifier#api-with-provider-states You could try `providerStates` with a v2 pact spec and see if that resolves it, and if so I would assume there is some work in PHP, if not it will be something else :thumbsup:

alex.makdessi
2022-08-04 13:39
Thanks for your help @yousafn,it was a spec version issue :clap: I regenerated the pact file using `2.0.0` on the consumer side, and now i'm receiving this body in my setup endpoint ```{"body":{"consumer":"ms.pact-consumer-example-for-php","state":"A product with id c931b702-f48a-447c-8619-80556f40e82b exists","states":["A product with id c931b702-f48a-447c-8619-80556f40e82b exists"],"params":[]}}``` I assume that I should use the `state` key instead of the `states` one ?

yousafn
2022-08-04 13:40
awesome! Aye I think based on the comment below, that states should be ignored, inferring use `state` :thumbsup: > Ignore the `states` array that you will see if you happen to print out the live provider state set up request body Good luck in your pact Journey buddy!

ynechaieva
2022-08-04 14:11
has joined #pact-php

rene.klatt
2022-08-04 14:39
@matt.fellows I had to switch to docker now and I?m facing a new issue. We are running on alpine and I get issues like `Error relocating /data/vendor/pact-foundation/pact-php/pact/lib/ruby/bin.real/ruby: backtrace: symbol not found` A colleague said that the standalone executables are built for x86_64 with glibc and not with musl. Can you point me to something that helps me get it run in docker alpine? How will the PHP package then know which executables to use when the ones downloaded do not work?


matt.fellows
2022-08-05 04:00
The version you have should be able to work on Alpine docker. But that error doesn?t look familiar

rene.klatt
2022-08-05 07:50
Can someone explain to me why an interaction runs twice?

rene.klatt
2022-08-05 07:53
I run tests on the provider side and there are two runs of the interaction. The first one runs fine `1 interaction, 0 failures` but the second one fails because the entity I create already exists in the second run. Is that something I can somehow configure? What is the second run of the same interaction for?

dineshh.wot2021
2022-08-05 10:17
has joined #pact-php

fernandapontual5
2022-08-05 11:34
has joined #pact-php

sridhar140895
2022-08-05 11:58
has joined #pact-php

glenn
2022-08-06 18:13
has joined #pact-php

sandy.mechie
2022-08-07 21:46
has joined #pact-php

prapurna.manda3
2022-08-08 07:38
has joined #pact-php

jaroslavburi
2022-08-08 14:44
has joined #pact-php

manumahendran
2022-08-08 16:14
has joined #pact-php

lmendonca
2022-08-08 22:18
has joined #pact-php

jbrauchler
2022-08-08 22:44
has joined #pact-php

cristideacc
2022-08-09 09:05
has joined #pact-php

thanuxxxx
2022-08-09 15:16
@thanuxxxx has left the channel

alison.stuart.contrac
2022-08-09 20:41
has joined #pact-php

jaroslavburi
2022-08-10 06:08
@jaroslavburi has left the channel

tischnerd
2022-08-11 06:49
has joined #pact-php

joel.wochele
2022-08-11 12:53
has joined #pact-php

evert.vanloo
2022-08-12 12:16
has joined #pact-php

jors.matthys
2022-08-12 13:27
has joined #pact-php

ricardo.maury
2022-08-12 18:34
has joined #pact-php

prateekm33
2022-08-15 00:46
has joined #pact-php

ahmed.fahmy
2022-08-15 09:10
has joined #pact-php

tpaktopsp
2022-08-15 18:47
has joined #pact-php

julian.schmidt
2022-08-16 09:03
has joined #pact-php

jack340
2022-08-16 09:11
has joined #pact-php

g.varga
2022-08-16 11:55
has joined #pact-php

lnthai2002
2022-08-16 15:02
has joined #pact-php

sarunas.kavaliauskas
2022-08-16 19:15
has joined #pact-php

tbansal
2022-08-17 10:30
has joined #pact-php

dekkofilms
2022-08-17 21:14
has joined #pact-php

nirajlalr
2022-08-18 09:46
has joined #pact-php

jon669
2022-08-18 11:14
has joined #pact-php

michael.birchmeier
2022-08-18 19:27
has joined #pact-php

ben.crinion
2022-08-18 19:42
@ben.crinion has left the channel

jwang
2022-08-18 21:07
has joined #pact-php

msiyaj1
2022-08-18 22:03
has joined #pact-php

ben.hansen
2022-08-19 00:44
has joined #pact-php

lottie.kett
2022-08-19 12:08
has joined #pact-php

paul.lynn
2022-08-19 14:18
has joined #pact-php

duynguyenptithcm
2022-08-20 07:22
has joined #pact-php

gaudenz.halter
2022-08-22 07:52
has joined #pact-php

harold.robson
2022-08-22 13:07
has joined #pact-php

bentzion.schochet
2022-08-22 13:27
has joined #pact-php

mat.delong
2022-08-22 14:03
has joined #pact-php

jaswanth.ooty
2022-08-23 09:36
@jaswanth.ooty has left the channel

volker.wengert
2022-08-23 10:59
has joined #pact-php

sathish.sundararajan
2022-08-23 19:32
has joined #pact-php

patrick.lu
2022-08-24 02:12
has joined #pact-php

krishna.cv
2022-08-24 04:38
has joined #pact-php

ravishankar.emc
2022-08-24 06:00
has joined #pact-php

alan.zhu
2022-08-24 08:54
has joined #pact-php

nabil.bourenane
2022-08-24 14:19
has joined #pact-php

ami.ta
2022-08-25 06:05
has joined #pact-php

me1001
2022-08-25 07:24
has joined #pact-php

nidzgorskiadrian
2022-08-25 08:05
has joined #pact-php

dealandi
2022-08-25 11:50
has joined #pact-php

jreynolds
2022-08-25 12:44
has joined #pact-php

josh.steffensmeier
2022-08-25 13:18
has joined #pact-php

mhtkandpal10
2022-08-26 11:29
has joined #pact-php

dwalleck
2022-08-26 20:51
has joined #pact-php

lijinze01
2022-08-26 22:20
has joined #pact-php

mhaller
2022-08-27 00:19
has joined #pact-php

dwalleck
2022-08-27 16:39
@dwalleck has left the channel

mvliannoi
2022-08-29 03:41
has joined #pact-php

haobei.ma
2022-08-29 06:06
has joined #pact-php

maram.elsayed
2022-08-29 08:52
has joined #pact-php

helloitsdave
2022-08-29 14:51
has joined #pact-php

mberkowitz
2022-08-29 16:16
has joined #pact-php

matt.bremer
2022-08-29 20:10
has joined #pact-php

lennart.querter
2022-08-30 09:24
has joined #pact-php

lennart.querter
2022-08-30 09:26
@lennart.querter has left the channel

veaceslav.gaidarji
2022-08-30 15:29
has joined #pact-php

sharonw
2022-08-30 15:29
has joined #pact-php

grace.quek
2022-08-30 15:32
has joined #pact-php

s.kadium1
2022-08-30 16:12
has joined #pact-php

sumanta.roy
2022-08-31 01:33
has joined #pact-php

shuying.lin
2022-08-31 05:45
has joined #pact-php

victor.lopez
2022-08-31 10:08
has joined #pact-php

nfinley
2022-08-31 15:52
has joined #pact-php

hartror
2022-09-01 06:26
has joined #pact-php

uralsmh
2022-09-01 10:37
has joined #pact-php

krystof.sykora
2022-09-01 12:34
has joined #pact-php

lesa
2022-09-01 14:34
has joined #pact-php

gunesmes
2022-09-01 15:31
has joined #pact-php

alanwallaceross
2022-09-02 16:27
has joined #pact-php

wdridi1
2022-09-02 18:59
has joined #pact-php

daviseago
2022-09-03 02:16
has joined #pact-php

lewiscowles
2022-09-04 17:59
:face_with_symbols_on_mouth: > Animal Profile Service was renamed to > Animal Profile Service V3 Surely a V3 could just be a new one, leaving the other one (and downstream repos) working. Stable URL's isn't even new, it's been a principal for decades.

hsanghavi538
2022-09-06 02:33
has joined #pact-php

thibaut.bodart
2022-09-06 10:41
has joined #pact-php

bastien.decroix
2022-09-06 11:45
has joined #pact-php

pabcagi
2022-09-06 12:28
has joined #pact-php

patrickbadley
2022-09-06 13:25
has joined #pact-php

james.grubb
2022-09-06 19:19
has joined #pact-php

snehasingh291506
2022-09-06 19:42
has joined #pact-php

patrickbadley
2022-09-06 19:55
@patrickbadley has left the channel

senchu.pampoorickal
2022-09-06 20:15
has joined #pact-php

nagasrinivas.thota
2022-09-07 06:56
has joined #pact-php

mahinsyeda99
2022-09-07 09:40
has joined #pact-php

lisnychyis
2022-09-07 14:00
has joined #pact-php

marek.czerwinski
2022-09-07 16:07
has joined #pact-php

glenn
2022-09-07 16:39
@glenn has left the channel

xiaofeng02111
2022-09-08 03:20
has joined #pact-php

jayvdb
2022-09-08 06:22
has joined #pact-php

vvarunbajpai1988
2022-09-08 12:13
has joined #pact-php

zakir
2022-09-08 12:55
has joined #pact-php

gregory.hanson
2022-09-08 12:56
has joined #pact-php

ashishmerani
2022-09-08 21:54
has joined #pact-php

ramesh.ambastha
2022-09-09 11:06
has joined #pact-php

oak155online
2022-09-11 19:24
@oak155online has left the channel

nickm
2022-09-12 17:15
has joined #pact-php

uzma_khan
2022-09-12 18:13
has joined #pact-php

stefan.tertan
2022-09-13 15:28
has joined #pact-php

alex.makdessi
2022-09-13 20:29
Hello, I think there's a mistake on the pact-php `VerifierConfig` option to set the `pact-provider-verifier` log directory: ? https://github.com/pact-foundation/pact-provider-verifier#usage use a `--log-dir` option name to define the log director ? the https://github.com/pact-foundation/pact-php/blob/8.0.0/src/PhpPact/Standalone/ProviderVerifier/Verifier.php#L131 is setting a `--log` option

matt.fellows
2022-09-13 22:38
Thanks, if that?s the case could you please raise an issue on the GH repo?

alex.makdessi
2022-09-14 07:06
sure :+1:

konitzert
2022-09-14 07:11
has joined #pact-php

daniel.puiu
2022-09-14 13:43
has joined #pact-php

l.heluszko
2022-09-15 13:12
has joined #pact-php

alecat88
2022-09-16 10:25
has joined #pact-php

chris.armbrester
2022-09-16 11:45
has joined #pact-php

zohaibse011
2022-09-16 13:28
has joined #pact-php

nvenkataraman
2022-09-16 17:17
has joined #pact-php

zach.davis
2022-09-16 20:18
has joined #pact-php

jorbraken
2022-09-16 20:29
has joined #pact-php

paul.ologeh
2022-09-16 23:25
has joined #pact-php

alex.makdessi
2022-09-19 12:51
Hello @matt.fellows, do you know if there is a release scheduled to tag a new minor version on pact-php ?

purushothamv02
2022-09-19 14:19
has joined #pact-php

matt.fellows
2022-09-19 14:39
Hi Alex, sorry I don't. I can follow up later this week when back from the conference

alex.makdessi
2022-09-19 14:51
No worries, there is no rush, enjoy your conf :slightly_smiling_face:

lcruz
2022-09-19 23:05
has joined #pact-php

sweiba
2022-09-20 07:26
has joined #pact-php

adam910
2022-09-20 12:32
has joined #pact-php

p.pommerencke
2022-09-20 14:00
has joined #pact-php

anhtvuong
2022-09-21 01:39
has joined #pact-php

timothee.ville
2022-09-21 08:09
has joined #pact-php

tymoschuk.jane
2022-09-21 12:38
has joined #pact-php

matt.fellows
2022-09-21 13:23
Could you please share the output Rene? One guess is that it?s verifying two different pacts from the broker. We?d need to see the selectors used as well

tony.nguyen
2022-09-21 13:41
has joined #pact-php

sashi.kandru
2022-09-21 13:45
has joined #pact-php

khaled.bali
2022-09-21 18:01
has joined #pact-php

m.mertens
2022-09-21 18:41
has joined #pact-php

mforsman
2022-09-22 09:13
has joined #pact-php

shivendra.singh1
2022-09-22 10:04
has joined #pact-php

vaibhav.tiwari
2022-09-22 10:04
has joined #pact-php

akshaythakur2905
2022-09-22 10:06
has joined #pact-php

sukriti.kumari
2022-09-22 10:07
has joined #pact-php

p.kowalska
2022-09-22 10:35
has joined #pact-php

rene.klatt
2022-09-22 11:59
Hello, @matt.fellows this issue hasn?t appeared anymore and I can?t reproduce it now. If it pops up again I will drop a message.

matt.fellows
2022-09-22 12:05
Cool, np!

mazin.inaad
2022-09-22 13:21
has joined #pact-php

edouard.lopez
2022-09-22 14:23
Working on PHP implementation with colleague, we are wondering is pact-php support branch? The https://pact-foundation.slack.com/archives/C9VPNUJR2/p1661351565613229 and the README in `pact-php` only mention `setProviderBranch()` for the provider. 1. Is it the same thing? 2. How do I set the consumer's branch?

mastahfreak
2022-09-23 09:47
has joined #pact-php

kellie.persson
2022-09-23 17:50
has joined #pact-php

matt.fellows
2022-09-23 22:37
You set the consumer's branch when you publish the contract, which you should do with the CLI tools

kbon
2022-09-26 13:58
has joined #pact-php

tanyaryzhova93
2022-09-26 18:53
has joined #pact-php

anand.krishnan
2022-09-27 10:45
has joined #pact-php

alex.makdessi
2022-09-27 11:41
Hello @matt.fellows, any news on a potential release ?

estelle.margoutin
2022-09-27 12:00
has joined #pact-php

matt.fellows
2022-09-28 02:46
I?ve just pinged the maintainer offline and will let you know

criss.trifan
2022-09-28 05:36
has joined #pact-php

vipatel
2022-09-28 15:29
has joined #pact-php

olaoluphilip
2022-09-28 15:51
has joined #pact-php

vieira.jluiz
2022-09-28 17:20
has joined #pact-php

shuo.yang.2006
2022-09-28 19:48
has joined #pact-php

nirmalcbaral
2022-09-29 15:27
has joined #pact-php

ruppel.julian
2022-09-29 20:03
has joined #pact-php

alipala.ist
2022-09-29 20:28
has joined #pact-php

educationextended
2022-09-30 05:00
has joined #pact-php

ross.butler
2022-09-30 11:22
has joined #pact-php

koen.jans
2022-09-30 15:06
has joined #pact-php

ksawery.karwacki
2022-10-01 13:12
has joined #pact-php

jesper.nilsson
2022-10-01 13:59
has joined #pact-php

mansillamarcelo90
2022-10-02 22:06
has joined #pact-php

yulia.tekin.86
2022-10-02 22:55
has joined #pact-php

rachel.anderson
2022-10-02 23:39
has joined #pact-php

jason.stahl
2022-10-03 22:19
has joined #pact-php

sreeragsa
2022-10-04 03:03
has joined #pact-php

tara.costin
2022-10-04 14:45
has joined #pact-php

oscar.barbamanzano
2022-10-05 14:18
has joined #pact-php

cfmack
2022-10-06 03:44
Published 8.1.0. FYI, any time you have an issue, Github is the one I mostly likely follow up on

cfmack
2022-10-06 04:01
Tein Vo & Lewis, as you probably noticed, I am hardly on Slack and mostly follow up on Github as I have the time. Thank you both for all those contributions! I recently posted something on where I have bandwidth: https://github.com/pact-foundation/pact-php/pull/270#issuecomment-1243043217. Not really sure how to best proceed.

tien.xuan.vo
2022-10-06 04:14
Hi. Nice to hear that you have time to take a look at it again. My goal is to make the merge request about FFI smaller so it's easier to be reviewed. To do that, I have some idea (will be discussed in https://github.com/pact-foundation/pact-php/issues/262) ? Decide the target branch for all the merge requests. Can you decide it first? `master` , `8.x` , `9.x` ... ? Offload installers (can you edit the ticket add this item?) ? Offload console (can you edit the ticket add this item?) ? Support FFI (can you edit the ticket add this item?) ? Support Plugins (can you edit the ticket add this item?)

matt.fellows
2022-10-06 05:43
Awesome, thanks @cfmack!

alex.makdessi
2022-10-06 07:34
Noted, thanks a lot :slightly_smiling_face:

yanov.alexander
2022-10-06 08:39
has joined #pact-php

yousafn
2022-10-06 09:30
@cfmack :raised_hands: @tien.xuan.vo thanks for still being motivated :muscle: I have updated the ticket to reference your pointers above. I am really happy to help support this, my PHP knowledge isn't great, but I can muddle through, even to provide you all support in getting this out in beta for testing

tien.xuan.vo
2022-10-06 09:35
Thanks :pray: . I will wait for decision on the first point, then start a new thread to discuss about the second point after that.

yousafn
2022-10-06 09:36
Calling all PHP Pact users. Would you like to get help support the migration of Pact-PHP to the Rust core, so you can gain all the v3/v4 spec goodness? If you can help provide support in any way, be it helping steer technical discussions, coding, alpha/beta testing or even calling on others in the PHP community to help out, it would be HUGELY appreciated by our Pact-PHP maintainer @cfmack, the Pact team, and the Pact userbase. I am sure I can raid a swag cupboard or two to help make it more appealing. Thanks for the huge contributions so far from @tien.xuan.vo and @lewiscowles If so, drop us a reaction, or a comment in a :thread: :cookie: trail if anyone fancies some light reading - https://pact-foundation.slack.com/archives/C9W94PXPY/p1646321219144749

yousafn
2022-10-06 09:56
No problem dude, thanks. Following on from Lewis's comments before, I've created an org wide project called https://github.com/orgs/pact-foundation/projects/7/views/1 and assigned it to the https://github.com/pact-foundation/pact-php/projects?query=is%3Aopen project, to see if that will help us provide better tracking/visibility. Open to feedback, added this comment in the description > This is currently a beta - Trying to provide org wide tracking of projects in GitHub, by creating them against the pact-foundation organisation and assigning to individual repos > Unsure if that is the best approach, or if we should have a project around a theme

bxbivc
2022-10-06 10:05
has joined #pact-php

curtis.scott
2022-10-06 11:27
has joined #pact-php

riley.lee
2022-10-06 11:30
has joined #pact-php

oliver.smyth
2022-10-06 11:34
has joined #pact-php

kevin.campos
2022-10-06 11:35
has joined #pact-php

pstrnad
2022-10-06 12:04
has joined #pact-php

rachelxelizabethh
2022-10-06 13:20
has joined #pact-php

pratish
2022-10-06 21:08
has joined #pact-php

ilia
2022-10-06 22:18
has joined #pact-php

edudelta
2022-10-07 15:57
has joined #pact-php

olsen.lee.r
2022-10-07 18:29
has joined #pact-php

johndunning
2022-10-08 18:05
has joined #pact-php

kentooooo.1230
2022-10-09 17:49
has joined #pact-php

gpapadakis84
2022-10-10 12:32
has joined #pact-php

daftpunkapi
2022-10-11 09:22
has joined #pact-php

matteo.demasi
2022-10-11 12:08
has joined #pact-php

raul.romitan.ext
2022-10-11 12:17
has joined #pact-php

dominikdieter.krichba
2022-10-11 13:23
has joined #pact-php

ulrich.keil
2022-10-11 13:26
has joined #pact-php

mitchell.l.cooper
2022-10-11 13:45
has joined #pact-php

torsten.wiederkehr
2022-10-11 14:24
has joined #pact-php

mikey214
2022-10-11 22:32
has joined #pact-php

xi.luo
2022-10-12 05:11
has joined #pact-php

kim.crowe
2022-10-12 10:15
has joined #pact-php

suganyamuthukumar03
2022-10-13 11:01
has joined #pact-php

francis.bonneau
2022-10-13 18:30
has joined #pact-php

naf
2022-10-14 10:55
has joined #pact-php

werner.lauterfeld
2022-10-14 11:09
has joined #pact-php

jharms
2022-10-14 15:04
has joined #pact-php

daniel.cronin
2022-10-14 16:15
has joined #pact-php

txomin.sirera
2022-10-14 18:57
has joined #pact-php

jr
2022-10-15 20:48
has joined #pact-php

sasankdts
2022-10-16 08:48
has joined #pact-php

wil.pannell
2022-10-16 16:56
has joined #pact-php

sirisha.kunaparaju
2022-10-17 11:01
has joined #pact-php

gardeepti
2022-10-17 11:02
has joined #pact-php

vedant3620
2022-10-17 11:08
has joined #pact-php

priyanka.bbit
2022-10-17 11:11
has joined #pact-php

nvourlakis
2022-10-17 11:21
has joined #pact-php

oliwia.koch
2022-10-17 13:51
has joined #pact-php

bluediamondpc
2022-10-17 14:18
has joined #pact-php

nicholas.difelice
2022-10-17 15:16
has joined #pact-php

remington.otoole
2022-10-17 15:20
has joined #pact-php

matt.lucido
2022-10-17 15:23
has joined #pact-php

molly.mccarthy
2022-10-17 15:28
has joined #pact-php

slack1211
2022-10-18 07:24
has joined #pact-php

mekala.kalyan
2022-10-18 12:49
has joined #pact-php

jpullifrone
2022-10-18 17:05
has joined #pact-php

jorge.bo
2022-10-18 18:42
has joined #pact-php

orhun
2022-10-18 19:42
has joined #pact-php

kwo.ding
2022-10-19 08:24
has joined #pact-php

ankit.jain
2022-10-19 10:41
has joined #pact-php

edeandre
2022-10-19 12:09
has joined #pact-php

stanlisaus
2022-10-19 12:11
has joined #pact-php

nikolaasrondon
2022-10-19 17:29
has joined #pact-php

fquijada
2022-10-19 21:25
has joined #pact-php

kkalan
2022-10-20 03:52
has joined #pact-php

dyptorden
2022-10-20 10:24
has joined #pact-php

olawale.akande
2022-10-20 11:52
has joined #pact-php

olawale92.tech
2022-10-20 11:56
has joined #pact-php

calen.pennington
2022-10-20 13:43
has joined #pact-php

muhammud.naseeruddin
2022-10-20 16:04
has joined #pact-php

xuw
2022-10-20 16:38
has joined #pact-php

matt.johnson
2022-10-20 17:25
has joined #pact-php

bhavyashree.r
2022-10-22 06:10
has joined #pact-php

mosesgwenne
2022-10-24 06:10
has joined #pact-php

j.watkins12
2022-10-24 21:13
has joined #pact-php

tony.odonnell
2022-10-25 07:56
has joined #pact-php

martin.schlegel
2022-10-25 11:24
has joined #pact-php

stefan.zivkovic
2022-10-25 12:35
has joined #pact-php

alexander.friesen
2022-10-25 14:07
has joined #pact-php

mspector
2022-10-25 14:45
has joined #pact-php

thomas.peyregne
2022-10-25 14:53
has joined #pact-php

jsirju
2022-10-25 20:22
has joined #pact-php

a.emmanuelmendoza
2022-10-25 23:42
has joined #pact-php

emma.colleran
2022-10-26 13:05
has joined #pact-php

aaron.swerlein
2022-10-26 15:10
has joined #pact-php

stefan.zivkovic
2022-10-26 16:32
@stefan.zivkovic has left the channel

jeronimo
2022-10-26 17:50
has joined #pact-php

matthew.beattie
2022-10-26 20:14
has joined #pact-php

harrison.le
2022-10-26 21:47
has joined #pact-php

amandasstecz
2022-10-26 21:57
has joined #pact-php

christianoliver.table
2022-10-27 06:15
has joined #pact-php

zehra.lichtenberg
2022-10-27 08:08
has joined #pact-php

vzviaruha
2022-10-27 11:29
has joined #pact-php

michael.laird
2022-10-27 13:38
has joined #pact-php

pedropho18
2022-10-27 21:33
has joined #pact-php

juancesarvillalba
2022-10-27 21:43
has joined #pact-php

angad.singh
2022-10-28 11:07
has joined #pact-php

oroceo.ian
2022-10-28 20:04
has joined #pact-php

benjamin
2022-10-28 21:09
has joined #pact-php

emailpankaj.agarwal
2022-10-29 13:26
has joined #pact-php

krishnakanth219
2022-10-30 22:59
has joined #pact-php

joshua.mclatchie
2022-10-31 02:21
has joined #pact-php

jason.taylor2
2022-10-31 13:55
has joined #pact-php

kedar.ghate
2022-10-31 14:02
has joined #pact-php

jason.taylor2
2022-10-31 16:38
@jason.taylor2 has left the channel

usama.mumtaz
2022-11-02 09:45
has joined #pact-php

gsouza
2022-11-02 14:29
has joined #pact-php

zhangjingqiang
2022-11-02 23:49
has joined #pact-php

bmorton
2022-11-02 23:58
has joined #pact-php

andrew.brindle
2022-11-03 10:44
has joined #pact-php

vladislav.ledniov
2022-11-03 14:13
has joined #pact-php

jonathan
2022-11-03 16:43
has joined #pact-php

ldicesaro.scvsoft
2022-11-03 20:55
has joined #pact-php

carlosmarange
2022-11-04 06:09
has joined #pact-php

stevet
2022-11-04 06:31
has joined #pact-php

seikyo.cho
2022-11-04 08:58
has joined #pact-php

poornimakrishnarajan
2022-11-04 13:56
has joined #pact-php

michalkras
2022-11-05 01:05
has joined #pact-php

maria.botnari
2022-11-07 12:07
has joined #pact-php

tomasz.sosnowski
2022-11-07 13:52
has joined #pact-php

bpadhalni
2022-11-07 15:26
has joined #pact-php

ajay.chinnam
2022-11-08 10:08
has joined #pact-php

sprengo
2022-11-08 10:57
has joined #pact-php

james.ferguson
2022-11-08 12:33
has joined #pact-php

gururaghavendrar98
2022-11-08 13:04
has joined #pact-php

steven
2022-11-08 23:09
has joined #pact-php

alan.barr
2022-11-09 03:14
has joined #pact-php

wojciech.bachur
2022-11-09 13:55
has joined #pact-php

arek92
2022-11-09 13:58
has joined #pact-php

dariusz.duleba
2022-11-09 14:00
has joined #pact-php

cgodsey
2022-11-10 19:45
has joined #pact-php

saweniger
2022-11-14 17:29
has joined #pact-php

miguel.roldan
2022-11-15 11:06
has joined #pact-php

robin.lungwitz
2022-11-15 13:32
has joined #pact-php

laith
2022-11-15 16:15
has joined #pact-php

elluru.kri.mohan
2022-11-15 18:14
has joined #pact-php

rmartine
2022-11-15 20:35
has joined #pact-php

sameena9010
2022-11-16 06:49
has joined #pact-php

ryanthomas840310
2022-11-16 20:52
has joined #pact-php

mike.hideaki
2022-11-16 21:48
has joined #pact-php

vwaters
2022-11-16 22:31
has joined #pact-php

juergen.unfried
2022-11-17 20:43
has joined #pact-php

jose.anastacio
2022-11-18 13:34
has joined #pact-php

shawn305
2022-11-18 13:42
has joined #pact-php

tronghuy
2022-11-19 01:38
has joined #pact-php

glauco.carvalho
2022-11-21 15:47
has joined #pact-php

soner.ay
2022-11-21 16:57
has joined #pact-php

flafla.mattos
2022-11-22 19:10
has joined #pact-php

chrisjburnscg
2022-11-22 22:11
has joined #pact-php

imer.muhovic
2022-11-24 08:57
has joined #pact-php

mohitsoni
2022-11-24 10:19
has joined #pact-php

celia
2022-11-24 14:32
has joined #pact-php

harald.bittermann
2022-11-25 10:01
has joined #pact-php

ad
2022-11-25 13:23
has joined #pact-php

ad
2022-11-25 13:25
Hello, I've created this issue long time ago, but the issue is back now and blocking: https://github.com/pact-foundation/pact-php/issues/234 has anyone a idea what's going wrong there?

sree
2022-11-25 14:22
has joined #pact-php

soumya.aithal
2022-11-27 17:15
has joined #pact-php

nathan.pine
2022-11-28 09:19
has joined #pact-php

sanmicad
2022-11-28 12:20
has joined #pact-php

marcin.nawrocki
2022-11-29 09:25
has joined #pact-php

sergewar
2022-11-30 08:54
has joined #pact-php

diego
2022-11-30 09:50
has joined #pact-php

surya.sidharthan
2022-11-30 11:13
has joined #pact-php

nicolas.chara
2022-11-30 13:16
has joined #pact-php

daniel
2022-11-30 18:30
has joined #pact-php

denis
2022-11-30 22:07
has joined #pact-php

dbarne24
2022-12-01 11:35
has joined #pact-php

min.zaw.mra
2022-12-01 11:36
has joined #pact-php

kevin.lau
2022-12-01 11:41
has joined #pact-php

bojanmarjanovic1980
2022-12-01 13:09
has joined #pact-php

ivona.sovic
2022-12-01 13:13
has joined #pact-php

orbit
2022-12-01 15:45
has joined #pact-php

david.dudley
2022-12-01 19:55
has joined #pact-php

brian.coan
2022-12-01 20:22
has joined #pact-php

manishmitraba
2022-12-02 02:16
has joined #pact-php

lepdiana01
2022-12-02 03:53
has joined #pact-php

arpan.agr
2022-12-02 08:06
has joined #pact-php

goksel00
2022-12-02 17:41
has joined #pact-php

aibosun900614
2022-12-04 02:18
has joined #pact-php

mayank.mahajan04
2022-12-05 10:51
has joined #pact-php

mailtoshinu
2022-12-06 07:42
has joined #pact-php

youri.thielen
2022-12-07 07:52
has joined #pact-php

cpopovici
2022-12-07 09:02
has joined #pact-php

hendrik916
2022-12-07 12:07
has joined #pact-php

matcheckep
2022-12-07 13:55
has joined #pact-php

wesley.nutley
2022-12-07 19:48
has joined #pact-php

github2
2022-12-07 20:21
The GitHub user https://github.com/bethesque has signed out. Use the following command/s to recreate subscriptions /github subscribe pact-foundation/pact-php

bethskurrie
2022-12-08 00:34
/github subscribe pact-foundation/pact-php

2022-12-08 00:34
:white_check_mark: Subscribed to https://github.com/pact-foundation/pact-php. This channel will receive notifications for `issues`, `pulls`, `commits`, `releases`, `deployments`

dagmara.krent
2022-12-08 10:19
has joined #pact-php

komathypriya
2022-12-08 11:35
has joined #pact-php

neethu.santhosh
2022-12-08 14:22
has joined #pact-php

janga.nagamallika
2022-12-08 17:49
has joined #pact-php

jampala_1988
2022-12-08 23:47
has joined #pact-php

krishnaraj.pk
2022-12-09 05:35
has joined #pact-php

rajavadootha04
2022-12-09 07:56
has joined #pact-php

tomaszrdzak
2022-12-09 11:54
has joined #pact-php

maxime.raverdy
2022-12-12 09:22
has joined #pact-php

sambhavi.chinnu
2022-12-13 04:11
has joined #pact-php

david.turner
2022-12-13 09:01
has joined #pact-php

mateusz.dudek03
2022-12-13 14:10
has joined #pact-php

mateusz.dudek
2022-12-13 14:22
has joined #pact-php

dmitrij.bogomyakov
2022-12-13 16:09
has joined #pact-php

victor.lau841
2022-12-13 16:30
has joined #pact-php

matt.fellows
2022-12-14 06:35
Awesome work @tien.xuan.vo :clap:

roblesjm
2022-12-14 11:40
has joined #pact-php

ahmidat
2022-12-14 12:44
has joined #pact-php

yousafn
2022-12-14 15:07
Nice @tien.xuan.vo - honestly thank you for much for your work. It is appreciated and isn't going unnoticed, we just don't have PHP people inside the core team, I can help test it from an outside in perspective functionality wise, but in terms of best PHP practise, not so sure. Have been playing around with the FFI based on your examples in the pact-reference repo. Good idea to help break it up, the PR's @cfmack / @lewiscowles would you be happy help review? Would it be an idea to create a next track so we can start rolling out these changes in a beta fashion to allow people to use/test and provide real world feedback? Just thinking our review process is super slow as we don't have allocated people to assist with the work. If there is anyone else you can help bring on board, and if there is any enticement I can help provide, I can work with the team, we do have an open collective budget and I am sure they may be appetite to use some of it to help get this across the line. After all it was born from donations from users of Pact

tien.xuan.vo
2022-12-14 16:35
The 3th pull request will be about `using Rust FFI` itself, but will not be available soon as I think I need to rewrite from scratch based on my big pull request to prevent as much breaking changes as possible.

sergey.ledniov
2022-12-14 16:46
has joined #pact-php

abhimanu.sehgal
2022-12-14 20:40
has joined #pact-php

abraham.gonzalez93
2022-12-14 21:38
@abraham.gonzalez93 has left the channel

enrique.decoss
2022-12-15 02:25
has joined #pact-php

kirankishore4
2022-12-15 06:12
has joined #pact-php

maxime.raverdy
2022-12-15 09:58
@maxime.raverdy has left the channel

alvaro.navarroiborra
2022-12-15 10:47
has joined #pact-php

leelavathi.sundaram
2022-12-15 10:55
has joined #pact-php

paula.muldoon
2022-12-15 11:40
has joined #pact-php

james.sun
2022-12-15 22:42
has joined #pact-php

dominic.matabilas
2022-12-15 22:42
has joined #pact-php

tlemmonds
2022-12-16 19:55
has joined #pact-php

vejeta
2022-12-18 02:28
@vejeta has left the channel

samuel.woodbridge
2022-12-19 09:44
has joined #pact-php

paula.muldoon
2022-12-19 12:19
@paula.muldoon has left the channel

mwojcik
2022-12-19 13:43
has joined #pact-php

robinsmit
2022-12-19 15:08
has joined #pact-php

jungjae.lim
2022-12-19 16:24
has joined #pact-php

saurwein
2022-12-21 14:48
has joined #pact-php

ssharma
2022-12-21 15:17
has joined #pact-php

lewiscowles
2022-12-21 15:38
I Approved the PR; it looks good and is mostly removing things, it should pass pipeline, but keep in mind whoever has permissions to approve the run, may need to retry (php lib flakiness). I Wrote a detailed reply to an ask for improvements. I'll be happy to test, but it might take a while, so I don't get stressed and poorly tempered :blush: . Apologies for when I've done that in the past btw; I think I was generally exhausted, but there is no good excuse for being a brat.

alejandro.depablos
2022-12-21 18:56
has joined #pact-php

tomas.cerkasas
2022-12-21 23:14
has joined #pact-php

priyanka.soni
2022-12-22 08:24
has joined #pact-php

zijian.wang1
2022-12-22 10:51
has joined #pact-php

anyi.huang
2022-12-22 11:02
has joined #pact-php

stepik02
2022-12-23 10:36
has joined #pact-php

ringo
2022-12-23 13:08
@ringo has left the channel

prajwalg
2022-12-25 14:28
has joined #pact-php

raksha.baskaran
2022-12-27 06:01
has joined #pact-php

venkatesh.madas
2022-12-27 06:36
has joined #pact-php

anthony.bennett
2022-12-27 20:15
has joined #pact-php

livinglogic.nl
2022-12-28 10:50
has joined #pact-php

pawel.szczerbicki
2022-12-29 13:22
has joined #pact-php

anandhiemail
2022-12-29 17:37
has joined #pact-php

anandhiemail
2022-12-29 18:24
@anandhiemail has left the channel

arika.goyal
2022-12-30 12:18
has joined #pact-php

m.marquez
2022-12-31 16:05
has joined #pact-php

guoxin.rick33
2023-01-03 08:45
has joined #pact-php

will
2023-01-03 09:59
has joined #pact-php

mario.pires
2023-01-03 11:42
has joined #pact-php

vtft1988
2023-01-03 16:38
has joined #pact-php

matt.thompson
2023-01-04 10:54
has joined #pact-php

rytis.lisauskas
2023-01-04 14:20
has joined #pact-php

morin.td
2023-01-04 16:54
has joined #pact-php

afernandez
2023-01-04 22:22
has joined #pact-php

vkaramoff
2023-01-05 10:00
has joined #pact-php

vkaramoff
2023-01-05 10:02
@vkaramoff has left the channel

morin.td
2023-01-05 10:18
@morin.td has left the channel

vika.karman
2023-01-05 10:32
has joined #pact-php

nickzakirov
2023-01-05 15:01
has joined #pact-php

nam.nguyen
2023-01-07 04:00
has joined #pact-php

dale.wells
2023-01-08 15:18
has joined #pact-php

manohar.adepu
2023-01-09 02:58
has joined #pact-php

hsyogesh12
2023-01-09 05:54
has joined #pact-php

sowmya.bhg
2023-01-09 10:32
has joined #pact-php

ivan.mikhalka
2023-01-09 13:21
has joined #pact-php

klaudijus.rulys
2023-01-09 13:32
has joined #pact-php

boer.k
2023-01-09 15:10
has joined #pact-php

chris.aguirre11
2023-01-09 16:45
has joined #pact-php

nicolas.barbey
2023-01-09 17:06
has joined #pact-php

simon.petty
2023-01-09 21:11
has joined #pact-php

edisonjen13
2023-01-09 22:25
has joined #pact-php

jeroen.vandijk
2023-01-10 09:07
@jeroen.vandijk has left the channel

boer.k
2023-01-10 10:18
@boer.k has left the channel

artem.z
2023-01-11 13:18
has joined #pact-php

jrede
2023-01-11 17:57
has joined #pact-php

vanitha.annamalai
2023-01-12 05:27
has joined #pact-php

jessy.li
2023-01-12 17:29
has joined #pact-php

aronlmin
2023-01-13 02:13
has joined #pact-php

buckley
2023-01-13 20:01
has joined #pact-php

tien.xuan.vo
2023-01-16 03:00
Hi @lewiscowles I think we don't have a place to note down errors we got when pipeline failed. I'm not sure comment on your ticket is a good idea, so for now I think we can note them in this thread. I hope it is okay for you.

tien.xuan.vo
2023-01-16 03:01
Let me start first: ```1) PhpPact\Standalone\Runner\ProcessRunnerTest::testBlockingProcess Expect 'myError' to be in the stderr Failed asserting that '' contains "myError". D:\a\pact-php\pact-php\tests\PhpPact\Standalone\Runner\ProcessRunnerTest.php:46``` https://github.com/pact-foundation/pact-php/actions/runs/3926640569/jobs/6712552709

sashizen
2023-01-16 09:09
has joined #pact-php

richardmccann
2023-01-16 15:37
has joined #pact-php

eugene.malihins
2023-01-17 11:08
has joined #pact-php

yusufjamalazam
2023-01-17 12:24
has joined #pact-php

jbosca
2023-01-17 13:10
has joined #pact-php

hehecx
2023-01-17 22:16
has joined #pact-php

jawaharsurapaneni
2023-01-18 00:36
has joined #pact-php

kerrypmckeever
2023-01-18 02:12
has joined #pact-php

paul
2023-01-18 16:56
has joined #pact-php

dbarne24
2023-01-19 09:32
@dbarne24 has left the channel

basma.eldesouky
2023-01-19 10:24
has joined #pact-php

alex.strizhak
2023-01-19 13:12
has joined #pact-php

laura.porpiglia
2023-01-19 13:56
has joined #pact-php

chimein.1234
2023-01-19 16:13
has joined #pact-php

john295
2023-01-19 23:12
has joined #pact-php

dominik.lukac.96
2023-01-20 10:33
has joined #pact-php

luca.narbone
2023-01-20 16:39
has joined #pact-php

bram.hautekiet
2023-01-22 22:32
has joined #pact-php

benjamin.hess
2023-01-23 23:55
has joined #pact-php

steve.jefferies
2023-01-24 09:47
has joined #pact-php

aoife.drury
2023-01-24 14:36
has joined #pact-php

perger1984
2023-01-24 21:04
has joined #pact-php

ajaytaneja
2023-01-25 13:18
has joined #pact-php

petr.sebek
2023-01-25 14:20
has joined #pact-php

sean.mccann
2023-01-25 15:25
has joined #pact-php

nirob726
2023-01-26 12:25
has joined #pact-php

giuseppe.aina
2023-01-26 17:45
has joined #pact-php

boris.pogrebitskiy
2023-01-26 23:00
has joined #pact-php

rafael.luiz-cavalcant
2023-01-27 00:00
has joined #pact-php

zkocsihorvath
2023-01-27 13:47
has joined #pact-php

jorgen.x.andersson
2023-01-27 14:56
has joined #pact-php

mlapis
2023-01-29 10:56
has joined #pact-php

tim.malseed
2023-01-30 04:52
has joined #pact-php

matt.corby-eaglen
2023-01-30 11:47
has joined #pact-php

ulises.cervino
2023-01-30 12:38
has joined #pact-php

m.gruehn
2023-01-30 13:04
has joined #pact-php

martin.ineichen
2023-01-30 15:07
has joined #pact-php

ch.pascucci
2023-01-30 15:22
has joined #pact-php

grace.tree
2023-01-30 16:03
has joined #pact-php

pryan
2023-01-30 21:25
has joined #pact-php

andy.jenness
2023-01-30 21:29
has joined #pact-php

jcarlos.anast
2023-01-31 12:24
has joined #pact-php

leonardo.saragiotto
2023-01-31 12:32
has joined #pact-php

barry.irvine
2023-02-01 15:52
has joined #pact-php

marcin.slowiak.007
2023-02-01 18:28
has joined #pact-php

hoon.jung
2023-02-01 23:53
has joined #pact-php

andhika.hasiholan06
2023-02-02 03:51
has joined #pact-php

jhordies
2023-02-02 09:59
has joined #pact-php

amanda.santos
2023-02-02 14:19
has joined #pact-php

keith.w
2023-02-02 15:57
has joined #pact-php

gazal.gafoor
2023-02-03 00:13
has joined #pact-php

eschroeder
2023-02-03 17:15
has joined #pact-php

gazal.gafoor
2023-02-04 00:59
@gazal.gafoor has left the channel

marunachalam1
2023-02-04 02:16
has joined #pact-php

loc.daot
2023-02-06 07:37
has joined #pact-php

ondrej.hajek
2023-02-06 09:45
has joined #pact-php

shravan.baira
2023-02-06 11:16
has joined #pact-php

cameron.doyle
2023-02-06 11:17
has joined #pact-php

ckarlborg45
2023-02-06 11:29
has joined #pact-php

itzhak
2023-02-06 11:56
has joined #pact-php

prashant.singh
2023-02-06 14:05
has joined #pact-php

georgina.sallery
2023-02-06 15:18
has joined #pact-php

guptadaksh56
2023-02-06 20:40
has joined #pact-php

brendanmbliss
2023-02-06 23:14
has joined #pact-php

helloyuanyuan
2023-02-07 02:25
has joined #pact-php

geetika.joshi
2023-02-07 10:25
has joined #pact-php

erik.haartmans
2023-02-07 10:31
has joined #pact-php

rawisankarn
2023-02-07 12:59
has joined #pact-php

hiep.duong
2023-02-07 13:10
has joined #pact-php

michael.branders484
2023-02-07 14:08
has joined #pact-php

anda.rozenfelde
2023-02-07 14:33
has joined #pact-php

vietanhtran.dev
2023-02-08 04:44
has joined #pact-php

goyal.himanshu
2023-02-08 08:23
has joined #pact-php

jeroenlamain
2023-02-08 11:57
has joined #pact-php

pallavi.bose
2023-02-08 13:19
has joined #pact-php

adi.d
2023-02-08 16:25
has joined #pact-php

oriane.rodriguez
2023-02-08 16:59
has joined #pact-php

tdickman
2023-02-08 21:36
has joined #pact-php

george.croucamp
2023-02-09 05:14
has joined #pact-php

gcroucamp
2023-02-09 05:15
has joined #pact-php

tonis.ojandu
2023-02-09 09:46
has joined #pact-php

justyna
2023-02-09 10:03
has joined #pact-php

tomer.ghelber
2023-02-09 12:24
has joined #pact-php

tommy.chen
2023-02-10 00:39
has joined #pact-php

sayler.b
2023-02-11 03:46
has joined #pact-php

rm.bozhko
2023-02-12 16:27
has joined #pact-php

moid.abdul
2023-02-13 00:16
has joined #pact-php

sugi
2023-02-13 09:59
has joined #pact-php

sgeethu21
2023-02-13 11:01
has joined #pact-php

kp1289
2023-02-13 11:59
has joined #pact-php

rahul.jalagadugu
2023-02-13 15:37
has joined #pact-php

omatuzenko.hse
2023-02-13 18:14
has joined #pact-php

tyler.fleurant
2023-02-13 21:56
has joined #pact-php

swilkinson
2023-02-14 09:59
has joined #pact-php

brooks
2023-02-14 18:41
has joined #pact-php

carlos.lopez
2023-02-14 19:20
has joined #pact-php

sam.mirzaee
2023-02-15 02:35
has joined #pact-php

kam.sobon
2023-02-15 11:26
has joined #pact-php

tomer.ghelber
2023-02-15 12:45
@tomer.ghelber has left the channel

mail391
2023-02-15 14:59
has joined #pact-php

jmoreno
2023-02-15 21:27
has joined #pact-php

marcio.duarte
2023-02-16 03:38
has joined #pact-php

bryen.vieira
2023-02-16 16:34
has joined #pact-php

ryan319
2023-02-16 22:50
has joined #pact-php

zhig.ivan
2023-02-17 08:56
has joined #pact-php

yerken.tussupbekov
2023-02-17 11:40
has joined #pact-php

iamchughmayank
2023-02-17 18:30
has joined #pact-php

jake.kline
2023-02-18 04:11
has joined #pact-php

culudamar
2023-02-20 08:12
has joined #pact-php

gawaine.ogilvie
2023-02-20 17:01
has joined #pact-php

james414
2023-02-22 10:00
has joined #pact-php

nbolam
2023-02-22 20:26
has joined #pact-php

lambent21
2023-02-23 13:35
has joined #pact-php

pach
2023-02-23 17:34
has joined #pact-php

richard.ruiter
2023-02-24 06:43
has joined #pact-php

spalle
2023-02-24 10:54
has joined #pact-php

alex637
2023-02-24 14:32
has joined #pact-php

egrep
2023-02-25 17:32
has joined #pact-php

ykamali
2023-02-26 05:10
has joined #pact-php

kripa.kurian
2023-02-27 04:35
has joined #pact-php

jordan.brooks
2023-02-27 09:46
has joined #pact-php

courtel.yann
2023-02-27 10:47
has joined #pact-php

nathan.hickson
2023-02-27 13:07
has joined #pact-php

mark.simpson
2023-02-27 13:08
has joined #pact-php

masykur.sn
2023-02-27 15:21
has joined #pact-php

makifkus
2023-02-28 03:51
has joined #pact-php

jacob.waller
2023-02-28 21:08
has joined #pact-php

dipak8959
2023-02-28 21:18
has joined #pact-php

sanketh.shanbhag
2023-03-01 03:57
has joined #pact-php

adam.cox
2023-03-01 12:34
has joined #pact-php

steve.short
2023-03-01 15:14
has joined #pact-php

kgrady
2023-03-01 18:58
has joined #pact-php

tien.xuan.vo
2023-03-02 10:40
``` 1) PhpPactTest\Standalone\ProviderVerifier\VerifierTest::testRunShouldLogOutputIfCmdFails Failed asserting that 'out > ' contains "first line". D:\a\pact-php\pact-php\tests\PhpPact\Standalone\ProviderVerifier\VerifierTest.php:231 2) PhpPactTest\Standalone\Runner\ProcessRunnerTest::testBlockingProcess Expect 'pact' to be in the output Failed asserting that '' contains "pact". D:\a\pact-php\pact-php\tests\PhpPact\Standalone\Runner\ProcessRunnerTest.php:27``` https://github.com/pact-foundation/pact-php/actions/runs/4310538726/jobs/7519118927

pratima.patil
2023-03-02 11:13
has joined #pact-php

shilpa199350
2023-03-02 12:40
has joined #pact-php

syamphaneendrak
2023-03-02 16:21
has joined #pact-php

neeraj.sharma
2023-03-02 16:33
has joined #pact-php

dominik.chmielarz
2023-03-02 16:55
has joined #pact-php

xchen
2023-03-02 18:59
has joined #pact-php

fdawson
2023-03-03 08:15
has joined #pact-php

tom.meldrum
2023-03-03 13:02
has joined #pact-php

dragos.neagu
2023-03-03 16:44
has joined #pact-php

tien.xuan.vo
2023-03-06 07:54
```1) PhpPactTest\Standalone\ProviderVerifier\VerifierTest::testVerify Failed asserting that false is true. D:\a\pact-php\pact-php\tests\PhpPact\Standalone\ProviderVerifier\VerifierTest.php:48``` https://github.com/pact-foundation/pact-php/actions/runs/4341095386/jobs/7580293186

facundo.g
2023-03-06 12:13
has joined #pact-php

michael.bryson
2023-03-06 14:59
has joined #pact-php

kingsley
2023-03-06 22:47
has joined #pact-php

marckpuiu
2023-03-07 15:58
has joined #pact-php

facundo.g
2023-03-08 09:31
@facundo.g has left the channel

duncan3142
2023-03-08 19:42
has joined #pact-php

william.stewart
2023-03-08 20:25
has joined #pact-php

trc229
2023-03-09 01:34
has joined #pact-php

zaira.zafar
2023-03-09 10:41
has joined #pact-php

dominik.goltermann
2023-03-09 15:31
has joined #pact-php

sharathkonda
2023-03-09 15:37
has joined #pact-php

allen.ayala
2023-03-09 16:33
has joined #pact-php

slawomir.pawluk
2023-03-09 18:22
has joined #pact-php

casavelha
2023-03-09 19:49
has joined #pact-php

nikita.gupta
2023-03-09 22:21
has joined #pact-php

pjayakumar
2023-03-10 02:21
has joined #pact-php

josh.marlow
2023-03-10 15:10
has joined #pact-php

patilb
2023-03-11 17:02
has joined #pact-php

renan.santos
2023-03-11 18:46
has joined #pact-php

keren.eckshtein
2023-03-12 08:57
has joined #pact-php

tien.xuan.vo
2023-03-12 09:46
```Script phpunit --debug -c example/phpunit.all.xml handling the test event returned with error code -1073741819``` https://github.com/pact-foundation/pact-php/actions/runs/4396817297/jobs/7699527082

sr
2023-03-12 11:58
has joined #pact-php

gokuldot
2023-03-12 17:30
has joined #pact-php

ldgaribello
2023-03-13 06:23
has joined #pact-php

lidan.liu
2023-03-13 10:45
has joined #pact-php

matt.fellows
2023-03-13 11:54
@tien.xuan.vo is on :fire: Amazing work!

vipin.kumar
2023-03-13 12:29
has joined #pact-php

bknapik
2023-03-13 17:13
has joined #pact-php

ravi0894
2023-03-13 17:38
has joined #pact-php

anji.boddupally
2023-03-13 20:37
has joined #pact-php

voon.wong
2023-03-14 01:34
has joined #pact-php

gigamac
2023-03-14 08:09
has joined #pact-php

ivstam
2023-03-14 08:43
has joined #pact-php

melikesezin
2023-03-14 14:17
has joined #pact-php

gopishankar.haridas
2023-03-14 16:42
has joined #pact-php

rajasekaran.parthiban
2023-03-14 20:13
has joined #pact-php

sbanerjee
2023-03-15 02:46
has joined #pact-php

kurt_schriefer
2023-03-15 13:21
has joined #pact-php

andreas530
2023-03-15 22:32
has joined #pact-php

santiago.rendong
2023-03-15 23:21
has joined #pact-php

christine.awofeso
2023-03-16 09:58
has joined #pact-php

konstantin.manna
2023-03-16 15:04
has joined #pact-php

emgarcia
2023-03-16 15:44
has joined #pact-php

john.goodwin
2023-03-16 15:51
has joined #pact-php

tomasz.kowalczyk
2023-03-16 15:51
has joined #pact-php

samir.ferreira
2023-03-16 16:27
has joined #pact-php

kripa.kurian
2023-03-16 19:31
@kripa.kurian has left the channel

raess.simon
2023-03-16 23:02
has joined #pact-php

anshu.ranjan1002
2023-03-17 21:59
has joined #pact-php

mptinternational
2023-03-18 18:12
has joined #pact-php

16728365
2023-03-19 14:30
has joined #pact-php

brick777
2023-03-19 21:47
has joined #pact-php

mark.ingram
2023-03-20 11:31
has joined #pact-php

mark.ingram
2023-03-20 11:57
@mark.ingram has left the channel

jo.laing
2023-03-20 17:06
has joined #pact-php

erich.buri
2023-03-20 22:07
has joined #pact-php

xiaorong.ruby
2023-03-21 09:34
has joined #pact-php

markcox20
2023-03-21 10:08
has joined #pact-php

oloruntobi.ayilara
2023-03-21 14:01
has joined #pact-php

pankaj_kumar39
2023-03-21 14:18
has joined #pact-php

ravi_shankar_lakkims
2023-03-21 14:18
has joined #pact-php

sathish.nilla
2023-03-21 14:19
has joined #pact-php

sikandar_kumar.singh
2023-03-21 14:19
has joined #pact-php

benjamin.earle
2023-03-21 19:23
has joined #pact-php

sanjaysingh99in
2023-03-22 00:57
has joined #pact-php

rafalmaciak
2023-03-22 08:03
has joined #pact-php

jyothy18
2023-03-22 09:23
has joined #pact-php

haiyang.huang
2023-03-22 10:30
has joined #pact-php

denispegan4
2023-03-22 13:14
has joined #pact-php

ulises.cervino
2023-03-22 21:01
@ulises.cervino has left the channel

tranghetti
2023-03-22 21:15
has joined #pact-php

amruta_mandavilli
2023-03-23 06:23
has joined #pact-php

shubhamshriram.shinde
2023-03-23 06:34
has joined #pact-php

juliemarierosok
2023-03-23 08:20
has joined #pact-php

colin.aygalinc
2023-03-23 09:23
has joined #pact-php

me1685
2023-03-23 10:53
has joined #pact-php

gregpovorozniuk
2023-03-23 11:32
has joined #pact-php

mpalla553
2023-03-23 14:51
has joined #pact-php

sumit.singh
2023-03-23 18:03
has joined #pact-php

quinton.miller
2023-03-23 19:18
has joined #pact-php

hurdledatrade
2023-03-24 11:24
has joined #pact-php

srijan.c
2023-03-24 15:26
has joined #pact-php

praveen.gangasani
2023-03-26 13:19
has joined #pact-php

yzxu
2023-03-27 07:27
has joined #pact-php

1248124408
2023-03-27 08:59
has joined #pact-php

daniel.redelberger
2023-03-27 09:07
has joined #pact-php

mohammed.a.ezzedine
2023-03-27 15:25
has joined #pact-php

kiran.malsetty
2023-03-27 17:20
has joined #pact-php

rchild
2023-03-27 18:46
has joined #pact-php

asoni
2023-03-27 20:23
has joined #pact-php

yu.xie
2023-03-28 00:08
has joined #pact-php

gamer.fikri
2023-03-28 04:46
has joined #pact-php

shaun.carmody
2023-03-28 13:23
has joined #pact-php

christianschiepe
2023-03-28 13:50
has joined #pact-php

aberman
2023-03-28 19:24
has joined #pact-php

0xoscario
2023-03-29 03:38
has joined #pact-php

paddyhendy94
2023-03-30 12:48
has joined #pact-php

haroldrobson11
2023-03-30 13:16
has joined #pact-php

jfbosca
2023-03-30 15:26
has joined #pact-php

daominhdam
2023-04-01 10:04
has joined #pact-php

joseph.gately
2023-04-03 14:14
has joined #pact-php

bram.harmsen
2023-04-04 07:20
has joined #pact-php

sarah.al-hawi
2023-04-04 10:55
has joined #pact-php

andrei.enache
2023-04-04 10:55
has joined #pact-php

sohaib.zahid
2023-04-04 10:55
has joined #pact-php

behrouz.pooladrak
2023-04-04 10:55
has joined #pact-php

amarpal.amrith
2023-04-04 10:57
has joined #pact-php

laszlo.bogardi
2023-04-04 10:57
has joined #pact-php

caroline.thom
2023-04-04 13:20
has joined #pact-php

jeremy.chao
2023-04-04 14:49
has joined #pact-php

bmdk83
2023-04-04 15:51
has joined #pact-php

maithree.uppunda
2023-04-05 07:50
has joined #pact-php

sivamkumar80
2023-04-05 13:34
has joined #pact-php

vanja.ilic
2023-04-05 14:24
has joined #pact-php

proydimonoff
2023-04-05 14:30
has joined #pact-php

proy
2023-04-05 14:33
has joined #pact-php

proy
2023-04-05 15:52
Greetings. I came across a weird bug using the pact php package to verify the interactions with another service that acts as a consumer. Oddly, when I call "verify('devices-gateway')" on the Verifier, it's verifying another interaction with another consumer service, which is verified with a MessageVerifier in another unit test of the same provider. It seems to be verifying the accurate consumer right at the start of my unit test, but it's abruptly ending, as these two lines of log show; ```[2023-04-05T11:57:37.873381-04:00] console.debug: Process command: /app/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/Installer/../../../../pact/bin/pact-provider-verifier https://[PACTBROKER_URL]/pacts/provider/oauth-service/consumer/devices-gateway/latest/ --provider='oauth-service' --provider-base-url=http://0.0.0.0:7202 --provider-app-version=1.0 --broker-username=[USERNAME] --broker-password=[PASSWORD] --enable-pending --include-wip-pacts-since=2020-01-30 --pact-broker-base-url=[PACTBROKER_URL] [] [] [2023-04-05T11:57:39.443766-04:00] console.debug: Exit code: 1 [] []``` It then moves on to the other verification, even though I really mentionned "->verify('devices-gateway')" in my unit test, right before my final assertion. I was wondering if there's anything being cached or something. When I first developed this verification unit test, I wrongly used the "verifyAll" function on the verify all, so I wonder if there's some kind of black magic going that's I'm not aware of. Thanks for helping.

kevin.moylan
2023-04-05 16:13
has joined #pact-php

matt.fellows
2023-04-06 00:33
Ah, you might be running into an issue with the V2 spec, where you can?t verify both HTTP and non-HTTP (aka messages) in the same verification process. The verifier will fetch all pacts/consumers and verify them, and this is not supported in V2. In V4 this is fixed, but Pact PHP does not yet support that

matt.fellows
2023-04-06 00:33
the fix is to name the provider differently for HTTP and Message verifications

vijaykumar.patel
2023-04-06 06:36
has joined #pact-php

ankit.kumar
2023-04-06 10:55
has joined #pact-php

proy
2023-04-06 12:53
This is exactly what was going on. And this is what we ended up going for; naming the provider differently. We're still happy to know the problem wasn't in our implementation. Thanks for the quick answer.

joye.arbuckle
2023-04-06 14:24
has joined #pact-php

allison.stone
2023-04-06 19:36
has joined #pact-php

mayank
2023-04-06 22:11
has joined #pact-php

ganesh.walunj
2023-04-07 06:05
has joined #pact-php

jan.krolikowski
2023-04-07 14:39
has joined #pact-php

mragni.majhwar
2023-04-07 17:51
has joined #pact-php

gonzalo.granizo
2023-04-11 10:13
has joined #pact-php

theburningmonk
2023-04-11 11:29
has joined #pact-php

helenarodcal
2023-04-11 11:31
has joined #pact-php

enver.yasar
2023-04-11 13:39
has joined #pact-php

christian.ledgard
2023-04-11 13:49
has joined #pact-php

ddongre
2023-04-11 15:09
has joined #pact-php

prajapati.pravesh
2023-04-12 02:55
has joined #pact-php

edwin.raju
2023-04-12 08:13
has joined #pact-php

john.hennigan
2023-04-12 08:16
has joined #pact-php

donald.robertson
2023-04-12 10:42
has joined #pact-php

tam.norris
2023-04-12 10:46
has joined #pact-php

gopijaganathan7
2023-04-13 07:27
has joined #pact-php

lukaszmalek90
2023-04-13 11:40
has joined #pact-php

omri.eyal
2023-04-13 13:23
@omri.eyal has left the channel

nickwilliamsqa
2023-04-13 16:15
has joined #pact-php

guozhangliew
2023-04-14 02:03
has joined #pact-php

praboo.p
2023-04-14 07:17
has joined #pact-php

florenciaaldana.rodri
2023-04-14 08:10
has joined #pact-php

taher.kapasi
2023-04-14 15:53
has joined #pact-php

michael385
2023-04-14 16:40
has joined #pact-php

darrenoc3
2023-04-15 03:46
has joined #pact-php

ones.ardo
2023-04-17 07:58
has joined #pact-php

deeptiagrawal
2023-04-17 23:31
has joined #pact-php

nikita.gupta
2023-04-18 03:06
Hello Guys,I am verifying a request between a Kotlin based consumer and PHP based Provider service that requires authorization token send in request header (that does not change very frequently) so i added token in pact and consumer test which works fine but verifying the pact against provider respond with 401 error code.whats the best way to handle this? Should i add token on provider side(which i could not find way to add in pact-php) or i there a possibility to totally ignore token since we are using mock client to interact with provider and i don?t need to verify token.Please suggest.Thanks!

madhukar.koratagere
2023-04-18 06:24
has joined #pact-php

mahesh.damavarapu
2023-04-18 06:26
has joined #pact-php

paul.caplan
2023-04-18 14:52
has joined #pact-php

cars2991
2023-04-19 02:42
has joined #pact-php

vaidas.sieber
2023-04-19 06:42
has joined #pact-php

jonathandelaros
2023-04-19 07:40
has joined #pact-php

priyaranjanmudliar
2023-04-19 09:05
has joined #pact-php

ajaydiwakar.ka
2023-04-19 10:11
has joined #pact-php

meghaagr
2023-04-19 10:13
has joined #pact-php

hcummins
2023-04-19 12:58
has joined #pact-php

michael.dasilva
2023-04-19 13:13
has joined #pact-php

ivana.lazic
2023-04-19 14:04
has joined #pact-php

vakong13
2023-04-19 16:15
has joined #pact-php

ravinder.kadiyan
2023-04-20 09:56
has joined #pact-php

alfredo.castro
2023-04-20 13:27
has joined #pact-php

vaidas.sieber
2023-04-20 14:10
Can a bearer token be added to the provider verifier config like so: ```$config = new VerifierConfig(); $config ->header('headers' => ['Authorization' => 'Bearer <value>']) ->setRequestFilter( function (RequestInterface $r) { return $r->withHeader('Authorization', 'Bearer <value>'); } );```

lluis.casals
2023-04-20 17:07
has joined #pact-php

dprawatya
2023-04-21 01:11
has joined #pact-php

mbutt
2023-04-21 01:11
has joined #pact-php

matt.fellows
2023-04-21 01:31
I think so, is it not working?

vaidas.sieber
2023-04-21 05:36
Response said: "401 Token not found" using setRequestFilter or no header at all. The other 2 tryouts (headers, setAdditionalRequestHeaders) return php call errors. Following this repo guide: https://github.com/pact-foundation/pact-php#provider-verification. ```public function testPactVerifyConsumer() { $config = new VerifierConfig(); $config ->setProviderName('Provider') ->setProviderVersion('1.0.0') ->setProviderBaseUrl(new Uri('http://localhost:8081')) ->setBrokerUri(new Uri('http://localhost:9292')) // not working ->header('headers' => ['Authorization' => 'Bearer <value>']) /* not working ->setRequestFilter( function (RequestInterface $r) { return $r->withHeader('Authorization', 'Bearer <value>'); } );*/ ; $verifier = new Verifier($config); // not working $verifier->setAdditionalRequestHeaders(['Authorization' => 'Bearer <value>']) $verifier->verifyFiles([__DIR__ . '/../../../pacts/*.json']); $this->assertTrue(true, 'Pact Verification has failed.'); }```

vaidas.sieber
2023-04-21 06:01
ChatGPT recommended, but same response "401 Token not found": ```use GuzzleHttp\Psr7\Uri; use PhpPact\Standalone\ProviderVerifier\Model\VerifierConfig; use PhpPact\Standalone\ProviderVerifier\Verifier; use PhpPact\Standalone\Runner\ProcessRunner; use PHPUnit\Framework\TestCase; use Psr\Http\Message\RequestInterface; public function testPactVerifyConsumer() { $config = new VerifierConfig(); $config ->setProviderName('Provider') ->setProviderVersion('1.0.0') ->setProviderBaseUrl(new Uri('http://localhost:8081')) ->setBrokerUri(new Uri('http://localhost:9292')) ->setRequestFilter( function (RequestInterface $r) { $authHeader = ['Authorization' => 'Bearer <value>']; return $r->withHeader($authHeader); } ); ; $verifier = new Verifier($config); $verifier->verifyFiles([__DIR__ . '/../../../pacts/*.json']); $this->assertTrue(true, 'Pact Verification has failed.'); }```

vaidas.sieber
2023-04-21 06:57
Just for info: I would need the token for every API call to verify the consumer, not to auth to the broker.

matt.fellows
2023-04-21 07:57
What does the output of the log file say when set to DEBUG/verbose - it should show the fully request/response

vaidas.sieber
2023-04-21 09:17
```I, [2023-04-21T09:14:13.465219 #48] INFO -- : Running example 'Verifying a pact between Consumer and Provider A request for a clients list with GET /api/clients returns a response which has status code 200' I, [2023-04-21T09:14:13.468601 #48] INFO -- : Sending GET request to path: "/api/clients" with headers: {}, see debug logs for body D, [2023-04-21T09:14:13.469643 #48] DEBUG -- : body : I, [2023-04-21T09:14:15.490512 #48] INFO -- : Received response with status: 401, headers: {"Content-Type"=>"application/json", "Connection"=>"keep-alive", "Www-Authenticate"=>"Bearer", "Cache-Control"=>"no-cache, private", "Date"=>"Fri, 21 Apr 2023 09:14:14 GMT", "Link"=>"<http://localhost:8081/api/docs.jsonld>; rel=\"http://www.w3.org/ns/hydra/core#apiDocumentation\"", "X-Debug-Token"=>"3afd26", "X-Debug-Token-Link"=>"http://localhost:8081/api/_profiler/3afd26", "X-Robots-Tag"=>"noindex", "Content-Length"=>"44"}, see debug logs for body D, [2023-04-21T09:14:15.491504 #48] DEBUG -- : body: {"code":401,"message":"JWT Token not found"}``` ->setVerbose(true) ```same output```

vaidas.sieber
2023-04-21 10:06
It works with: `->addCustomProviderHeader('Authorization', 'Bearer <value>')` Which I found here in line 41: https://github.com/pact-foundation/pact-php/blob/master/tests/PhpPact/Standalone/ProviderVerifier/VerifierTest.php.

matt.fellows
2023-04-21 12:11
Ah! yes, that makes sense now I look at it :laughing:

matt.fellows
2023-04-21 12:11
sorry for not picking that up

marcia.meira
2023-04-21 12:43
has joined #pact-php

raubreysmith
2023-04-21 12:46
has joined #pact-php

ksenia.vasileva
2023-04-21 15:02
has joined #pact-php

jack.amico
2023-04-21 15:48
has joined #pact-php

cheng.ngai
2023-04-22 00:55
has joined #pact-php

aditya.kashyap
2023-04-24 05:13
has joined #pact-php

iustina.gavrila
2023-04-24 09:15
has joined #pact-php

vandana.aveva
2023-04-24 18:24
has joined #pact-php

lucas
2023-04-25 00:01
has joined #pact-php

szydlakus
2023-04-25 11:19
has joined #pact-php

sarah.hutchins
2023-04-25 12:48
has joined #pact-php

kristoffer
2023-04-25 13:31
has joined #pact-php

jack.drake
2023-04-25 15:40
has joined #pact-php

mathivanan.kailasam
2023-04-25 16:15
has joined #pact-php

hornc
2023-04-25 18:00
has joined #pact-php

hulia.suliman
2023-04-25 18:07
has joined #pact-php

markus.nakhlah
2023-04-26 13:44
has joined #pact-php

jean-francois.renaud
2023-04-26 21:09
has joined #pact-php

jakazzy
2023-04-27 06:16
has joined #pact-php

yousafn
2023-04-27 20:46
:yolo: 'ed the above PR, sorry the above tests have caused red pipelines for so long

edwin.raju
2023-04-28 11:13
@edwin.raju has left the channel

srinivas.nali
2023-04-28 14:27
has joined #pact-php

dmitriy.tarasevich
2023-04-28 16:00
has joined #pact-php

jigish.mehta
2023-04-28 16:00
has joined #pact-php

juan.felix
2023-04-28 16:01
has joined #pact-php

himesj
2023-04-28 17:25
has joined #pact-php

itsforbabu
2023-04-29 14:25
has joined #pact-php

tea.trader168
2023-04-30 02:04
has joined #pact-php

lori.maurais
2023-05-01 15:27
has joined #pact-php

damola.thompson
2023-05-02 07:26
has joined #pact-php

ivan.v.kurlovich
2023-05-02 13:01
has joined #pact-php

ckulkarni
2023-05-02 14:22
has joined #pact-php

aurel.pintea
2023-05-02 14:55
has joined #pact-php

ariveros142
2023-05-02 20:03
has joined #pact-php

cody.jenkins
2023-05-03 04:48
has joined #pact-php

ashish.tilara
2023-05-03 06:08
has joined #pact-php

alfred.brose00
2023-05-03 08:17
has joined #pact-php

dibya.dhar
2023-05-03 09:04
has joined #pact-php

ronnie.kilsbo
2023-05-03 09:28
has joined #pact-php

caitriona.gallagher
2023-05-03 15:18
has joined #pact-php

majhwar.mragni
2023-05-03 17:03
has joined #pact-php

michael.fenstermaker
2023-05-03 20:56
has joined #pact-php

man.tse
2023-05-03 20:58
has joined #pact-php

tristan
2023-05-04 03:27
has joined #pact-php

michal.kopriva
2023-05-04 11:03
has joined #pact-php

james.jenks
2023-05-04 19:09
has joined #pact-php

abdurrahman.muratt
2023-05-04 20:50
has joined #pact-php

svetoldo444ka
2023-05-05 15:35
has joined #pact-php

arjun.gowda
2023-05-08 17:07
has joined #pact-php

valencianaad
2023-05-09 15:05
has joined #pact-php

marlon.jimenez
2023-05-09 17:53
has joined #pact-php

erollins
2023-05-09 18:49
has joined #pact-php

marcos.aruj
2023-05-09 23:39
has joined #pact-php

meritxell.rodriguez
2023-05-10 06:33
has joined #pact-php

yana.kliuch
2023-05-10 08:58
has joined #pact-php

james.brown
2023-05-10 14:01
has joined #pact-php

mark.bursnall
2023-05-10 14:01
has joined #pact-php

alexandru.simion
2023-05-10 14:01
has joined #pact-php

giulio.giovannini
2023-05-10 14:01
has joined #pact-php

razvan.grigorescu
2023-05-10 14:04
has joined #pact-php

henry.rutman
2023-05-10 18:28
has joined #pact-php

simondemartini
2023-05-10 19:53
has joined #pact-php

stefan.kemp
2023-05-11 07:42
has joined #pact-php

supersmile2009
2023-05-11 12:06
has joined #pact-php

lknaresh2
2023-05-11 18:20
has joined #pact-php

siddharth12345
2023-05-12 09:47
has joined #pact-php

siddharth.shetty
2023-05-12 09:51
has joined #pact-php

lukemstorey
2023-05-12 13:52
has joined #pact-php

rana
2023-05-13 20:56
has joined #pact-php

anatoliy.ganzyuk
2023-05-14 20:15
has joined #pact-php

minhajsid
2023-05-15 10:18
has joined #pact-php

artur.ashyrov984
2023-05-15 16:01
has joined #pact-php

jerson.zuniga
2023-05-15 20:25
has joined #pact-php

sekumar
2023-05-15 21:05
has joined #pact-php

jzunigacoayla
2023-05-15 21:41
has joined #pact-php

matthieu.saleta
2023-05-16 09:31
has joined #pact-php

carls.stfleur
2023-05-16 12:20
has joined #pact-php

dale
2023-05-16 16:01
has joined #pact-php

curb1968
2023-05-17 03:41
has joined #pact-php

robert.turner
2023-05-17 12:26
has joined #pact-php

jsanthakumar
2023-05-18 09:47
has joined #pact-php

rmodrego
2023-05-18 09:47
has joined #pact-php

clm.whyte
2023-05-18 09:48
has joined #pact-php

fdonald
2023-05-18 09:52
has joined #pact-php

mgarcia
2023-05-18 09:53
has joined #pact-php

lsantarelli
2023-05-18 10:26
has joined #pact-php

bdocherty
2023-05-18 11:56
has joined #pact-php

srikanth_vemuri
2023-05-18 12:08
has joined #pact-php

perera.x.roshni
2023-05-18 12:16
has joined #pact-php

mohitkrishna.s.s12
2023-05-18 13:23
has joined #pact-php

dwayne.sykes
2023-05-18 16:23
has joined #pact-php

kancharla.g
2023-05-19 03:31
has joined #pact-php

clm.whyte
2023-05-19 16:34
@clm.whyte has left the channel

joseantonionmfilho
2023-05-19 17:46
has joined #pact-php

anenada
2023-05-20 08:06
has joined #pact-php

rabrosimov
2023-05-20 20:11
has joined #pact-php

arm.arturpetrosyan
2023-05-22 10:37
has joined #pact-php

adra_verma
2023-05-22 12:11
has joined #pact-php

p.keshav.chainani
2023-05-22 12:13
has joined #pact-php

divya.s.parappanavar
2023-05-22 12:13
has joined #pact-php

n.duran
2023-05-22 14:38
has joined #pact-php

garry.wilson
2023-05-23 12:28
has joined #pact-php

verevad
2023-05-23 13:04
has joined #pact-php

jon.arambarri
2023-05-24 07:34
has joined #pact-php

yonatany
2023-05-24 08:14
has joined #pact-php

scoplin
2023-05-24 20:02
has joined #pact-php

aemanuelson
2023-05-25 23:41
has joined #pact-php

sreenivas.chaitanya
2023-05-26 08:29
has joined #pact-php

tigrandza
2023-05-26 08:46
has joined #pact-php

tle
2023-05-26 09:56
has joined #pact-php

adam699
2023-05-26 13:35
has joined #pact-php

mariusz.kapczynski
2023-05-29 12:10
has joined #pact-php

kazimierz.zarychta
2023-05-29 12:10
has joined #pact-php

pierre.zeidan
2023-05-30 13:10
has joined #pact-php

shkothari
2023-05-30 14:55
has joined #pact-php

bwang
2023-05-30 16:55
has joined #pact-php

dev.talha.akbar
2023-05-31 09:45
has joined #pact-php

msiles
2023-05-31 13:50
has joined #pact-php

eli.thorkelson
2023-05-31 18:14
has joined #pact-php

jegadeesan.ponnusamy8
2023-06-02 16:19
has joined #pact-php

siyuanshen1993
2023-06-03 10:36
has joined #pact-php

pawar.s
2023-06-05 05:15
has joined #pact-php

rohitkrishnan
2023-06-05 20:37
has joined #pact-php

payal.chainani
2023-06-06 06:32
has joined #pact-php

divya.parappanavar
2023-06-06 07:23
has joined #pact-php

mrudula.patil
2023-06-06 08:19
has joined #pact-php

vaidas.sieber
2023-06-06 10:17
Hi, I use pact-php and encounter the following issue during the provider verification: ```http://console.INFO: Verifying PACT with script: /srv/api/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/Installer/../../../../pact/bin/pact-provider-verifier [...] 1 / 1 (100%) There was 1 error: 1) Tests\Pact\PactVerifyTest::testPactVerifyConsumer Amp\Process\ProcessException: Could not determine PID /srv/api/vendor/amphp/process/lib/Internal/Posix/Runner.php:56 /srv/api/vendor/amphp/amp/lib/Loop/NativeDriver.php:327 /srv/api/vendor/amphp/amp/lib/Loop/NativeDriver.php:124 /srv/api/vendor/amphp/amp/lib/Loop/Driver.php:138 /srv/api/vendor/amphp/amp/lib/Loop/Driver.php:72 /srv/api/vendor/amphp/amp/lib/Loop.php:95 /srv/api/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/Runner/ProcessRunner.php:138 // https://github.com/pact-foundation/pact-php/blob/master/src/PhpPact/Standalone/Runner/ProcessRunner.php /srv/api/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/ProviderVerifier/VerifierProcess.php:77 /srv/api/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/ProviderVerifier/Verifier.php:277 /srv/api/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/ProviderVerifier/Verifier.php:217 /srv/api/tests/Pact/tests/PactVerifyTest.php:69 // $verifier->verifyAll();``` Similar to https://github.com/amphp/process/issues/44 and reproducible like so: ```\Amp\Loop::run(function() { $process = new \Amp\Process\Process(__DIR__.'/../../../vendor/pact-foundation/pact-php/src/PhpPact/Standalone/Installer/../../../../pact/bin/pact-provider-verifier'); yield $process->start(); yield $process->join(); });``` Is a verifier configuration missing or is it a bug in pact-php or amphp/process?

asjad.baig.ind
2023-06-06 11:12
has joined #pact-php

rajat.chouhan
2023-06-06 12:16
has joined #pact-php

david.stothers
2023-06-07 07:25
has joined #pact-php

rafaela.azevedosouza
2023-06-07 08:52
has joined #pact-php

newmolti
2023-06-07 10:14
has joined #pact-php

danut.turta
2023-06-07 11:35
has joined #pact-php

dev664
2023-06-07 11:53
has joined #pact-php

david.blanco
2023-06-07 18:08
has joined #pact-php

jonathan.fisher
2023-06-07 19:30
has joined #pact-php

dev.pactslack
2023-06-07 20:17
has joined #pact-php

dan.nichols52
2023-06-08 04:30
has joined #pact-php

s.lohmeier
2023-06-08 08:08
has joined #pact-php

radek.stolarczyk
2023-06-08 13:32
has joined #pact-php

zeeshankhan0330
2023-06-08 16:36
has joined #pact-php

marek
2023-06-09 07:57
has joined #pact-php

michael.lawrence
2023-06-09 09:57
has joined #pact-php

mssachin
2023-06-12 08:06
has joined #pact-php

andy.frith
2023-06-12 12:31
has joined #pact-php

ajay_886
2023-06-12 22:38
has joined #pact-php

steven.wang06
2023-06-13 05:06
has joined #pact-php

navanesyan
2023-06-13 07:05
has joined #pact-php

ran.tao
2023-06-13 21:46
has joined #pact-php

prakhar.roy371
2023-06-14 05:21
has joined #pact-php

vaidas.sieber
2023-06-14 07:47
Was an internal app issue which we could resolve.

john.joel.thetla
2023-06-14 10:16
has joined #pact-php

drew.bowman
2023-06-14 18:05
has joined #pact-php

devwenzel
2023-06-15 08:26
has joined #pact-php

ronen.yurik
2023-06-15 13:34
has joined #pact-php

matthew.finbury
2023-06-15 13:39
has joined #pact-php

anthony.sharp
2023-06-15 13:43
has joined #pact-php

mariane.leite
2023-06-15 15:25
has joined #pact-php

wvkehoe
2023-06-16 10:27
has joined #pact-php

rost.khanyukov
2023-06-16 22:59
has joined #pact-php

mich.krzyzanowski
2023-06-17 15:22
has joined #pact-php

f.barril
2023-06-18 16:58
has joined #pact-php

delboy1978uk
2023-06-20 07:46
has joined #pact-php

delboy1978uk
2023-06-20 07:55
@vaidas.sieber i think it is to do with the ruby installer, i use docker and my container doesn't have ruby, and using xdebug i saw that instead of a PID I got a bit of XML to do with the ruby installer

hammid.funsho
2023-06-20 22:18
has joined #pact-php

benjamine.nidhin
2023-06-21 12:15
has joined #pact-php

kuksa.vladyslav
2023-06-22 12:47
has joined #pact-php

suryasaharan
2023-06-22 15:41
has joined #pact-php

gabriel
2023-06-22 21:22
has joined #pact-php

bgrgincic
2023-06-26 11:00
has joined #pact-php

svilen.popov
2023-06-27 09:44
has joined #pact-php

matt982
2023-06-27 16:02
has joined #pact-php

eltonlinconl07
2023-06-28 17:30
has joined #pact-php

carlosmmelo
2023-06-29 07:00
has joined #pact-php

prerit.jain849
2023-06-29 09:40
has joined #pact-php

sssona09
2023-06-29 11:12
has joined #pact-php

antonio.blandon
2023-06-29 20:40
has joined #pact-php

arjun
2023-07-02 04:23
has joined #pact-php

adwait.damle
2023-07-03 06:39
has joined #pact-php

stan.amsellem
2023-07-03 14:00
has joined #pact-php

cobookman
2023-07-03 21:14
has joined #pact-php

anshu.behera.02
2023-07-04 07:01
has joined #pact-php

adam.strawson
2023-07-04 13:24
has joined #pact-php

mathewsa
2023-07-04 15:20
has joined #pact-php

olopezs
2023-07-04 16:03
has joined #pact-php

tonis.ojandu
2023-07-05 06:51
@tonis.ojandu has left the channel

nithesh
2023-07-05 08:14
has joined #pact-php

andre.tartarelli
2023-07-05 11:26
has joined #pact-php

laura.huysamen
2023-07-05 12:38
has joined #pact-php

goatleyj11
2023-07-05 12:43
has joined #pact-php

lily.oconnell
2023-07-05 15:32
has joined #pact-php

mohanraj.r
2023-07-05 19:53
has joined #pact-php

ianlutz
2023-07-06 01:34
has joined #pact-php

rohit.m.patil27
2023-07-06 03:51
has joined #pact-php

timo.schwarzer
2023-07-06 06:18
has joined #pact-php

kuntol.banerjee
2023-07-06 06:54
has joined #pact-php

adebakre
2023-07-06 11:28
has joined #pact-php

rajkumarbapuvrs
2023-07-06 17:35
has joined #pact-php

jorge.carneiro
2023-07-07 09:43
has joined #pact-php

carlleferink
2023-07-07 12:01
has joined #pact-php

anju.ashk
2023-07-10 07:39
has joined #pact-php

rmahadeorathod
2023-07-10 09:48
has joined #pact-php

ekaterina.essina
2023-07-10 09:59
has joined #pact-php

arca.artem
2023-07-10 10:00
has joined #pact-php

connor.stevens
2023-07-10 11:35
has joined #pact-php

pgeurtsen
2023-07-11 07:30
has joined #pact-php

rjurca
2023-07-11 08:22
has joined #pact-php

frederic.vaugeois
2023-07-11 14:12
has joined #pact-php

marko.lamberg
2023-07-11 15:27
has joined #pact-php

lshilling
2023-07-12 09:31
has joined #pact-php

rudydc
2023-07-12 17:53
has joined #pact-php

wesley.newcomb
2023-07-13 15:54
has joined #pact-php

joris.vaneijden
2023-07-14 10:56
has joined #pact-php

joris.vaneijden
2023-07-14 10:58
@joris.vaneijden has left the channel

tushar.adsul223
2023-07-14 15:29
has joined #pact-php

yousafn
2023-07-14 17:23
:elephant: PHP friends - A present for Friday. Release 9.0.0 is out ? ARM64 for both Linux & MacOS is now natively supported by Pact PHP ? Linux Support for x86 platforms (32-bit) has been dropped ? The ruby standalone now runs the latest ruby 3.2.2 (big bump from a deprecated Ruby 2.4) ? Plus a few other fixes and enhancements from the community and maintainers. ? The CI Pipeline has dependabot hooked up, (its still a little bit flaky) ? Support for PHP 7.4 has been dropped. You should be on 8 by now though, surely :wink: Whats next in store? Oh Hi FFI :blobwave: https://github.com/pact-foundation/pact-php/issues/262

francisco.almeida
2023-07-17 11:35
has joined #pact-php

mike.lovely
2023-07-17 12:12
has joined #pact-php

mike.lovely
2023-07-17 12:36
Hello. I'm trying out pact for the first time and I can't seem to get a basic example working. I am getting: ```PhpPact\Standalone\Exception\HealthCheckFailedException: Failed to make connection to Mock Server in 100 attempts``` Here is my test setup: ```private \PhpPact\Standalone\MockService\MockServer $mockServer; private \PhpPact\Standalone\MockService\MockServerEnvConfig $config; public function setUp(): void { $this->config = new \PhpPact\Standalone\MockService\MockServerEnvConfig(); $this->config->setCors(true); $this->config->setLog('file.log'); $this->mockServer = new \PhpPact\Standalone\MockService\MockServer($this->config); $this->mockServer->start(); } public function tearDown(): void { // Stop the Pact Mock Server $this->mockServer->stop(); }``` I would paste the whole test but this fails during the set-up even before I get to the test. Not sure what to try. This is running locally on PHP 8.2 but also fails when running on PHP 8.1 via a docker container. Is there something obvious (probably) I am missing here? Here is my phpunit.xml ```<?xml version="1.0" encoding="UTF-8"?> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" bootstrap="tests/bootstrap.php" executionOrder="depends,defects" beStrictAboutOutputDuringTests="true" failOnRisky="true" failOnWarning="true"> <testsuites> <testsuite name="Contract"> <directory>./tests/contract/</directory> </testsuite> </testsuites> <php> <env name="PACT_MOCK_SERVER_HOST" value="localhost"/> <env name="PACT_MOCK_SERVER_PORT" value="7200"/> <env name="PACT_CONSUMER_NAME" value="ExampleOne"/> <env name="PACT_PROVIDER_NAME" value="ExampleAPI"/> </php> <coverage> <report> <clover outputFile="clover.xml"/> </report> </coverage> </phpunit>```

yousafn
2023-07-17 12:43
Hey Mike, What os/arch are you running on, and what docker image have you tried? If you drop into the pact-php repo and do `composer install` / `composer test` does that run for you?

kyam.harris_pact
2023-07-17 12:51
has joined #pact-php

drettie
2023-07-17 13:23
has joined #pact-php

mburns
2023-07-17 13:24
has joined #pact-php

mike.lovely
2023-07-17 14:33
Hey @yousafn. I can run composer test locally (osx). I get a timeout eventually: ```> phpunit --debug -c example/phpunit.all.xml PHPUnit 9.6.10 by Sebastian Bergmann and contributors. Test 'PhpPactTest\Broker\Service\BrokerHttpClientTest::testAllConsumerUrlsAreExtractedCorrectly' started Test 'PhpPactTest\Broker\Service\BrokerHttpClientTest::testAllConsumerUrlsAreExtractedCorrectly' ended Test 'PhpPactTest\Consumer\InteractionBuilderTest::testSimpleGet' started [2023-07-17T14:25:49.583843+00:00] server.debug: start background command: /app/src/PhpPact/Standalone/Installer/Model/../../../../../bin/pact-ruby-standalone/bin/pact-mock-service service --consumer='someConsumer' --provider='someProvider' --pact-dir='./example/output//' --pact-file-write-mode=overwrite --host=localhost --port=7200 --cors=true --pact-specification-version=2.0.0 [] [] [2023-07-17T14:25:49.776588+00:00] server.debug: started process pid=35 [] [] Test 'PhpPactTest\Consumer\InteractionBuilderTest::testSimpleGet' ended Stopping Process Id: 35 Test 'PhpPactTest\Consumer\InteractionBuilderTest::testPostWithBody' started [2023-07-17T14:29:12.398424+00:00] server.debug: start background command: /app/src/PhpPact/Standalone/Installer/Model/../../../../../bin/pact-ruby-standalone/bin/pact-mock-service service --consumer='someConsumer' --provider='someProvider' --pact-dir='./example/output//' --pact-file-write-mode=overwrite --host=localhost --port=7200 --cors=true --pact-specification-version=2.0.0 [] [] [2023-07-17T14:29:12.409379+00:00] server.debug: started process pid=46 [] [] The following exception is caused by a process timeout Check https://getcomposer.org/doc/06-config.md#process-timeout for details In Process.php line 1204: The process "phpunit --debug -c example/phpunit.all.xml" exceeded the timeout of 300 seconds. test [--dev] [--no-dev] [--] [<args>...]```

mike.lovely
2023-07-17 14:35
Sorry, not locally! Actually I am using a docker image to do this: ```docker run --rm --interactive --tty --volume $PWD:/app composer test```

yousafn
2023-07-17 15:30
which docker image? is it alpine based at all?

yousafn
2023-07-17 15:31
If you can create a repro repo, happy to take a look

mike.lovely
2023-07-17 16:15
Thanks :slightly_smiling_face: I ran the above using the official composer image: https://hub.docker.com/_/composer


amit.jadhav
2023-07-18 06:19
has joined #pact-php

aljaz.klanecek
2023-07-18 08:58
has joined #pact-php

amitw
2023-07-18 15:15
has joined #pact-php

fkelly
2023-07-18 17:28
has joined #pact-php

yousafn
2023-07-18 18:05
Hey @tien.xuan.vo, Managed to get some time to spend on pact-php, over the last few days, have a PR targeting the `ffi` branch, there are some comments in there for you regarding whether you want to raise your own PR with the consolidated changes :slightly_smiling_face: Thanks again for all your amazing contribution efforts

phananhdung104
2023-07-18 18:28
has joined #pact-php

amitw
2023-07-18 19:31
@amitw has left the channel

matt.fellows
2023-07-18 22:56
I?ve been watching all of the activity, and it?s like being at the centre of a tornado :tornado:

gurubabu.jampala
2023-07-19 01:02
has joined #pact-php

mike.lovely
2023-07-19 07:51
Ah, yes. This has worked! Thank you so much :smile:

yousafn
2023-07-19 08:09
saweet

a.kravchenko357
2023-07-19 11:03
has joined #pact-php

mike.lovely
2023-07-19 13:02
@yousafn Is there anything I need to do in particular to get my output file to be a collection of interactions? At the moment, each test seems to be overwriting the previous. I thought maybe using the `<extension class="PhpPact\Consumer\Listener\PactTestListener">` in my phpunit.xml but that doesn't seem to work with my version of phpunit (9.5.28). At the end of each test should I be calling $builder->writePact() or finalize() or neither? I'm not using pact-broker just yet. I am building up to that. I'm still just trying to get a poc working here.

mike.lovely
2023-07-19 13:13
Ah, hold on. I am now seeing the setPactFileWriteMode method!

yousafn
2023-07-19 13:17
was about to mention that and great, starting a poc without the broker is a great first step :+1:

thiagotrinta
2023-07-19 20:00
has joined #pact-php

lotem.dagan
2023-07-20 10:48
has joined #pact-php

lotem.dagan
2023-07-20 10:49
@lotem.dagan has left the channel

cmesyngi
2023-07-20 20:56
has joined #pact-php

alex.makdessi
2023-07-21 07:55
Hello @yousafn, except from the PHP7.4 support dropped, is there any migration guide from pact8 to pact9 ?

alex.makdessi
2023-07-21 08:11
nvm, I found this file: https://github.com/pact-foundation/pact-php/blob/966934c06a968ef52d9c3abde949654dc81e86a3/UPGRADE-9.0.md :slightly_smiling_face: But it's not yet on 9.0

yousafn
2023-07-21 09:19
hello, that is for a different branch with the pact ffi. 9.0.0 should be largely a no op i think for your upgrade as long as you aren?t on php 7 or using linux 32bit

alex.makdessi
2023-07-21 09:19
Ok thank you, i'll give it a try today :+1:

alan.barker
2023-07-21 09:47
has joined #pact-php

vijaya.balla.external
2023-07-21 15:06
has joined #pact-php

dennis1125dennis
2023-07-22 02:31
has joined #pact-php

muhammedalimutlu
2023-07-23 18:40
has joined #pact-php

doug.hanke
2023-07-24 17:53
has joined #pact-php

sameswar.khuntia
2023-07-25 10:17
has joined #pact-php

michal.mirecki
2023-07-25 10:28
has joined #pact-php

jeremyjpark
2023-07-25 15:30
has joined #pact-php

chetana.mahangare
2023-07-25 15:58
has joined #pact-php

kwan
2023-07-25 18:49
has joined #pact-php

venkatesh.civic
2023-07-26 16:49
has joined #pact-php

bartlomiej
2023-07-26 18:06
has joined #pact-php

wongkoonwai
2023-07-27 03:14
has joined #pact-php

conrad.john
2023-07-27 08:37
has joined #pact-php

dale.wells
2023-07-27 11:24
@dale.wells has left the channel

ajit.kumar
2023-07-27 11:37
has joined #pact-php

marekurbanowicz
2023-07-27 12:40
has joined #pact-php

maciej.krakowiak
2023-07-27 13:28
has joined #pact-php

mateusz.luty
2023-07-27 13:29
has joined #pact-php

pact259
2023-07-27 23:19
has joined #pact-php

hetal.patel
2023-07-28 14:04
has joined #pact-php

thatrandybrown
2023-07-28 16:49
has joined #pact-php

michael072
2023-07-29 03:08
has joined #pact-php

selniumtrainer
2023-07-29 08:10
has joined #pact-php

raylincontact
2023-07-31 01:51
has joined #pact-php

ext-damian.rudzinski
2023-07-31 10:01
has joined #pact-php

rostas.laszlo.dev
2023-07-31 11:27
has joined #pact-php

anubhuti.shrivastava
2023-08-01 07:35
has joined #pact-php

pavikrish
2023-08-01 07:45
has joined #pact-php

yousafn
2023-08-01 14:50
cc @tien.xuan.vo as requested :+1:

arnoldsi
2023-08-01 15:09
has joined #pact-php

tien.xuan.vo
2023-08-02 07:35
Thank you

stefan.waldhauser
2023-08-02 13:45
has joined #pact-php

shadman.equebal140
2023-08-02 19:20
has joined #pact-php

aravind.pai
2023-08-03 07:06
has joined #pact-php

ganeshacse01
2023-08-03 08:10
has joined #pact-php

br.holanda15
2023-08-03 14:35
has joined #pact-php

abarkha1
2023-08-03 22:34
has joined #pact-php

boreyuk
2023-08-04 07:22
has joined #pact-php

evan196
2023-08-04 14:33
has joined #pact-php

marek.fexa
2023-08-06 08:36
has joined #pact-php

acemilyalcin
2023-08-06 16:55
has joined #pact-php

aniket.rane
2023-08-07 02:55
has joined #pact-php

antony
2023-08-07 08:11
has joined #pact-php

andreas.marcec.extern
2023-08-07 14:35
has joined #pact-php

jeffreykey
2023-08-07 17:44
has joined #pact-php

vaishali.rastogi
2023-08-08 12:29
has joined #pact-php

michael.knoll
2023-08-08 14:02
has joined #pact-php

michelle.he
2023-08-08 19:02
has joined #pact-php

mohammed.a.ezzedin501
2023-08-09 11:17
has joined #pact-php

jacopo
2023-08-09 15:34
has joined #pact-php

enrique519
2023-08-09 23:57
has joined #pact-php

sheyanr
2023-08-10 02:55
has joined #pact-php

rcalvo
2023-08-10 08:28
has joined #pact-php

endikaposadas
2023-08-10 08:40
has joined #pact-php

chinmaya.mishra
2023-08-10 10:05
has joined #pact-php

anderson.aeb
2023-08-10 12:37
has joined #pact-php

br.holanda15
2023-08-10 13:28
Hey guys, I'm trying to publish my contracts to `https://test.pactflow.io` as a test, but I got this error `PactBroker::Client::Hal::ErrorResponseReturned - Error making request to https://test.pactflow.io status=401` Does anyone know how to make it work to publish my contracts? I'm running this command inside my container: ``` docker run --rm \ -v /var/www/bff_freights/pacts:/pacts \ -e https://test.pactflow.io \ -e dXfltyFMgNOFZAxr8io9wJ37iUpY42M \ -e O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1 \ pactfoundation/pact-cli:latest \ publish \ /pacts \ --broker-base-url https://test.pactflow.io \ --consumer-app-version 1.0.0```

yousafn
2023-08-10 13:38
you need to name the env vars you are passing into docker PACT_BROKER_TOKEN=xyz

br.holanda15
2023-08-10 13:41
It worked, thanks a lot @yousafn

yousafn
2023-08-10 13:48
pleasure dude

poojarylatika1
2023-08-10 14:17
has joined #pact-php

sebastianmsandri
2023-08-10 16:01
has joined #pact-php

biancoc
2023-08-11 14:27
has joined #pact-php

svarakantham
2023-08-14 00:19
has joined #pact-php

carrm
2023-08-14 13:22
has joined #pact-php

jd.courtoy
2023-08-14 16:25
has joined #pact-php

br.holanda15
2023-08-14 19:04
Hey guys, It's me again, now I'm trying to run my contract test with other branch, but I got this error: ``` GuzzleHttp\Exception\ServerException: Server error: `GET http://localhost:7200/interactions/verification` resulted in a `500 Internal Server Error` response: ? Actual interactions do not match expected interactions for mock MockService``` I have pact installed in my composer.json, and my .env.test with the environments, what should i do?:thinking_face:

elenadoty
2023-08-14 20:01
has joined #pact-php

matt.fellows
2023-08-14 21:32
Is there a log file or more detail in the output?it should tell you what was wrong with your request It looks like the request doesn't match what you said

br.holanda15
2023-08-14 22:09
I added the PACT_LOG in my .env.test, but returned this error connection `PhpPact\Standalone\Exception\HealthCheckFailedException: Failed to make connection to Mock Server in 10 attempts.`

matt.fellows
2023-08-14 23:58
Try setting the host to `127.0.0.1` - sometimes `localhost` resolves to an IPv6 address

a.adeyeye.gr
2023-08-15 08:49
has joined #pact-php

br.holanda15
2023-08-15 12:05
Hmm, I changed to 127.0.0.1 , got the same error..I found in channel a similar problem, and I added this code to my Dockerfile ```ENV GLIBC_VERSION=2.35-r0 RUN apk --no-cache add gcompat bash \ && wget -O /etc/apk/keys/sgerrand.rsa.pub -q https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \ && wget -q https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk \ && apk --no-cache --force-overwrite add glibc-${GLIBC_VERSION}.apk``` Maybe that's not enough anymore :disappointed:

yousafn
2023-08-15 12:06
I am not sure pact-php 8.1 works with phpunit 10, the 9.x release explicitly had a PR that limited it to not working with 10.x

br.holanda15
2023-08-15 12:08
Ok, I'll try to downgrade the phpunit version,then I'll try to run pact again:thinking_face:

yousafn
2023-08-15 12:08
so this is running in a docker container with alpine? is it arm64 or amd64?

matt.fellows
2023-08-15 12:09
You can also try running the `pact-mock-service` command you see in that output manually, and seeing what happens. If it doesn?t start, it?s probably a good place to start debugging

yousafn
2023-08-15 12:10
https://github.com/pact-foundation/pact-ruby-standalone/issues/96#issuecomment-1528683353 glibc didn?t work for me installing directly, I used `gcompat` and `libccompat` Matts suggestion to run it from the bin folder directly is a good idea just to check the output outside of php and check the service can start up

br.holanda15
2023-08-15 12:15
Thanks, guys, I'm gonna try this suggestion and come back later to give feedback.

bas.plijnaer
2023-08-15 12:32
has joined #pact-php

liam.butler
2023-08-15 15:20
has joined #pact-php

marcocbarbieri
2023-08-15 22:47
has joined #pact-php

juandiegopalacio
2023-08-16 09:00
has joined #pact-php

br.holanda15
2023-08-16 13:07
Hey guys, I was debbuging and found the full message for the error. ```Actual interactions do not match expected interactions for mock MockService. Missing requests: POST /freights See standard out/err for details``` Where do I get this out/err in pact?

yousafn
2023-08-16 17:39
I think that just means to the terminal (stdout and stderr are outputs) that sounds like the mock server is working but your code under test didn?t make a request before the mock was verified, therefore it is saying it received no requests matching your interaction setup.

br.holanda15
2023-08-16 20:20
I added the request to mock server and It worked, by the way this step was at doc basic usage consumer too. Thanks guys. ``` $client = new Client(); $url = "http://{$config->getHost()}:{$config->getPort()}/freights"; $client->post($url, [ 'json' => $engineRequest, ]);```

matt.fellows
2023-08-16 21:55
> Hey guys, I was debbuging and found the full message for the error. what did you have to do to see that message? That?s the key thing a user would need to see to understand why their test failed, so it should hopefully be obvious. If it?s not, I think it should be fixed

t.vandenberk
2023-08-17 09:12
has joined #pact-php

jianbin.lin
2023-08-17 15:07
has joined #pact-php

artur.suhaniaka
2023-08-17 20:34
has joined #pact-php

aniruddhasingh.kushwa
2023-08-18 01:40
has joined #pact-php

parthiban.rajasekaran
2023-08-18 08:32
has joined #pact-php

gowthamgopal24
2023-08-18 09:52
has joined #pact-php

naimun.siraj
2023-08-18 16:50
has joined #pact-php

eugeniosaulo
2023-08-18 21:28
has joined #pact-php

pere.villega
2023-08-20 17:49
has joined #pact-php

navin.dhanaraj
2023-08-21 00:10
has joined #pact-php

br.holanda15
2023-08-21 13:50
I added a dd inside my GuzzleException in my vendor.

br.holanda15
2023-08-21 17:19
He guys, I'm trying to write pacts in my pacts folder with a mock-service container, the test runs sucessfully, but any pact file json is generated inside my folder, here is my container: ``` setup-mock-service: image: pactfoundation/pact-cli:latest container_name: pact-mock volumes: - /pacts:/pacts ports: - "7200:7200" command: mock-service --consumer openapi-freight-bff --provider ms-freight -p 7200 --host 0.0.0.0 --pact-dir /pacts networks: - openapi``` Am I missing any flag or config?

matt.fellows
2023-08-21 22:57
something is not right, as it wants a relative `./pacts` folder. Maybe the args aren?t coming in right?

eduardo.rodrigues
2023-08-22 08:05
has joined #pact-php

nickkeers
2023-08-22 08:35
has joined #pact-php

stan.amsellem
2023-08-22 09:36
@stan.amsellem has left the channel

christophe.laranjo
2023-08-22 17:34
has joined #pact-php

br.holanda15
2023-08-22 18:27
Hello guys, It'me again, one question, this doc https://github.com/pact-foundation/pact-php/#provider-verification is update ? Because I got an error from undefined method, and when I searched into VerifierConfig I could find any method..


justyna
2023-08-23 06:37
@justyna has left the channel

huthayfa
2023-08-23 08:10
has joined #pact-php

dsherwin
2023-08-23 09:20
has joined #pact-php

br.holanda15
2023-08-23 12:31
I found the error, I was using version 10.0 beta from pact-php, I think the stable version is 9.0.0, I changed it in my composer.json.Now I got a new error ashashahs, It seems the executable bin pact-provider-verifier does not exist.

yousafn
2023-08-23 12:53
the readme for the 10.x-beta in on the `ffi` branch. a composer install will download the standalone binaries as long as its enabled, it will ask you for the first time, to allow downloads (its a composer thing)

marcel.novak
2023-08-23 13:53
has joined #pact-php

davidm
2023-08-23 15:57
has joined #pact-php

br.holanda15
2023-08-23 16:44
Thanks, We are going to run composer install again:white_check_mark:

svmanikantakumar
2023-08-24 08:50
has joined #pact-php

eomeroff
2023-08-24 13:49
has joined #pact-php

riley.marzka
2023-08-24 17:47
has joined #pact-php

jared.anderson
2023-08-24 18:15
has joined #pact-php

br.holanda15
2023-08-24 20:16
Hey, I came back, ashahs. Now I installed the pact again via composer, but I got the same error, I visualized inside the vendor/pact-foundation/pact-php/pact/bin the binary, but somehow It didn't work, Is there any step that I missed?

timofeev1valeriy
2023-08-25 08:32
has joined #pact-php

kastala.nirosha
2023-08-25 09:17
has joined #pact-php

kkanova
2023-08-25 12:55
has joined #pact-php

theteea
2023-08-25 13:18
has joined #pact-php

theteea
2023-08-25 13:26
@theteea has left the channel

charlan.bettiol
2023-08-25 16:32
has joined #pact-php

david.tu
2023-08-25 17:51
has joined #pact-php

viktor.stephanyk
2023-08-28 12:46
has joined #pact-php

arpit.gawande
2023-08-28 12:58
has joined #pact-php

alexander.doppelbauer
2023-08-28 17:52
has joined #pact-php

jayapriya.m
2023-08-29 00:22
has joined #pact-php

grnmeadow7
2023-08-29 03:27
has joined #pact-php

sayantini.basak
2023-08-29 10:02
has joined #pact-php

br.holanda15
2023-08-29 12:18
Solved this problem, I should have installed bash in my container, I was using only sh

yousafn
2023-08-29 12:24
Ahh so that is a known issue re: bash. I solved it in the traveling-ruby source, but the changes need to be applied to pact-ruby-standalone, for it to be fully sh compliant and not require bash https://github.com/pact-foundation/pact-ruby-standalone/issues/40 with guidance provided here https://github.com/pact-foundation/pact-ruby-standalone/wiki/Using-the-pact-ruby-standalone-with-Alpine-Linux-Docker https://docs.pact.io/docker#for-pact-implementations-that-use-the-ruby-shared-core-1 1. We can remove bash from the requirements, post resolving of the linked issue 2. It may be prudent to update the main branch for pact-php with a link to the alpine guidance links above. a. https://github.com/pact-foundation/pact-php/#installation

shayanadc
2023-08-29 18:19
has joined #pact-php

shayanadc
2023-08-30 11:47
I am writing my first contract test with Pact locally: ```$request = new ConsumerRequest(); $request ->setMethod('GET') ->setPath("person") ->addHeader('Accept', 'application/json'); $response = new ProviderResponse(); $response ->setStatus(200) ->addHeader('Content-Type', 'application/json') ->setBody([]); $config = new MockServerEnvConfig(); $builder = new InteractionBuilder($config); $builder->given("list of person") ->uponReceiving('A get request to /person/{id}') ->with($request) ->willRespondWith($response); $this->assertTrue($builder->verify());``` After running Phpunit, I get this error : `GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: person (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)` it seems my connection with Pact broker on my local is not established but I check my connection and everything seem fine

matt.fellows
2023-08-30 11:52
I think `->setPath("person")` should be `->setPath("/person")`

matt.fellows
2023-08-30 11:53
but it?s complaining about a host so not sure about that

shayanadc
2023-08-30 11:57
How can I check my pack broker on my local I have access to http://localhost:1234/ but the response for person is: ```{"message":"No interaction found for GET /person","interaction_diffs":[{"description":"A get request to /person/{id}","provider_state":"list of person","headers":{"Accept":{"EXPECTED":"application/json","ACTUAL":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"}}}]}```

matt.fellows
2023-08-30 11:57
I think you?re misunderstanding how it works

matt.fellows
2023-08-30 11:58
for local pact tests, there is no broker. 1. Write and execute consumer test (produces pact file) 2. Publish pact file to broker 3. Verify pact tests with provider (pulls pacts from broker)

matt.fellows
2023-08-30 11:58
you?re doing step (1) here

matt.fellows
2023-08-30 11:59
the error in the screen shot means you?re not sending any requests to the mock server

shayanadc
2023-08-30 12:00
it is not possible to Publish Pact file to local broker?

matt.fellows
2023-08-30 12:01
it is, but localhost:1234 is not a pact broker (it looks like the pact mock service)

shayanadc
2023-08-30 12:02
could you refer the documentation to follow the steps

matt.fellows
2023-08-30 12:03
howtolearn

2023-08-30 12:03
Here are a number of useful hands-on labs that teach all of the key concepts: https://docs.pactflow.io/docs/workshops and https://docs.pact.io/implementation_guides/workshops

matt.fellows
2023-08-30 12:03
I?d honestly start with the tutorials on PactFlow if you?re not familiar. The JS in browser killercoda should get you across the concepts quickly

matt.fellows
2023-08-30 12:03
Did you get my DM about your account reset btw?

shayanadc
2023-08-30 12:04
Yes, I got it and I succeeded to logged in

shayanadc
2023-08-30 12:04
Thanks..

jack.jones9512
2023-08-30 15:49
has joined #pact-php

craftyqa
2023-08-30 16:54
has joined #pact-php

jean-baptiste.bronisz
2023-08-31 15:48
has joined #pact-php

razorangel
2023-08-31 18:41
has joined #pact-php

dsharma
2023-08-31 19:11
has joined #pact-php

eytan.hanig
2023-08-31 22:10
has joined #pact-php

eytan.hanig
2023-09-01 03:07
@eytan.hanig has left the channel

munitheja91
2023-09-01 13:14
has joined #pact-php

alvarado.kelvin
2023-09-02 12:48
has joined #pact-php

sautade
2023-09-04 01:23
has joined #pact-php

joshua.ellis
2023-09-04 04:51
has joined #pact-php

bbodoque.atsistemas
2023-09-04 10:21
has joined #pact-php

br.holanda15
2023-09-04 17:14
Hey guys, It's me again. Did you guys have any problem with the missed bin folder in Pact when downloading with composer ? I am trying to verify my contract stored in one Pact Broker, But when I start the command, the bin file is not found.

avanlent
2023-09-05 05:56
has joined #pact-php

br.holanda15
2023-09-05 14:12
I found the error, I should allow to download the plugins from dependecies in the composer install, But now I got an error from provider-states-setup-url. How could I "prepare/code" this state provider in my application? I found some https://github.com/mattermack/pact-php-example in doc but they are out of date..

callum.atkinson
2023-09-05 17:00
has joined #pact-php

emilie.bline
2023-09-05 22:27
has joined #pact-php

matt.fellows
2023-09-06 00:57
When setting up the testing of a provider you will also need to setup the management of these provider states. The Pact verifier does this by making additional HTTP requests to the `--provider-states-setup-url` you provide. This URL could be on the provider application or a separate one. Some strategies for managing state include: ? Having endpoints in your application that are not active in production that create and delete your datastore state ? A separate application that has access to the same datastore to create and delete, like a separate App Engine module or Docker container pointing to the same datastore ? A standalone application that can start and stop the other server with different datastore states So, TL;DR - you need to register a new route e.g. `/_pact/provider-states` that will receive requests from Pact during verification. In that route, you should do what is needed to setup the state


me1414
2023-09-06 12:37
has joined #pact-php

juantamosaitis2015
2023-09-06 13:24
has joined #pact-php

ali.tariq
2023-09-06 14:51
has joined #pact-php

anas.zakarneh
2023-09-06 15:04
has joined #pact-php

jvillars
2023-09-06 17:53
has joined #pact-php

kwongs
2023-09-08 01:45
has joined #pact-php

alicankarayelli
2023-09-08 10:43
has joined #pact-php

sgregory875
2023-09-08 12:23
has joined #pact-php

amagana
2023-09-08 22:40
has joined #pact-php

heverson.amorim
2023-09-09 10:43
has joined #pact-php

br.holanda15
2023-09-09 14:57
Hmm, so in this step I must implement an endpoint that returns the response registered in my contract that is stored in my Pact Broker? When I changed the provider-base-url to localhost:80 I didn't get this error, Is there an explanation for this situation? In this port, It's running an API with Docker.

matt.fellows
2023-09-11 02:20
Correct

matt.fellows
2023-09-11 02:21
the explanation is that, presumably, port `80` is where your API is running and the Pact test is able to communicate to port `80` and check that your endpoints match the contract

matt.fellows
2023-09-11 02:21
I?m confused as to why you?re confused :laughing:

vdlre1994
2023-09-11 05:55
has joined #pact-php

rware4
2023-09-11 10:16
has joined #pact-php

hdjikine
2023-09-11 13:55
has joined #pact-php

andrea.paschal
2023-09-11 16:48
has joined #pact-php

tigrandza
2023-09-12 03:14
@tigrandza has left the channel

olof.stalnacke
2023-09-12 05:31
has joined #pact-php

nvangari
2023-09-12 05:39
has joined #pact-php

br.holanda15
2023-09-12 11:50
I am confused about how to implement and endpoint if I decide to change my base provider url in the code, But I think I understand for now. ahshashas

br.holanda15
2023-09-12 11:51
Thanks Matt.

rksekar5
2023-09-12 12:30
has joined #pact-php

ying.li
2023-09-13 02:54
has joined #pact-php

david.hodnett
2023-09-14 18:06
has joined #pact-php

jonatan.bjork
2023-09-15 13:30
has joined #pact-php

jonatan.bjork_test1
2023-09-15 13:41
has joined #pact-php

you1
2023-09-15 13:41
has joined #pact-php

jonatan.bjork_test2
2023-09-15 13:42
has joined #pact-php

you1634
2023-09-15 13:43
has joined #pact-php

m_testnewinvite
2023-09-17 22:43
has joined #pact-php

georg.duemlein
2023-09-18 04:09
has joined #pact-php

georg.duemlein
2023-09-18 04:10
@georg.duemlein has left the channel

sam647
2023-09-18 14:37
has joined #pact-php

edward
2023-09-19 07:24
has joined #pact-php

dbc216
2023-09-19 14:17
has joined #pact-php

tan.k.h.usa
2023-09-20 00:31
has joined #pact-php

daniel.hyun.chae
2023-09-20 13:19
has joined #pact-php

jake.corn
2023-09-21 14:01
has joined #pact-php

karl980
2023-09-21 16:44
has joined #pact-php

doctormiguel
2023-09-22 14:31
has joined #pact-php

felipe.simoes702
2023-09-22 17:37
has joined #pact-php

suat.kose
2023-09-22 22:13
has joined #pact-php

marius.grigoriu
2023-09-23 15:33
has joined #pact-php

noahmcivor
2023-09-24 06:54
has joined #pact-php

marek19922209
2023-09-25 08:09
has joined #pact-php

corey_maynard
2023-09-25 20:07
has joined #pact-php

rammohan_mididoddi
2023-09-25 20:12
has joined #pact-php

kevin
2023-09-26 02:31
has joined #pact-php

michael.lemos1
2023-09-26 12:36
has joined #pact-php

sliu
2023-09-27 00:00
has joined #pact-php

ankush.hasani
2023-09-27 10:01
has joined #pact-php

kai
2023-09-27 15:31
has joined #pact-php

a.monteiro
2023-09-28 09:59
has joined #pact-php

ml210993
2023-09-29 05:12
has joined #pact-php

prempooon.hc
2023-09-29 11:35
has joined #pact-php

jaishankar.nedunchezh
2023-09-29 17:07
has joined #pact-php

devin.woods
2023-09-29 19:28
has joined #pact-php

vittorio.gue
2023-09-30 10:51
has joined #pact-php

honglu11
2023-10-01 16:47
has joined #pact-php

idd90i
2023-10-02 10:37
has joined #pact-php

jamie.weatherby
2023-10-02 13:11
@jamie.weatherby has left the channel

nathan
2023-10-03 00:43
has joined #pact-php

jonathan.ryding
2023-10-03 12:02
has joined #pact-php

corey_maynard
2023-10-03 20:24
@corey_maynard has left the channel

gabe.hollombe
2023-10-04 03:17
has joined #pact-php

pratyusha.boyapati
2023-10-04 08:35
has joined #pact-php

mateusz.socha
2023-10-04 10:41
has joined #pact-php

br.holanda15
2023-10-04 22:35
Hey guys, It's me again, I stuck in one situation. When I publish a new contract in my broker as a test, adding one input in request and other in response, when my provider verify the contract, I was expecting some error mentioning this inputs that my provider does not apply yet ( just to know, we are testing the flow in contract test), but instead I got this error : ``` "exception": { "class": "RSpec::Expectations::ExpectationNotMetError", "actualBody": { "message": "Error to get company simplify data" }, "differences": [ { "description": "Could not find key \"data\" (keys present are: message) at $" }``` But in my response there is a key `data` : ```{ "status": 201, "body": { "data": { "track_response": "track_response",THIS WAS THE INPUT ADDED``` Is this error generic or really reference to the key data in my response ?:thinking_face:

matt.fellows
2023-10-05 02:11
where are you getting this exception? This should be hidden from you in PHP. What do the logs say? (you should be able to generate a DEBUG log to file with what it actually got) according to the error though, clearly the response was not what you thought (see `actualBody`). What makes you think your API isn?t returning the error?

maja.vitaz
2023-10-05 10:37
has joined #pact-php

martindjk92
2023-10-05 13:05
has joined #pact-php

br.holanda15
2023-10-05 17:46
I got this from Pact-Broker when I runned the test, but I retried the test and It "worked", now It's returning the error mentioning the `track_response` . Thanks Matt.

james814
2023-10-05 20:24
has joined #pact-php

craig.kilpatrick
2023-10-06 00:33
has joined #pact-php

prabakaranplaced
2023-10-06 08:00
has joined #pact-php

likekeys
2023-10-06 14:22
has joined #pact-php

chris.odryna
2023-10-06 16:51
has joined #pact-php

rezaur.rahman
2023-10-06 17:39
has joined #pact-php

julie.laursen
2023-10-06 17:43
has joined #pact-php

pratibha.kachi
2023-10-06 20:02
has joined #pact-php

robert579
2023-10-06 20:22
has joined #pact-php

sbalaranganathan
2023-10-09 12:10
has joined #pact-php

henrik
2023-10-09 18:15
has joined #pact-php

johnkavadias
2023-10-10 09:37
has joined #pact-php

jose-antonio.cano
2023-10-10 16:21
has joined #pact-php

panagiotis.liaros
2023-10-11 10:15
has joined #pact-php

ananya
2023-10-11 10:38
has joined #pact-php

omar.sakka
2023-10-11 14:38
has joined #pact-php

brandon.king
2023-10-11 18:35
has joined #pact-php

sridhar.nayakwadi
2023-10-11 20:56
has joined #pact-php

saroja.bhogadhi
2023-10-11 20:58
has joined #pact-php

chris.paul
2023-10-12 15:54
has joined #pact-php

ryan.standley
2023-10-12 17:34
has joined #pact-php

joseph
2023-10-12 20:58
has joined #pact-php

laurie.green
2023-10-12 22:46
has joined #pact-php

nikesh1123
2023-10-13 10:32
has joined #pact-php

imthu55
2023-10-13 11:05
has joined #pact-php

dzianis_frydliand
2023-10-13 12:36
has joined #pact-php

john.maynard
2023-10-13 14:35
has joined #pact-php

cmuddam.testing
2023-10-15 06:46
has joined #pact-php

david.vadkerti.toth
2023-10-17 08:28
has joined #pact-php

shirley.houter
2023-10-17 08:52
has joined #pact-php

ruth.kurniawati
2023-10-17 20:02
has joined #pact-php

balaaji196
2023-10-18 10:46
has joined #pact-php

mpokala
2023-10-18 20:37
has joined #pact-php

hiroki.gota
2023-10-18 22:26
has joined #pact-php

mattisrobin
2023-10-18 22:37
has joined #pact-php

silvimasss
2023-10-18 23:43
has joined #pact-php

wanghedi88
2023-10-19 11:16
has joined #pact-php

sarah.diendorfer
2023-10-19 12:34
has joined #pact-php

ahmed.elakour
2023-10-19 12:35
has joined #pact-php

parmin.rock
2023-10-19 14:57
has joined #pact-php

victor.yusuf
2023-10-19 14:58
has joined #pact-php

luke.dove
2023-10-19 15:46
has joined #pact-php

lee.andrews
2023-10-19 15:52
has joined #pact-php

mitchellp
2023-10-19 16:06
has joined #pact-php

mickelback00
2023-10-19 22:25
has joined #pact-php

philip.buttinger
2023-10-20 10:36
has joined #pact-php

adrian.kosyra
2023-10-20 11:58
has joined #pact-php

dave.hooson
2023-10-20 15:13
has joined #pact-php

pavankumar.cse88
2023-10-20 17:58
has joined #pact-php

the.m.bjorklund
2023-10-21 21:06
has joined #pact-php

thepiesaresquared
2023-10-22 09:58
has joined #pact-php

vasile.vetisan
2023-10-22 17:50
has joined #pact-php

sartom1994
2023-10-22 18:52
has joined #pact-php

rebecca.fulton
2023-10-23 09:27
has joined #pact-php

joao.jesus
2023-10-23 10:20
has joined #pact-php

kai.moseley
2023-10-23 10:47
has joined #pact-php

br.holanda15
2023-10-23 18:53
Hey guys, What do you mean when said "This feature is preliminary as the Pact community as a whole is flushing this out." at doc. Is there any plan to remove message support to Pact PHP? Another question, when said "Both the provider and consumer side make heavy use of lambda functions.", if I want to test my apps that implement event-driven, Why should I specifically use lambda function? Because for HTTP synchronous requests I add my contract test like one unit test. I got confused in that part.

gunarajs
2023-10-23 19:23
has joined #pact-php

ctrando
2023-10-23 21:14
has joined #pact-php

thibault.alix
2023-10-23 22:29
has joined #pact-php

matt.fellows
2023-10-23 23:53
That should be updated. It?s certainly stable. > Why should I specifically use lambda function? Because for HTTP synchronous requests I add my contract test like one unit test. I got confused in that part. if you think about this, it will make sense. With HTTP, it?s a single standard - so a mock service for it and a mock client for it is easy to create in Pact. With messages, there are literally thousands of protocols and standards. Pact could not possibly create a reliable mock server/client for all of them. So we need to abstract this away. see https://docs.pact.io/getting_started/how_pact_works#non-http-testing-message-pact for how it works. cc: @tien.xuan.vo

kwapisz.bartosz
2023-10-24 08:38
has joined #pact-php

btacca
2023-10-24 12:02
has joined #pact-php

anton.l.petersson
2023-10-24 13:54
has joined #pact-php

2023-10-24 16:18
This message was deleted.

jowhalen13
2023-10-24 16:27
has joined #pact-php

tanyagorn.benjaprompa
2023-10-25 08:09
has joined #pact-php

benguizat
2023-10-25 14:04
has joined #pact-php

lepdiana01
2023-10-25 14:38
@matt.fellows would you happen to know?

lepdiana01
2023-10-25 16:14
Also, I'm running this in a docker container.

br.holanda15
2023-10-25 17:39
Did you add the config for test in any .env file ? Adding the port and host for the test. :thinking_face:

br.holanda15
2023-10-25 17:46
I think I've got the reason why we should abstract the technology and the implementation to focus on the content of the message that we will consume or produce.

br.holanda15
2023-10-25 18:41
But looking forward to the example in pact-php. First, we start the `$builder` passing the `self::$config` that we created in our `setUpBeforeClass()`. Then we create the `$contents` which I guess It's the content of the message that we suppose we will consume, and we create our `$metadata` that represents a kind of name of _queue, topic, routing_key_, depending on which technology we are using in *event-driven architecture.* Continuing, we instantianted our `$builder` passing `$metadata` and `$contents`. We have one part that is not clear to me about how it really works, creating our `$consumerMessage` and then attributing to `$callback` with its method that call consume the message ( Is it implementation, the Adapter part? ). Then the `$builder` executes the `setCallback()` and we verify in the end...I mean, suppose I have one method called `publish()` in one _*Interface PublisherInterface*_(Port), and one class with _*KafkaPublisher(*_Adapter_*)*_ implements this Interface, Should I pass this publish method in the place of 'ProcessText' like the example? And what about Pact Broker? Should we publish like HTTP use cause?

lepdiana01
2023-10-25 20:21
This is the linux error I'm receiving ```qemu-x86_64: Could not open '/lib64/1d-linux-x86-64.so.2': No such file or directory```

stan196
2023-10-25 23:42
has joined #pact-php

matt.fellows
2023-10-26 00:08
can you please share your fully dockerfile?

manalikhanna92
2023-10-26 07:09
has joined #pact-php

aaron_carey
2023-10-26 09:26
has joined #pact-php

ms.maheshhwari
2023-10-26 09:54
has joined #pact-php

ohisproperties2
2023-10-26 16:34
has joined #pact-php

anupama_enakula
2023-10-26 21:45
has joined #pact-php

roger.liu
2023-10-27 07:15
has joined #pact-php

senbaga.kumarsigamani
2023-10-27 16:12
has joined #pact-php

alejandro.ignacio
2023-10-27 17:42
has joined #pact-php

devendra.patil
2023-10-27 21:40
has joined #pact-php

joshua.ellis
2023-10-29 21:03
@bethskurrie Could we silence GitHub notifications to just notify of releases on this channel as well?

shenkesi.shiva
2023-10-30 06:57
has joined #pact-php

tien.xuan.vo
2023-10-30 08:08
yes, please!

guido.lenacota
2023-10-30 09:48
has joined #pact-php

yihong.wang
2023-10-30 10:01
has joined #pact-php

br.holanda15
2023-10-30 12:31
Hey guys, If there is someone who can clarify the flow of testing messages with PHP I would aprrecitate it, asahshasa :eyes:

tien.xuan.vo
2023-10-30 14:25
Hi, I'm Tien, I'm contributor of version 10 (not released yet). I'm not maintainer of version <=9, he is very busy. I'll try to answer this question from what I understand: > Should I pass this publish method in the place of 'ProcessText' like the example? I think the `publish` method is belong to provider side (publishing message to message broker). You shouldn't pass that method in place of 'ProcessText' in this example. This example test is only for consumer side (handling message that has been subscribed from message broker). > And what about Pact Broker? Should we publish like HTTP use cause? I think you should publish pact file to Pact Broker once the pact file is written (verify success).

br.holanda15
2023-10-30 20:44
Thanks, guys, I was changing the concept from the publisher/provider side, and now I understand Why in the consumer part we simulate the process with callback, basically It represents what you are going to do with the message that you received. Is that right? ashasha.

ruth.bassindale
2023-10-30 20:54
has joined #pact-php

ruth.bassindale
2023-10-30 20:56
@ruth.bassindale has left the channel

matt.fellows
2023-10-30 23:52
you got it!

tien.xuan.vo
2023-10-31 02:36
I would like to self-merge pull requests to `ffi` branch that has 1 approval to speed up development on that branch

tien.xuan.vo
2023-10-31 03:26
Cirrus CI: Failed to start an instance: FAILED_PRECONDITION: Monthly free compute limit exceeded!

tien.xuan.vo
2023-10-31 03:26
I think there are nothing I can do about it

joshua.ellis
2023-10-31 03:45
No, unfortunately there really isn't :disappointed: On the plus side, it's 31 October, so it should be resolved very soon!

sgavathe
2023-10-31 22:00
has joined #pact-php

cody.jenkins
2023-11-01 02:39
@cody.jenkins has left the channel

ntthaibk
2023-11-01 04:36
has joined #pact-php

rskilling
2023-11-01 10:23
has joined #pact-php

victor_do_val
2023-11-01 19:08
has joined #pact-php

james.corry
2023-11-01 19:23
has joined #pact-php

nicolas.cote-nolin
2023-11-02 12:30
has joined #pact-php

sivaganesh.sivakumar
2023-11-02 13:18
has joined #pact-php

id.akanksha26
2023-11-03 11:38
has joined #pact-php

prasant.iragavarapu
2023-11-03 15:06
has joined #pact-php

yagocre
2023-11-03 22:46
has joined #pact-php

steve.blomeley
2023-11-06 14:50
has joined #pact-php

ndomingues10
2023-11-07 10:14
has joined #pact-php

nswetha.reddy
2023-11-07 19:21
has joined #pact-php

br.holanda15
2023-11-08 12:08
Hello guys, I want to clarify one point. Can we use the PhpPact\Consumer\Matcher\Matcher inside the content in the `$contents->song` from our ConsumerMessage example? Because I don't know exactly what is the content, I am worried about the schema of the message, like the song attribute.

tien.xuan.vo
2023-11-08 12:32
I'm not sure about version <=9. I think you can. But I can be wrong. In version 10, in theory you can use almost any matching rules or generators in the message content. For metadata you can't (for now)

br.holanda15
2023-11-08 13:09
Thanks Tien :pray:

aparnakrishna1115
2023-11-08 14:55
has joined #pact-php

harry.talbot
2023-11-08 15:05
has joined #pact-php

daniel.phillips
2023-11-08 17:18
has joined #pact-php

yuliya.rahalski
2023-11-08 20:15
has joined #pact-php

olivier.picaud
2023-11-08 21:51
has joined #pact-php

matt.fellows
2023-11-08 22:50
yes you should be able to. Matchers should work in any body whether message or HTTP

joseenrique.garcia
2023-11-09 12:56
has joined #pact-php

ashish.patel5
2023-11-09 15:20
has joined #pact-php

cnguyen
2023-11-10 08:31
has joined #pact-php

nam.nguyen414
2023-11-10 12:35
has joined #pact-php

lewis
2023-11-10 16:33
has joined #pact-php

anna.lorenzi
2023-11-10 17:42
has joined #pact-php

nathan334
2023-11-10 18:34
has joined #pact-php

banghung859
2023-11-15 08:38
has joined #pact-php

ali
2023-11-16 04:50
has joined #pact-php

emmanuel
2023-11-16 09:40
has joined #pact-php

dan.corder
2023-11-16 11:37
has joined #pact-php

vikash.kumar.singh
2023-11-16 22:58
has joined #pact-php

barbara.szczygiel
2023-11-17 14:08
has joined #pact-php

maria.olivero
2023-11-17 16:57
has joined #pact-php

madhawa
2023-11-21 04:59
has joined #pact-php

pascal
2023-11-21 05:25
has joined #pact-php

srinu.innovatus
2023-11-21 08:09
has joined #pact-php

somya.khandelwal
2023-11-21 08:39
has joined #pact-php

ndruzhinina
2023-11-22 14:25
has joined #pact-php

jaspal.puri
2023-11-23 10:05
has joined #pact-php

ogbofjnr
2023-11-23 12:25
has joined #pact-php

patricio.dossantos_sl
2023-11-23 20:08
has joined #pact-php

martin.gallauner
2023-11-24 10:40
has joined #pact-php

aschaff
2023-11-24 15:27
has joined #pact-php

bruno.petkovic99
2023-11-25 13:55
has joined #pact-php

carlrconn
2023-11-27 02:22
has joined #pact-php

yi.wu
2023-11-27 08:10
has joined #pact-php

brian_worsham
2023-11-27 14:30
has joined #pact-php

jessie.eteng
2023-11-27 15:25
has joined #pact-php

crisciano.botelho
2023-11-27 18:57
has joined #pact-php

ajg.public
2023-11-27 21:44
has joined #pact-php

lukasz.lawicki
2023-11-28 10:06
has joined #pact-php

jawad.sefiani
2023-11-28 14:08
has joined #pact-php

elaine.silva
2023-11-28 17:50
has joined #pact-php

lukasz.lawicki
2023-11-29 06:54
@lukasz.lawicki has left the channel

tomasz.myszka
2023-11-29 14:21
has joined #pact-php

tom.willmott944
2023-11-29 14:44
has joined #pact-php

anna.nava
2023-11-29 20:56
has joined #pact-php

pasc.ther
2023-11-29 22:19
has joined #pact-php

joshua.ellis
2023-11-29 22:36
@bethskurrie Circling back to this if possible. Tien has been doing amazing work, but the notifications unfortunately drown out this channel with noise :disappointed:

awade
2023-11-30 13:49
has joined #pact-php

vspallas
2023-12-03 10:18
has joined #pact-php

nicholaspatrickshaw
2023-12-04 10:32
has joined #pact-php

malvine.logina
2023-12-04 11:52
has joined #pact-php

vinicius.gabriel
2023-12-05 13:59
has joined #pact-php

stasiekps
2023-12-05 15:13
has joined #pact-php

antal.tettinger
2023-12-05 15:50
has joined #pact-php

archaanaaa8
2023-12-06 07:19
has joined #pact-php

visaliparimi
2023-12-06 10:03
has joined #pact-php

indrani.r
2023-12-06 10:06
has joined #pact-php

frank.weitmann
2023-12-06 10:23
has joined #pact-php

venketeshvenky
2023-12-06 10:40
has joined #pact-php

kyle.r.shrader
2023-12-07 01:33
has joined #pact-php

ajay991610
2023-12-07 05:27
has joined #pact-php

marko.stevanovic
2023-12-07 10:01
has joined #pact-php

mahesh.manglani
2023-12-07 16:49
has joined #pact-php

gerard.molina
2023-12-07 17:01
has joined #pact-php

boyd.social
2023-12-07 17:52
has joined #pact-php

muhd_syamil.dzulkafta
2023-12-08 05:47
has joined #pact-php

omer.sucu
2023-12-08 10:04
has joined #pact-php

hermoine807
2023-12-08 12:04
has joined #pact-php

blake.norrish
2023-12-08 17:05
has joined #pact-php

robert.jelic
2023-12-10 23:02
has joined #pact-php

matt.fellows
2023-12-11 10:07
:clap: awesome work @tien.xuan.vo, so nice to have these kinds of feedback also :heart: https://github.com/pact-foundation/pact-php/issues/377

tien.xuan.vo
2023-12-11 10:10
:thankyou: I love that kind of feedback also. I will response with a thank later tonight

matt.fellows
2023-12-11 10:16
Motivation to continue the awesome work you?re doing mate!

pragna.reddy
2023-12-11 11:32
has joined #pact-php

oguzhannvarol
2023-12-11 14:13
has joined #pact-php

ryan.quinn
2023-12-11 17:57
has joined #pact-php

arnon
2023-12-12 09:01
has joined #pact-php

lewis.blackwood
2023-12-12 14:04
has joined #pact-php

ilie.cotiuga
2023-12-12 14:26
has joined #pact-php

remyjaume
2023-12-12 15:46
has joined #pact-php

amelie.frappier
2023-12-12 18:55
has joined #pact-php

flament.thom
2023-12-12 20:44
has joined #pact-php

ckbisk
2023-12-12 22:18
has joined #pact-php

sterankin
2023-12-13 10:57
has joined #pact-php

shane.bogdan
2023-12-13 12:06
has joined #pact-php

luis.nuno
2023-12-13 18:08
has joined #pact-php

raleigh.schickel
2023-12-13 23:15
has joined #pact-php

matt.fellows
2023-12-15 02:26
Thanks @lewiscowles for all of your support on the PHP upgrade :pray:

hataipat.sup
2023-12-15 05:26
has joined #pact-php

hakan.dilaver
2023-12-15 13:54
has joined #pact-php

eliranbardavid
2023-12-17 09:06
has joined #pact-php

anthony.trad
2023-12-17 12:30
has joined #pact-php

joshua.ellis
2023-12-18 03:31
@matt.fellows Is this something you could do? With all of Tien's activity, this channel is not very usable :disappointed:

matt.fellows
2023-12-18 04:02
let me see?

matt.fellows
2023-12-18 04:02
BTW we have two channels for Pact JS - #pact-js and #pact-js-development

matt.fellows
2023-12-18 04:03
If it makes sense, you could consider something similar

matt.fellows
2023-12-18 04:03
/github unsubscribe pact-foundation/pact-php


joshua.ellis
2023-12-18 04:04
Possible, though personally I don't see the use of a development channel (over, for example, just seeing the activity on GitHub). But others may use this differently

matt.fellows
2023-12-18 04:04
This should do the trick for now

joshua.ellis
2023-12-18 04:05
Is this going to silence releases as well?

matt.fellows
2023-12-18 04:05
yes, we can opt in to whatever we want now

joshua.ellis
2023-12-18 04:06
I think subscribing to release would be good, I don't think we need anything else for this channel :slightly_smiling_face:

matt.fellows
2023-12-18 04:06
/github subscribe pact-foundation/pact-php releases

2023-12-18 04:06
:white_check_mark: Subscribed to https://github.com/pact-foundation/pact-php. This channel will receive notifications for `issues`, `pulls`, `commits`, `releases`, `deployments`

matt.fellows
2023-12-18 04:07
hmm this command did not do what I expected it to do

matt.fellows
2023-12-18 04:08
/github unsubscribe pact-foundation/pact-php pulls

2023-12-18 04:08
This channel will receive notifications from https://github.com/pact-foundation/pact-php for: `issues`, `commits`, `releases`, `deployments`

matt.fellows
2023-12-18 04:08
/github unsubscribe pact-foundation/pact-php issues

2023-12-18 04:08
This channel will receive notifications from https://github.com/pact-foundation/pact-php for: `commits`, `releases`, `deployments`

matt.fellows
2023-12-18 04:08
/github unsubscribe pact-foundation/pact-php commits

2023-12-18 04:08
This channel will receive notifications from https://github.com/pact-foundation/pact-php for: `releases`, `deployments`

matt.fellows
2023-12-18 04:08
/github unsubscribe pact-foundation/pact-php deployments

2023-12-18 04:08
This channel will receive notifications from https://github.com/pact-foundation/pact-php for: `releases`

matt.fellows
2023-12-18 04:08
OK, I had to unsubscribe to the ones I didn?t want, rather than subscribe to the one I did

joshua.ellis
2023-12-18 04:08
hahaha, it certainly did not do what was on the box :laughing: I remember Beth having to do the manual unsubscribe for each as well

joshua.ellis
2023-12-18 04:08
Thanks!

matt.fellows
2023-12-18 04:08
no probs, good suggestion

lewiscowles
2023-12-18 10:23
@matt.fellows sorry, I'd asked that @tien.xuan.vo break down a large commit into more easily reviewable chunks.

lewiscowles
2023-12-18 10:24
@tien.xuan.vo you are truly the hero of Pact for PHP; I just wanted to publicly thank you for your patience; your willingness to make edits, or provide explanations, and for trying ideas. I Hope you and your loved ones have a great rest of the year!

lewiscowles
2023-12-18 10:26
All I've really done is respond, ad-hoc to requests. If anything I feel like I've been holding back @tien.xuan.vo who is the real deal.

m.mohammadi.se
2023-12-18 19:31
has joined #pact-php

lewis.foreman
2023-12-18 21:45
has joined #pact-php

matt.fellows
2023-12-18 21:56
No worries at all, totally reasonable suggestion given the huge amount of change going on. Thanks so much for reviewing, it is truly very much appreciated :pray:

lewiscowles
2023-12-19 11:08
Just seen this thread. The last one is particularly troubling as it shouldn't be possible once we only use Rust and normal PHP > The error code -1073741819 you're encountering, also known as 0xC0000005 or "Access Violation," is a common error in C and C++ programs. It indicates that *your program attempted to access memory that it was not allowed to access, resulting in a segmentation fault*.

eran.bergman560
2023-12-19 18:43
has joined #pact-php

tien.xuan.vo
2023-12-20 03:07
On version 10, I don't have these errors recently. But I got another error, once for a while: ```There was 1 error: 1) MatchersProvider\Tests\PactVerifyTest::testPactVerifyConsumer Symfony\Component\Process\Exception\ProcessTimedOutException: The process "'php' '-S' '127.0.0.1:7202' '-t' '/Users/runner/work/pact-php/pact-php/example/matchers/provider/tests/../public/'" exceeded the timeout of 60 seconds. ```

tom.dracz
2023-12-20 09:53
has joined #pact-php

lewiscowles
2023-12-20 10:39
Guessing that anywhere sub-processing is happening is liable to flakes.

lewiscowles
2023-12-20 10:39
This is part of why the switch to FFI has been so impactful. Not just faster, but avoiding sub-process calls.

ivan.gutowski-smith
2023-12-20 10:40
has joined #pact-php

nicolas.vaquero
2023-12-20 11:31
has joined #pact-php

emailmvj
2023-12-20 16:18
has joined #pact-php

noelmccrory
2023-12-21 12:31
has joined #pact-php

fajfer.pawel
2023-12-21 13:39
has joined #pact-php

praful.poudel
2023-12-21 13:44
has joined #pact-php

pratyush.jaiswal88
2023-12-23 16:45
has joined #pact-php

grzegorz.v.bobrowski
2023-12-24 02:37
has joined #pact-php

tien.xuan.vo
2023-12-25 14:43
Merry Christmas! Thank Yousaf, Josh and Lewis for reviewing the code.

elias.coelho
2023-12-27 17:52
has joined #pact-php

tomer
2023-12-28 21:52
has joined #pact-php

joshua.ellis
2023-12-28 22:14
And so many thanks to yourself for all of the work you've been doing! Hope you have a great Christmas, and wishing you all the best for the new year!

christopher316
2024-01-02 20:10
has joined #pact-php

matt.pichette
2024-01-02 20:26
has joined #pact-php

ocean.razafiarison
2024-01-03 08:57
has joined #pact-php

salmaan60
2024-01-03 20:14
has joined #pact-php

sam.huang1
2024-01-04 03:20
has joined #pact-php

ratnajenisha
2024-01-04 04:04
has joined #pact-php

markkellett
2024-01-04 18:27
has joined #pact-php

varghesevarampi
2024-01-05 02:10
has joined #pact-php

lbrndmrcr
2024-01-05 11:52
has joined #pact-php

mcarballido17
2024-01-05 20:12
has joined #pact-php

yonahlipman
2024-01-07 04:00
has joined #pact-php

x1destory
2024-01-07 19:21
has joined #pact-php

christopher.tonog
2024-01-08 18:53
has joined #pact-php

yousafn
2024-01-09 08:04
dude - christmas release :christmas_tree: nice! taking a leaf out of rubies book! thank you for absolutely smashing it this year, hope you?ve enjoyed the journey

harshad.rayunipet
2024-01-09 08:06
has joined #pact-php

yousafn
2024-01-09 08:08
so kind, and I fully agree. We are appreciative for your really thorough reviews, and suggestions. It makes me well happy seeing everyone so supportive and enthusiastic about helping others

kumar.vas85
2024-01-09 09:50
has joined #pact-php

shuo.diao
2024-01-09 23:54
has joined #pact-php

chris.speck
2024-01-10 02:52
has joined #pact-php

trevor.cook
2024-01-10 18:33
has joined #pact-php

meetbogireddyhere
2024-01-11 16:20
has joined #pact-php

mahesh.damavarapu
2024-01-12 07:09
Hello All, Is there any examples on publishing contract to pactbroker in PHP. I see Publish related code base is available in https://github.com/pact-foundation/pact-php/blob/master/src/PhpPact/Standalone/Broker/Broker.php#L206.


david.garratt
2024-01-12 10:36
has joined #pact-php

noelmccrory
2024-01-12 13:33
@noelmccrory has left the channel

f.barril
2024-01-12 15:54
do you know any examples for messages ? in addition to those in the github

roger.vanburgh
2024-01-12 16:54
has joined #pact-php

f.barril
2024-01-12 18:05
Do I need the PactTestLinstener.php if I am using pact only for messages/events? I am not using for http requests

f.barril
2024-01-12 18:10
nother thing, I am getting this error ``` /app/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/Installer/Model/../../../../../bin/pact-ruby-standalone/bin/pact-provider-verifier: not found```

matt.fellows
2024-01-14 10:01
Sounds like a problem with your install. How have you set it up? Any errors on the logs when installing it? What OS is it? Is it running docker and Alpine?

f.barril
2024-01-14 18:13
I used the command on the repo , I am running inside a docker container. I am using a Mac m1

matt.fellows
2024-01-14 21:20
What command? Weekday docker container? How are you getting the code into the container? See howtoask

2024-01-14 21:21
Please see this page for some tips on how to ask for help to get the best response from the community https://docs.pact.io/help/how_to_ask_for_help

sarah.omalley
2024-01-15 10:03
has joined #pact-php

f.barril
2024-01-15 11:50
my bad I could have added more info sorry i am using a mac m1 I am running the following command ```php -d memory_limit=-1 -d xdebug.mode=off /app/vendor/bin/phpunit``` inside a docker container with php 8.2 no error logs when installing

lauren.flanagan
2024-01-15 13:51
has joined #pact-php

f.barril
2024-01-15 16:53
I've installed with the command available on repo ```$ composer require pact-foundation/pact-php --dev```

f.barril
2024-01-15 17:13
reinstalling fixed the problem :white_check_mark:

f.barril
2024-01-15 17:36
is there any way to increase logs to debug ? I am getting an error with no useful info

f.barril
2024-01-15 17:37
``` 1) Tests\Contract\PatientCreatedTest::testProcess Exception: Pact failed to validate. Exit code: 1 /app/vendor/pact-foundation/pact-php/src/PhpPact/Provider/MessageVerifier.php:187 /app/vendor/amphp/amp/lib/Coroutine.php:118 /app/vendor/amphp/amp/lib/Internal/Placeholder.php:149 /app/vendor/amphp/amp/lib/Deferred.php:53 /app/vendor/amphp/byte-stream/lib/ResourceInputStream.php:109 /app/vendor/amphp/amp/lib/Loop/Driver.php:119 /app/vendor/amphp/amp/lib/Loop/Driver.php:72 /app/vendor/amphp/amp/lib/Loop.php:95 /app/vendor/pact-foundation/pact-php/src/PhpPact/Provider/MessageVerifier.php:194 /app/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/ProviderVerifier/Verifier.php:162 /app/tests/contract/PatientCreatedTest.php:60```

yousafn
2024-01-15 20:01
I believe you can set the env var `PACT_LOGLEVEL` to control the output level

tunga
2024-01-15 23:16
has joined #pact-php

f.barril
2024-01-16 09:57
any idea what may be causing this error? ```PHPUnit 9.6.13 by Sebastian Bergmann and contributors. [2024-01-16T09:56:23.899503+00:00] server.debug: Starting [] [] [2024-01-16T09:56:23.900681+00:00] server.warning: Running in production with assertions enabled is not recommended; it has a negative impact on performance. Disable assertions in php.ini (zend.assertions = -1) for best performance or set the debug mode option to hide this warning. [] [] [2024-01-16T09:56:23.900848+00:00] server.warning: The 'xdebug' extension is loaded, which has a major impact on performance. [] [] [2024-01-16T09:56:23.902679+00:00] server.debug: Started [] [] [2024-01-16T09:56:23.902946+00:00] http://server.info: Listening on http://127.0.0.1:7201/ [] [] [2024-01-16T09:56:31.117009+00:00] server.warning: /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-1.63.0/lib/pact/provider/configuration/service_provider_dsl.rb:88:in `validate': Please set the app_version when publish_verification_results is true (Pact::Provider::Configuration::Error) from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-1.63.0/lib/pact/provider/configuration/service_provider_dsl.rb:80:in `finalize' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-support-1.19.0/lib/pact/shared/dsl.rb:66:in `build' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-1.63.0/lib/pact/provider/configuration/dsl.rb:10:in `service_provider' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-provider-verifier-1.36.1/lib/pact/provider_verifier/app.rb:83:in `configure_service_provider' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-provider-verifier-1.36.1/lib/pact/provider_verifier/app.rb:196:in `reset_pact_configuration' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-provider-verifier-1.36.1/lib/pact/provider_verifier/app.rb:180:in `verify_pact' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-provider-verifier-1.36.1/lib/pact/provider_verifier/app.rb:51:in `block in pacts_pass_verification?' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-provider-verifier-1.36.1/lib/pact/provider_verifier/app.rb:50:in `collect' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-provider-verifier-1.36.1/lib/pact/provider_verifier/app.rb:50:in `pacts_pass_verification?' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-provider-verifier-1.36.1/lib/pact/provider_verifier/app.rb:42:in `call' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-provider-verifier-1.36.1/lib/pact/provider_verifier/app.rb:35:in `call' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-provider-verifier-1.36.1/lib/pact/provider_verifier/cli/verify.rb:49:in `verify' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/thor-1.2.2/lib/thor/command.rb:27:in `run' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/thor-1.2.2/lib/thor/base.rb:485:in `start' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/vendor/ruby/3.2.0/gems/pact-provider-verifier-1.36.1/lib/pact/provider_verifier/cli/custom_thor.rb:17:in `start' from /app/vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/lib/app/pact-provider-verifier.rb:33:in `<main>' [] [] E 1 / 1 (100%)INFO: Fetching pacts for patient.created-provider from http://pact-broker:9292 with the selection criteria: Time: 00:07.310, Memory: 40.50 MB There was 1 error: 1) Tests\Contract\PatientCreatedTest::testProcess Exception: Pact failed to validate. Exit code: 1 /app/vendor/pact-foundation/pact-php/src/PhpPact/Provider/MessageVerifier.php:211 /app/vendor/amphp/amp/lib/Coroutine.php:118 /app/vendor/amphp/amp/lib/Internal/Placeholder.php:149 /app/vendor/amphp/amp/lib/Deferred.php:53 /app/vendor/amphp/byte-stream/lib/ResourceInputStream.php:109 /app/vendor/amphp/amp/lib/Loop/Driver.php:119 /app/vendor/amphp/amp/lib/Loop/Driver.php:72 /app/vendor/amphp/amp/lib/Loop.php:95 /app/vendor/pact-foundation/pact-php/src/PhpPact/Provider/MessageVerifier.php:219 /app/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/ProviderVerifier/Verifier.php:162 /app/tests/contract/PatientCreatedTest.php:62 ERRORS! Tests: 1, Assertions: 0, Errors: 1.```

f.barril
2024-01-16 09:57
I am using the provider example from pact-php

yousafn
2024-01-16 12:16
1) warning as publish verification results set but no version provided 2) looks like we are searching for patient.created-provider provider, but there are no consumer versions shown in your output so it looks to me as it cant find contracts to validate from the broker can you share the test and test setup?

sayan.adak
2024-01-16 12:21
has joined #pact-php

shobhit.agarwal
2024-01-16 12:22
has joined #pact-php

carmen.rietdijk
2024-01-16 12:53
has joined #pact-php

f.barril
2024-01-16 14:53
it's working now :pray: it was missing ```->setProviderBaseUrl(new Uri('http://localhost:7201')) // Url of the Provider to verify.```

nick116
2024-01-17 09:57
has joined #pact-php

miguel.heitor
2024-01-18 09:03
has joined #pact-php

anshita.tripathi
2024-01-18 11:07
has joined #pact-php

hiroshi.fujii
2024-01-18 14:50
has joined #pact-php

ebernardino
2024-01-19 04:08
has joined #pact-php

hegge.m
2024-01-19 09:40
has joined #pact-php

visser.r
2024-01-19 09:40
has joined #pact-php

dcrivella
2024-01-21 23:51
has joined #pact-php

dmondejar
2024-01-22 03:39
has joined #pact-php

grzegorzstanek
2024-01-22 10:46
has joined #pact-php

yousafn
2024-01-23 11:35
nice work @tien.xuan.vo

francois.larouche1
2024-01-23 14:31
has joined #pact-php

sarah.souza
2024-01-23 15:24
has joined #pact-php

zachary.romano
2024-01-24 19:16
has joined #pact-php

ken.overgard
2024-01-24 19:32
has joined #pact-php

rama.ganapa
2024-01-24 21:13
has joined #pact-php

justin.gilroy
2024-01-24 21:46
has joined #pact-php

naveenkarkra
2024-01-24 23:36
has joined #pact-php

yangtao.ge
2024-01-25 11:07
has joined #pact-php

salman.bilalshah
2024-01-25 11:34
has joined #pact-php

sridhar.munendramani
2024-01-25 14:32
has joined #pact-php

scott.anderson
2024-01-25 15:05
has joined #pact-php

bala.kurakula
2024-01-25 17:21
has joined #pact-php

sarah.hand
2024-01-25 17:28
has joined #pact-php

corey.jewett
2024-01-25 18:48
has joined #pact-php

eddjlsh94
2024-01-26 09:41
has joined #pact-php

falkowski.b
2024-01-26 10:59
has joined #pact-php

yash.khade
2024-01-26 18:50
has joined #pact-php

joe.allen
2024-01-26 18:50
has joined #pact-php

andrew.voronin
2024-01-26 18:50
has joined #pact-php

richie.schramm
2024-01-26 18:55
has joined #pact-php

dsteinbach77
2024-01-26 23:23
has joined #pact-php

rachida_laghmami
2024-01-28 15:53
has joined #pact-php

hrushikesh.agrawal
2024-01-29 07:13
has joined #pact-php

santos.danallanbray
2024-01-29 10:50
has joined #pact-php

katie.andriacchi
2024-01-29 15:05
has joined #pact-php

darren.grove
2024-01-29 15:11
has joined #pact-php

michael.brandeis
2024-01-29 16:37
has joined #pact-php

niki.mahurin
2024-01-29 17:51
has joined #pact-php

arina
2024-01-29 21:48
has joined #pact-php

tomasz.perek
2024-01-30 12:19
has joined #pact-php

sofia
2024-01-30 17:12
has joined #pact-php

wesley.williams
2024-01-30 18:02
has joined #pact-php

j.sauret
2024-01-31 14:03
has joined #pact-php

michelle.ryals
2024-01-31 22:17
has joined #pact-php

jyothi.kaspa
2024-01-31 23:34
has joined #pact-php

patrika.patil
2024-02-01 16:41
has joined #pact-php

tim.willis
2024-02-01 16:44
has joined #pact-php

yogi.patel
2024-02-01 18:38
has joined #pact-php

sebbmoreno
2024-02-01 21:23
has joined #pact-php

cverma28
2024-02-02 10:30
has joined #pact-php

a.g.s.maxwell
2024-02-02 12:54
has joined #pact-php

t.mazelin
2024-02-02 23:33
has joined #pact-php

maeleeuxs
2024-02-03 10:20
has joined #pact-php

swaroopsonline
2024-02-04 02:44
has joined #pact-php

jose.silva
2024-02-04 14:45
has joined #pact-php

sonal3062000
2024-02-05 09:52
has joined #pact-php

lorenz.ammon082
2024-02-05 14:44
has joined #pact-php

patrick.barnes
2024-02-05 19:44
has joined #pact-php

andrew.kostka
2024-02-05 20:24
has joined #pact-php

allie
2024-02-05 20:25
has joined #pact-php

bryan.anderson
2024-02-05 21:18
has joined #pact-php

alec.abdul-rahim
2024-02-05 23:34
has joined #pact-php

f.barril
2024-02-06 10:59
Hi, any example/idea how I can access the git commit hash within the code? In JS was easy, I just used `git rev-parse HEAD` inside the package.json

matt.fellows
2024-02-06 11:10
Can you just do a similar thing with PHP?s `shell-exec` (or another comparable function): https://www.php.net/manual/en/function.shell-exec.php

f.barril
2024-02-06 11:48
How can i run pact-broker can-i-deploy? I am trying calling it directly inside a docker container with php 8 but it says `bash: pact-broker: command not found` . Do you have any example? I could not find any example in the github repo.

filip.olszewski
2024-02-06 12:00
has joined #pact-php

f.barril
2024-02-06 14:34
If I run `vendor/pact-foundation/pact-php/bin/pact-ruby-standalone/bin/pact-broker` it works

f.barril
2024-02-06 15:04
also, the can-i-deploy should be a script on composer.json, should be a php artisan command (if using laravel) ? what's the best practice?

amol.jose
2024-02-06 18:03
has joined #pact-php

matt.fellows
2024-02-06 22:31
Personally, I use docker and have it as a separate step in the pipeline

matt.fellows
2024-02-06 22:32
there is no ?best practice??, it really depends on how you like to setup your CI/CD practices. All of the `pact-broker` commands are separate to your test runs IMO, and should be run in a separate step

ryoshida
2024-02-07 01:47
has joined #pact-php

pallam.sudhasrinivas1
2024-02-07 13:21
has joined #pact-php

michal
2024-02-07 16:36
has joined #pact-php

f.barril
2024-02-08 10:19
I am trying to use the broker class, and when I run `$broker->canIDeploy()` I get the following error `Error Output: Control character error, possibly incorrectly encoded` even tough the verification was successful because I can see in the error trace. It fails on this line ```return \json_decode($runner->getOutput(), true, 512, JSON_THROW_ON_ERROR);``` of the `vendor/pact-foundation/pact-php/src/PhpPact/Standalone/Broker/Broker.php` class. The output that it's trying to decode is the result of the verification :arrow_down: ```"Computer says yes \o/ CONSUMER | C.VERSION | PROVIDER | P.VERSION | SUCCESS? | RESULT# ---------------------|------------|--------------------|------------|----------|-------- yyy | 33be842... | xxx | 9bf90f7... | true | 1 VERIFICATION RESULTS -------------------- 1. http://pact-broker:9292/pacts/provider/xxx/consumer/yyy/pact-version/19acd2d758b93bc65608b5f24f18034369bab954/metadata/Y3ZuPTMzYmU4NDI"...```

yousafn
2024-02-08 10:21
Hey @f.barril Interesting. can-i-deploy has a `--json` flag that can return the results as json, rather than the default table https://github.com/pact-foundation/pact_broker-client?tab=readme-ov-file#can-i-deploy Maybe it isn?t being passed. Assume this is pact-php v9?

f.barril
2024-02-08 10:30
this is my code, I am using v9 ```$config = new BrokerConfig(); $config->setBrokerUri(newUri(env('PACT_BROKER_BASE_URL'); $config->setPacticipant('xxx'); $config->setVersion('1.0.0'); $broker = new Broker($config); try { $result = $broker->canIDeploy();```


f.barril
2024-02-08 10:40
it works if I add the flag `'--output=json'` to the `canIDeploy` function. Do you want me to open a PR for this change?

yousafn
2024-02-08 10:40
yeah that would be awesome @f.barril


f.barril
2024-02-08 11:33
another thing, is there any way to use the `--latest` flag?

yousafn
2024-02-08 11:37
not sure within pact-php, some of the client libraries have wrappers around the pact-cli tools (which are likely to ultimately be deprecated from the client libs), but usually lag in terms of features so the recommendation is to use the pact-cli tools directly https://docs.pact.io/pact_broker/client_cli/readme#installation They will also be available in your pact-php installation with v9. `--latest` isn?t really recommended, it will print a large warning at you telling you that it is non deterministic and tell you that you should be providing two things ideally, a version number and an environment you wish to deploy to.

yousafn
2024-02-08 11:39
ahh pact-php is forcing you to set a version there in the can-i-deploy command, so you can?t just provide `--latest`, but I?m not sure if you pass it the environment, the interface hasn?t been updated I don?t believe, since the environments feature came out in the cli tools. you can with the cli tools, but with caveats that the tool with spit out :slightly_smiling_face:

f.barril
2024-02-08 13:17
ok thank you! any ETA for the PR to be released?

niels.schuette
2024-02-08 14:18
has joined #pact-php

yousafn
2024-02-08 14:28
I?ll leave it open overnight, in case there are any comments from others, otherwise I will look to get it out tomorrow

jeremy.buchmann
2024-02-09 00:11
has joined #pact-php

rachel.green
2024-02-09 00:15
has joined #pact-php

jj.guo
2024-02-09 00:33
has joined #pact-php

dipali.gulhane
2024-02-09 07:01
has joined #pact-php

manoj.chaudhari
2024-02-09 09:13
has joined #pact-php

martha.chambers
2024-02-09 16:15
has joined #pact-php

adonay.berhe
2024-02-09 16:52
has joined #pact-php

camilo.morales
2024-02-09 16:52
has joined #pact-php

jonathan.barker
2024-02-12 08:56
has joined #pact-php

tobiasroland
2024-02-12 10:48
has joined #pact-php

samantha.lam
2024-02-12 12:32
has joined #pact-php

yousafn
2024-02-12 13:04
cc: @f.barril

logi.ragnarsson
2024-02-12 15:22
has joined #pact-php

michal.patron
2024-02-13 10:41
has joined #pact-php

tomasz.fiechowski
2024-02-13 11:14
has joined #pact-php

coletaylor017
2024-02-13 19:50
has joined #pact-php

lachlan.austin
2024-02-13 22:44
has joined #pact-php

rejeesh.gangadharan
2024-02-14 00:55
has joined #pact-php

utku.kilincci01
2024-02-14 08:00
has joined #pact-php

ahmadlotfygamersfield
2024-02-14 14:38
has joined #pact-php

evan.hafers
2024-02-14 15:11
has joined #pact-php

f.barril
2024-02-14 16:43
do you have any consumer example for messages? I only found examples for API requests


wiktor2.karpinski
2024-02-15 09:31
has joined #pact-php

cae.vieira
2024-02-15 11:37
has joined #pact-php

m.barbosa
2024-02-15 13:54
has joined #pact-php

m.barbosa
2024-02-15 13:59
I'm trying to use the consumer for messages, my function expects to receive a class, but I'm getting a string. I'm using this example for my test. https://github.com/pact-foundation/pact-php/tree/master/example#consumer-tests-for-message-processing

m.barbosa
2024-02-15 14:03
```<?php declare(strict_types=1); namespace Tests\Contract\Consumer; use Exception; use App\Events\SubmittedEvent; use App\Listeners\SubmittedListener; use PhpPact\Consumer\MessageBuilder; use PhpPact\Standalone\PactConfigInterface; use PhpPact\Standalone\PactMessage\PactMessageConfig; use PHPUnit\Framework\TestCase; /** * Class SubmittedTest */ class SubmittedTest extends TestCase { private static PactConfigInterface $config; public static function setUpBeforeClass(): void { parent::setUpBeforeClass(); self::$config = (new PactMessageConfig()) ->setConsumer('api-consumer') ->setProvider('api-provider'); } public static function tearDownAfterClass(): void { parent::tearDownAfterClass(); // build out brokerHttpService as your example /* $brokerHttpService = new BrokerHttpClient(new GuzzleClient(), new Uri($pactBrokerUri)); $brokerHttpService->publishJson($json, $consumerVersion); $brokerHttpService->tag($this->mockServerConfig->getConsumer(), $consumerVersion, $tag); */ } /** * @throws \Exception */ public function testProcess() { $builder = new MessageBuilder(self::$config); $formKey = 'f100'; $submittedUUID = 'submittedUuid'; $kit = 'kit1000'; $contents = new SubmittedEvent([ 'form_key' => $formKey, 'submitted_uuid' => $submittedUUID, 'kit' => $kit ]); $metadata = []; $builder ->given('a new kit') ->expectsToReceive('a form submission event') ->withMetadata($metadata) ->withContent($contents); // established mechanism to this via callbacks $consumerMessage = new SubmittedListener(); $callback = [$consumerMessage, 'handleVersion1']; $builder->setCallback($callback); $builder->verify(); $this->assertTrue(true, 'Expects to reach this true statement by running verify()'); } }```

m.barbosa
2024-02-15 14:05
```<?php declare(strict_types=1); namespace App\Listeners; use App\Events\SubmittedEvent; use App\Models\Form; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Support\Facades\Log; final class SubmittedListener extends AbstractListener implements ShouldQueue { /** * @param SubmittedEvent $event */ public function handleVersion1(SubmittedEvent $event) { if (empty($event->kit) || empty($event->submittedUUID)) { return; } $form = Form::where('uuid', $event->submittedUUID)->first(); if ($form === null || !empty($form->kit)) { return; } Log::info(sprintf('Assign kit %s to patient %s.', $event->kit, $form->uuid)); $form->update([ 'kit' => $event->kit, ]); } }```

m.barbosa
2024-02-15 14:06
```formKey = $eventPayload['form_key']; $this->submittedUUID = $eventPayload['submitted_uuid']; $this->kit = $eventPayload['kit']; } }```

m.barbosa
2024-02-15 14:11
I received this error ```[2024-02-15T14:08:41.423121+00:00] server.debug: Process command: /app/vendor/pact-foundation/pact-php/src/PhpPact/Standalone/Installer/Model/../../../../../bin/pact-ruby-standalone/bin/pact-message reify '{"description":"a submission event","providerStates":[{"name":"a new kit","params":[]}],"contents":{"queue":"","formKey":"f100","submittedUUID":"submittedUuid","kit":"kit1000"}}' [] [] [2024-02-15T14:08:42.238957+00:00] server.debug: Exit code: 0 [] [] E Time: 00:00.848, Memory: 40.50 MB There was 1 error: 1) Tests\Contract\Consumer\SubmittedTest::testProcess TypeError: App\Listeners\SubmittedListener::handleVersion1(): Argument #1 ($event) must be of type App\Events\SubmittedEvent, string given, called in /app/vendor/pact-foundation/pact-php/src/PhpPact/Consumer/MessageBuilder.php on line 133```

f.barril
2024-02-15 15:37
do you have examples using matchers?

r_connolly
2024-02-15 20:22
has joined #pact-php

wally.yuen
2024-02-16 00:42
has joined #pact-php

matt.fellows
2024-02-16 05:40
I may be misunderstanding the PHP interface here, but it?s not going to be sending typed objects into your callback, it?s going to be sending in the JSON payload you gave it



david.montero
2024-02-16 10:29
has joined #pact-php

hristian.iliev
2024-02-16 10:37
has joined #pact-php

m.barbosa
2024-02-16 11:01
Thanks

f.barril
2024-02-16 12:01
it's not possible to have a callback that receives an instance of a class?

v-rybam-gri
2024-02-16 13:49
has joined #pact-php

msarayu1111
2024-02-16 13:49
has joined #pact-php

m.barbosa
2024-02-16 16:26
@matt.fellows

shivanirajebhosale16
2024-02-17 10:50
has joined #pact-php

logi.ragnarsson
2024-02-18 09:43
@logi.ragnarsson has left the channel

maciej.harapinski
2024-02-19 09:42
has joined #pact-php

d.madureira
2024-02-19 14:17
has joined #pact-php

d.madureira
2024-02-19 14:53
*[Could not determine PID]* I've been getting this error when trying to run my consumer test. The broker is running and the test is very similar to other test I already have (that works).

d.madureira
2024-02-19 14:54
For future reference, this problem can be solved by wrapping your callback with a function. Like this:

d.madureira
2024-02-19 16:37
*[Solution]* It turns out this was being caused by a string escaping problem. ```$builder = new MessageBuilder(self::$config); $builder ->given("an event's publishing") ->expectsToReceive("the event's payload") [...]``` When either of `given()` or `expectsToReceive()` methods are called with a string containing quotes (even if they are escaped), they throw completely unrelated errors.

d.madureira
2024-02-19 16:37
That said, I'm not sure if this is documented and it's me who's messing up or if things are actually misbehaving. If the latter is true please let me know, I might be able to help!

dpunna
2024-02-19 18:35
has joined #pact-php

michael.schmidt
2024-02-20 11:01
has joined #pact-php