Core binaries for pact-js, a Contract Testing Framework. NOTE: If you are looking to do Pact contract testing in node, you almost certainly want pact-js, not pact-node.
[ ] I have triple checked, that there are no unhandled promises in my code
[ ] I have set my log level to debug and attached a log file showing the complete request/response cycle
[ ] For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem
Expected behaviour
It should create a server that runs the Pact provider and test all the cases
Actual behaviour
it gives me the error below:
[2021-11-04 15:02:50.945 +0000] INFO (97114 on MAC-CA-BELFOER2): pact-node@10.14.0: Creating Pact Server with options:
{"consumer":"customer-signup-gateway-consumer","cors":true,"dir":"/Users/belfoer1/Documents/oss-ui/packages/apps/signup/server/pact/pacts","host":"127.0.0.1","log":"/Users/belfoer1/Documents/oss-ui/packages/apps/signup/server/pact/logs","pactFileWriteMode":"update","port":3000,"provider":"customer-sign-up","spec":2,"ssl":false,"timeout":30000}
[2021-11-04 15:02:51.720 +0000] ERROR (97114 on MAC-CA-BELFOER2): pact-node@10.14.0: Pact Binary Error: /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /Users/belfoer1/Library/Android in PATH, mode 040777
[2021-11-04 15:02:52.066 +0000] ERROR (97114 on MAC-CA-BELFOER2): pact-node@10.14.0: Pact Binary Error: /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/vendor/ruby/2.2.0/gems/pact-mock_service-3.9.0/lib/pact/mock_service/run.rb:75:in `initialize': Is a directory @ rb_sysopen - /Users/belfoer1/Documents/oss-ui/packages/apps/signup/server/pact/logs (Errno::EISDIR)
from /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/vendor/ruby/2.2.0/gems/pact-mock_service-3.9.0/lib/pact/mock_service/run.rb:75:in `open'
from /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/vendor/ruby/2.2.0/gems/pact-mock_service-3.9.0/lib/pact/mock_service/run.rb:75:in `open_log_file'
from /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/vendor/ruby/2.2.0/gems/pact-mock_service-3.9.0/lib/pact/mock_service/run.rb:69:in `service_options'
from /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/vendor/ruby/2.2.0/gems/pact-mock_service-3.9.0/lib/pact/mock_service/run.rb:37:in `mock_service'
from /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/vendor/ruby/2.2.0/gems/pact-mock_service-3.9.0/lib/pact/mock_service/run.rb:28:in `call'
from /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/vendor/ruby/2.2.0/gems/pact-mock_service-3.9.0/lib/pact/mock_service/run.rb:13:in `call'
from /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/vendor/ruby/2.2.0/gems/pact-mock_service-3.9.0/lib/pact/mock_service/cli.rb:32:in `service'
from /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/vendor/ruby/2.2.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
from /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/vendor/ruby/2.2.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/vendor/ruby/2.2.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
from /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/vendor/ruby/2.2.0/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
from /Users/belfoer1/Documents/oss-ui/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/app/pact-mock-service.rb:15:in `<main>'
[2021-11-04 15:02:52.080 +0000] WARN (97114 on MAC-CA-BELFOER2): pact-node@10.14.0: Pact exited with code 1.
[2021-11-04 15:02:52.080 +0000] INFO (97114 on MAC-CA-BELFOER2): pact-node@10.14.0: Removing Pact process with PID: 97235
I had an issue while trying to setup Pact provider when i try to run my tests here it follows
Software versions
Please provide at least OS and version of pact-js
10.14.0
v16.11.1
Issue Checklist
Please confirm the following:
Expected behaviour
It should create a server that runs the Pact provider and test all the cases
Actual behaviour
it gives me the error below:
Steps to reproduce
given code: