puppetlabs/puppetlabs-servicenow_cmdb_integration

PDK Unit Test is not working...

Closed this issue · 0 comments

PDK unit test cannot run ..

> bundle exec pdk test unit                                                                                                                                                         ░▒▓ ✔  2.7.8    04:13:27 PM   
pdk (WARN): This module is compatible with an older version of PDK. Run `pdk update` to update it to your version of PDK.
pdk (INFO): Using Ruby 2.7.8
pdk (INFO): Using Puppet 6.29.0
[✖] Preparing to run the unit tests.
[✔] Cleaning up after running unit tests.
pdk (ERROR): The spec_prep rake task failed with the following error(s):

Running tests against this machine !
============git clone --depth 1 git://github.com/puppetlabs/puppetlabs-facts.git spec/fixtures/modules/facts
============git clone git://github.com/puppetlabs/provision.git spec/fixtures/modules/provision
============git clone --depth 1 git://github.com/puppetlabs/servicenow_tasks.git spec/fixtures/modules/servicenow_tasks
============git clone --depth 1 git://github.com/puppetlabs/puppetlabs-puppet_agent.git spec/fixtures/modules/puppet_agent
============git clone --depth 1 git://github.com/puppetlabs/puppetlabs-stdlib.git spec/fixtures/modules/stdlib
Git remote for spec/fixtures/modules/facts has changed, recloning repository
Git remote for spec/fixtures/modules/puppet_agent has changed, recloning repository
Git remote for spec/fixtures/modules/translate has changed, recloning repository
Git remote for spec/fixtures/modules/stdlib has changed, recloning repository
Git remote for spec/fixtures/modules/provision has changed, recloning repository
Git remote for spec/fixtures/modules/servicenow_tasks has changed, recloning repository
Cloning into 'spec/fixtures/modules/translate'...
Cloning into 'spec/fixtures/modules/facts'...
Cloning into 'spec/fixtures/modules/provision'...
Cloning into 'spec/fixtures/modules/servicenow_tasks'...
Cloning into 'spec/fixtures/modules/puppet_agent'...
Cloning into 'spec/fixtures/modules/stdlib'...
fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Operation timed out

fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Operation timed out

#<Thread:0x00007f8ee062f798 /Users/valente/.pdk/cache/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:471 run> terminated with exception (report_on_exception is true):
/Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:197:in `clone_repo': Failed to clone git repository git://github.com/puppetlabs/puppetlabs-facts.git into spec/fixtures/modules/facts (RuntimeError)
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:365:in `download_repository'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:428:in `block (2 levels) in <top (required)>'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:316:in `block (2 levels) in download_items'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
#<Thread:0x00007f8ee062ddf8 /Users/valente/.pdk/cache/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:471 run> terminated with exception (report_on_exception is true):
/Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:197:in `clone_repo': Failed to clone git repository git://github.com/puppetlabs/provision.git into spec/fixtures/modules/provision (RuntimeError)
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:365:in `download_repository'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:428:in `block (2 levels) in <top (required)>'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:316:in `block (2 levels) in download_items'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Operation timed out

#<Thread:0x00007f8ee062d3a8 /Users/valente/.pdk/cache/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:471 run> terminated with exception (report_on_exception is true):
/Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:197:in `clone_repo': Failed to clone git repository git://github.com/puppetlabs/servicenow_tasks.git into spec/fixtures/modules/servicenow_tasks (RuntimeError)
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:365:in `download_repository'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:428:in `block (2 levels) in <top (required)>'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:316:in `block (2 levels) in download_items'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Operation timed out

#<Thread:0x00007f8ee062e988 /Users/valente/.pdk/cache/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:471 run> terminated with exception (report_on_exception is true):
/Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:197:in `clone_repo': Failed to clone git repository git://github.com/puppetlabs/puppetlabs-puppet_agent.git into spec/fixtures/modules/puppet_agent (RuntimeError)
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:365:in `download_repository'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:428:in `block (2 levels) in <top (required)>'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:316:in `block (2 levels) in download_items'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Operation timed out

#<Thread:0x00007f8ee0636700 /Users/valente/.pdk/cache/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:471 run> terminated with exception (report_on_exception is true):
/Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:197:in `clone_repo': Failed to clone git repository git://github.com/puppetlabs/puppetlabs-stdlib.git into spec/fixtures/modules/stdlib (RuntimeError)
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:365:in `download_repository'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:428:in `block (2 levels) in <top (required)>'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:316:in `block (2 levels) in download_items'
	from /Users/valente/.pdk/cache/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
rake aborted!
Failed to clone git repository git://github.com/puppetlabs/puppetlabs-stdlib.git into spec/fixtures/modules/stdlib
/Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:197:in `clone_repo'
/Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:365:in `download_repository'
/Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:428:in `block (2 levels) in <top (required)>'
/Users/valente/.pdk/cache/ruby/2.7.0/gems/puppetlabs_spec_helper-2.16.0/lib/puppetlabs_spec_helper/tasks/fixtures.rb:316:in `block (2 levels) in download_items'
/Users/valente/.pdk/cache/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
Tasks: TOP => spec_prep
(See full trace by running task with --trace)

pdk (FATAL): Failed to prepare to run the unit tests.

Expected Behavior

Show Passed tests.

Steps to Reproduce

Steps to reproduce the behavior:
see above