Tien Vo
03/07/2023, 9:37 AMThe pact at BROKER_URL is being verified because the pact content belongs to the consumer version matching the following criterion:
* latest version from branch 'main' (1.0.0)
Verifying a pact between CONSUMER and PROVIDER
A get request to /marriages/{id}
Given A marriage with id 754992c7-c9b8-44d0-840d-9173497ba6e3 exists
Request Failed - One or more of the setup state change handlers has failed
A get request to /users/{id}
Given A user with id dcd79453-7346-4423-ae6e-127c60d8dd20 exists
Request Failed - One or more of the setup state change handlers has failed
Failures:
1) Verifying a pact between CONSUMER and PROVIDER Given A marriage with id 754992c7-c9b8-44d0-840d-9173497ba6e3 exists - A get request to /marriages/{id} - One or more of the setup state change handlers has failed
2) Verifying a pact between CONSUMER and PROVIDER Given A user with id dcd79453-7346-4423-ae6e-127c60d8dd20 exists - A get request to /users/{id} - One or more of the setup state change handlers has failed
There were 2 pact failures
I think this log is not affected by these 3 ways:
• $this->ffi->pactffi_init('PACT_LOGLEVEL');
I think only for mock server, do nothing for verifier
• $this->ffi->pactffi_init_with_log_level('off');
only print more log, can't disable
• $this->ffi->pactffi_logger_init();
& $this->ffi->pactffi_logger_attach_sink('stdout', $this->ffi->LevelFilter_Off);
& $this->ffi->pactffi_logger_apply();
doesn't work as well
Don't get me wrong, this log is very useful. But after I fix the problem in the log, I think I want the output a bit shorter when running the tests.