beaker-puppet 0.13.1 → 0.13.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 931bc159fb35093627355861de11e6ba928278c4
4
- data.tar.gz: 137329258bd9f8fba9a461cf3a47fb21173dd565
3
+ metadata.gz: 32ce5196cb45a1b0dbcf67bc6be1dc34470c8f6f
4
+ data.tar.gz: ceb78a8b6820c970dbe3c76c08b9c57eb9a5fe7a
5
5
  SHA512:
6
- metadata.gz: 2e3a8c543cc7832b0a965128c34bcbf3ced982afdeb09f30478b3c9f967b3c6d29f4aad52fa09faac97dbb9523a0eed7e6bb0166d0c26914cf3a689d758a81b1
7
- data.tar.gz: 01b4ed4e6643c22e4ab17ade0fe9835b793a4c12fad21f72fd5fb2d0de5116a7b975234fece9cfa3184c68df22daab21e3bde8e33eb00a3ce3002f1163358073
6
+ metadata.gz: 11eb5ca8d2ff0fddcc499e3ebdc966b987ddf944a09ff2483535fdcc53ad0374c39738c877764b2a2a9ffc6b317a0f01b5e29108f6d7f566055df1de37b62e08
7
+ data.tar.gz: d72ebe97747ff116490368d423590e967e5ecec674b9059c7d58a8bf96c855c044860780e56f3d83ea9f89558e4a4e8074e9cc78b32b149a1fbbdd7b4fb729c8
@@ -726,13 +726,6 @@ module Beaker
726
726
  def stop_agent_on(agent, opts = {})
727
727
  block_on agent, opts do | host |
728
728
  vardir = host.puppet_configprint['vardir']
729
- agent_running = true
730
- while agent_running
731
- agent_running = host.file_exist?("#{vardir}/state/agent_catalog_run.lock")
732
- if agent_running
733
- sleep 2
734
- end
735
- end
736
729
 
737
730
  # In 4.0 this was changed to just be `puppet`
738
731
  agent_service = 'puppet'
@@ -757,6 +750,16 @@ module Beaker
757
750
  else
758
751
  on host, puppet_resource('service', agent_service, 'ensure=stopped')
759
752
  end
753
+
754
+ #Ensure that a puppet run that was started before the last lock check is completed
755
+ agent_running = true
756
+ while agent_running
757
+ agent_running = host.file_exist?("#{vardir}/state/agent_catalog_run.lock")
758
+ if agent_running
759
+ sleep 2
760
+ end
761
+ end
762
+
760
763
  end
761
764
  end
762
765
 
@@ -1,3 +1,3 @@
1
1
  module BeakerPuppet
2
- VERSION = '0.13.1'
2
+ VERSION = '0.13.2'
3
3
  end
@@ -73,6 +73,43 @@ MASTER_TEST_TARGET:
73
73
  Override the default master test target. Should only be used with
74
74
  TEST_TARGET, and is only intended to be used in CI. Defaults to
75
75
  #{DEFAULT_MASTER_TEST_TARGET}.
76
+
77
+ DEV_BUILDS_URL:
78
+ Override the url where we look for development builds of packages to test.
79
+ Defaults to https://builds.delivery.puppetlabs.net
80
+
81
+ NIGHTLY_BUILDS_URL:
82
+ Override the url where we look for nightly builds of packages to test.
83
+ Defaults to https://nightlies.puppet.com
84
+
85
+ RELEASE_STREAM
86
+ The release stream for the puppet family you want to test. This defaults to 'puppet',
87
+ which is the current latest release stream. Other options are currently published streams
88
+ like 'puppet5' or 'puppet6'. This is currently only used when accessing repos on
89
+ nightlies.puppet.com
90
+
91
+ SERVER_VERSION:
92
+ The version of puppetserver to test against. This defaults to 'latest' if unset.
93
+ When it defaults to latest, it will attept to pull packages from NIGHTLY_BUILDS_URL
94
+ from the RELEASE_STREAM repo.
95
+
96
+ FORK:
97
+ Used to build a github url. If unset, this defaults to 'puppetlabs'. This can be used to
98
+ point acceptance to pull a repo to test from a personal fork.
99
+
100
+ $project_FORK:
101
+ Similar to FORK, but project specific. If you have only one project (i.e., hiera) that you
102
+ wanted to test from a different fork then all the others, you could set HIERA_FORK=melissa,
103
+ you would get back 'https://github.com/melissa/hiera.git'.
104
+
105
+ SERVER:
106
+ Used to build a github url. If unset, this defaults to 'github.com'. This can be used to
107
+ pull a github repo from a unique server location.
108
+
109
+ $project_SERVER:
110
+ Similar to SERVER, but project specific. If you have only one project (i.e., hiera) that you
111
+ want to pull from a different server then all the others, you could set HIERA_SERVER=179.0.0.1,
112
+ and you would get back 'https://179.0.0.1/puppetlabs-hiera.git'.
76
113
  EOS
77
114
 
78
115
  namespace :ci do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-09 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec