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