template-node-typescript@1.0.0 pact:verify /source
ts-node test/pact-verify
Pact verification options {
providerBaseUrl: 'http://localhost:3000',
pactBrokerUrl: 'http://pact-broker.tools',
_: [],
p: 'http://localhost:3000',
'provider-base-url': 'http://localhost:3000',
'$0': 'test/pact-verify',
provider: 'template-node-typescript',
providerVersion: '1.0.0',
publishVerificationResult: true
}
Starting server
{"level":30,"time":1616696000906,"pid":28,"hostname":"dev-node-typescript-private-1786a90d020-test-4mh75-pod-f6k2d","msg":"Initializing Jaeger Tracer with CompositeReporter(LoggingReporter,RemoteReporter) and RemoteSampler(serviceName=template-node-typescript)"}
Listening to http://localhost:3000
[2021-03-25 18:13:21.857 +0000] INFO (28 on dev-node-typescript-private-1786a90d020-test-4mh75-pod-f6k2d): pact@9.15.1: Verifying provider
[2021-03-25 18:13:21.873 +0000] INFO (28 on dev-node-typescript-private-1786a90d020-test-4mh75-pod-f6k2d): pact-node@10.11.9: Verifying Pacts.
[2021-03-25 18:13:21.876 +0000] INFO (28 on dev-node-typescript-private-1786a90d020-test-4mh75-pod-f6k2d): pact-node@10.11.9: Verifying Pact Files
[2021-03-25 18:13:35.364 +0000] WARN (28 on dev-node-typescript-private-1786a90d020-test-4mh75-pod-f6k2d): pact-node@10.11.9: Pact exited with code 1.
Error verifying provider Error: /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/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 /source in PATH, mode 042777
Error making request - SocketError getaddrinfo: Temporary failure in name resolution , attempt 1 of 3
Error making request - SocketError getaddrinfo: Temporary failure in name resolution , attempt 2 of 3
Error making request - SocketError getaddrinfo: Temporary failure in name resolution , attempt 3 of 3
/source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/ruby/lib/ruby/2.2.0/net/http.rb:879:in initialize': getaddrinfo: Temporary failure in name resolution (SocketError) from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/ruby/lib/ruby/2.2.0/net/http.rb:879:inopen'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/ruby/lib/ruby/2.2.0/net/http.rb:879:in block in connect' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/ruby/lib/ruby/2.2.0/timeout.rb:74:intimeout'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/ruby/lib/ruby/2.2.0/net/http.rb:878:in connect' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/ruby/lib/ruby/2.2.0/net/http.rb:863:indo_start'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/ruby/lib/ruby/2.2.0/net/http.rb:852:in start' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-1.57.0/lib/pact/hal/http_client.rb:55:inblock in perform_request'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-1.57.0/lib/pact/retry.rb:23:in until_true' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-1.57.0/lib/pact/hal/http_client.rb:49:inperform_request'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-1.57.0/lib/pact/hal/http_client.rb:24:in get' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-1.57.0/lib/pact/hal/link.rb:49:inget'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-1.57.0/lib/pact/pact_broker/fetch_pact_uris_for_verification.rb:53:in index' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-1.57.0/lib/pact/pact_broker/fetch_pact_uris_for_verification.rb:38:incall'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-1.57.0/lib/pact/pact_broker/fetch_pact_uris_for_verification.rb:34:in call' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-1.57.0/lib/pact/pact_broker.rb:18:infetch_pact_uris_for_verification'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.34.0/lib/pact/provider_verifier/aggregate_pact_configs.rb:45:in pacts_for_verification' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.34.0/lib/pact/provider_verifier/aggregate_pact_configs.rb:38:inpacts_urls_from_broker'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.34.0/lib/pact/provider_verifier/aggregate_pact_configs.rb:25:in call' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.34.0/lib/pact/provider_verifier/aggregate_pact_configs.rb:10:incall'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.34.0/lib/pact/provider_verifier/app.rb:200:in all_pact_urls' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.34.0/lib/pact/provider_verifier/app.rb:40:incall'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.34.0/lib/pact/provider_verifier/app.rb:34:in call' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.34.0/lib/pact/provider_verifier/cli/verify.rb:47:inverify'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/thor-0.20.3/lib/thor/command.rb:27:in run' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:ininvoke_command'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/thor-0.20.3/lib/thor.rb:387:in dispatch' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/thor-0.20.3/lib/thor/base.rb:466:instart'
from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.34.0/lib/pact/provider_verifier/cli/custom_thor.rb:17:in start' from /source/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.37/pact/lib/app/pact-provider-verifier.rb:33:in'
at ChildProcess. (/source/node_modules/@pact-foundation/pact-node/src/verifier.ts:272:55)
at Object.onceWrapper (events.js:422:26)
at ChildProcess.emit (events.js:327:22)
at ChildProcess.EventEmitter.emit (domain.js:467:12)
at maybeClose (internal/child_process.js:1048:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
at Process.callbackTrampoline (internal/async_hooks.js:131:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! template-node-typescript@1.0.0 pact:verify: ts-node test/pact-verify
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the template-node-typescript@1.0.0 pact:verify script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tekton/home/.npm/_logs/2021-03-25T18_13_35_487Z-debug.log
STEP-SONAR-SCAN
2021/03/25 18:13:36 Skipping step because a previous step failed
To Reproduce
Steps to reproduce the behavior:
Cluster on ROKS
Follow the "Deploy an app" with a typescript starter kit
Expected behavior
I thought this would just work.
Desktop (please complete the following information):
OS: macOS (but cluster on ROKS is where it happens)
Describe the bug Just following the "Deploy an app" with a starter kit. Using the typescript starter kit.
Pipeline runs but fails in test step.
I wonder if it is a problem because it is using localhost:3000? I'd normally use 0.0.0.0:8080.
Note there is also an error/warning "Insecure world writable dir /source in PATH, mode 042777", but I think it gets past that.
Logs:
STEP-VERIFY-PACT
2021/03/25 18:13:36 Skipping step because a previous step failed
To Reproduce Steps to reproduce the behavior:
Expected behavior I thought this would just work.
Desktop (please complete the following information):