beaker-rspec 6.0.0 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWQ4MDM5MzU0ZmU3NDc4NWVlNDA3Zjg4YTRmZTJlNDEyNjczMjA1ZA==
4
+ MDFlMWEyNGI2ZGNiOTgxZjBjNTlhNjdlZjk3YTY5NTRkN2Q0NmUwMg==
5
5
  data.tar.gz: !binary |-
6
- Yjk5MDgzNzY2NDk3YjFhNTQ0MmNlNmEyYmQ5YjkyMjc4MDRhYThhMA==
6
+ ZGVmMDgxOWYxY2QwYzVhNzEyYmM5ZGVkNmQzMWI0MzQyZDA3YWY5MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGZiYzg0YzU2ZDBkNzJjZTliNjg4YTM2OTI5ZDY1OWUzOWE1YjIyYzEwYTQ5
10
- ZmU3ZjQzNDc5ODE5NTk1YzNmNjFlOTgzYjA4OWY2NDMyYTkxYjRiMjA3ZTM2
11
- ZWY3MWJkNmU1YWU0ZjA0MmZjNWIwOWE3MmFmOGFkMDE5ZGJmMDE=
9
+ YThlMjI2MWY2MDcyYzIxNDdkYjkzNGM0MjE1MTgwZmY0MWQ0MGIwZGIyYjJi
10
+ NzU0MTBhYWEzZDI0NWZlOGU5NDQ4NDcwMDgzMWQwMTg5ZDBlOTAwNGFkNGI5
11
+ ZjY0M2U2YWM1NTZlNTZkYjcxZjc1MzJjMDA0NTZhY2QxMDYxNGY=
12
12
  data.tar.gz: !binary |-
13
- N2Q2NDRkYjdiNGVjM2ZkMzQ0NjdhNTI2OWI4Zjk5ZGIyN2M5ODA2ZTlhYjBk
14
- Y2FhYmYxYTgzNjcxMjQ3MzU1NmIxZGUzNzg1NTAxMWIwMDNlYzlkYTViOTcy
15
- MTk3YWZkYTQ3MmViZTQwZmU5MTViZTQ0YjkxZDY0MmI3MDFhNDI=
13
+ MmM2MjRlNjZkMWNjNzUxMTk4YzEyMmI0NzZmYWMzYzdhNTgxMzdmZmFjYWUx
14
+ N2NjZGM2MGIxNDhkMGZjNWYxMjk1YWNlYTEyODBiNzU1MjEwMjk2OTU1YjRh
15
+ YjhiODdiZmNjMTFmM2ExZDg4ZTUxOGEwY2ZhNjBjMzc5YTljMzY=
data/.gitignore CHANGED
@@ -1,3 +1,6 @@
1
1
  Gemfile.lock
2
2
  .bundle
3
3
  *.swp
4
+ log
5
+ .vagrant
6
+ *.gem
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ before_install:
2
+ - gem --version
3
+ language: ruby
4
+ script: 'bundle exec gem build beaker-rspec.gemspec'
5
+ notifications:
6
+ email: false
7
+ rvm:
8
+ - 2.1.9
9
+ - 2.2.4
data/HISTORY.md CHANGED
@@ -1,6 +1,7 @@
1
- # default - History
1
+ # worker - History
2
2
  ## Tags
3
- * [LATEST - 24 Oct, 2016 (b02c1c50)](#LATEST)
3
+ * [LATEST - 29 Mar, 2017 (0197f39f)](#LATEST)
4
+ * [6.0.0 - 24 Oct, 2016 (77470480)](#6.0.0)
4
5
  * [5.6.0 - 24 Jun, 2016 (bc70fe5a)](#5.6.0)
5
6
  * [5.5.0 - 23 Jun, 2016 (a289ce27)](#5.5.0)
6
7
  * [5.4.0 - 9 Jun, 2016 (f030a8b5)](#5.4.0)
@@ -27,7 +28,69 @@
27
28
  * [beaker-rspec1.0.0 - 3 Dec, 2013 (65e89ec9)](#beaker-rspec1.0.0)
28
29
 
29
30
  ## Details
30
- ### <a name = "LATEST">LATEST - 24 Oct, 2016 (b02c1c50)
31
+ ### <a name = "LATEST">LATEST - 29 Mar, 2017 (0197f39f)
32
+
33
+ * (GEM) update beaker-rspec version to 6.1.0 (0197f39f)
34
+
35
+ * (BKR-1049) Updating require to align with oldest supported PE version. This also matches the merged beaker PR. (eb794f0f)
36
+
37
+
38
+ ```
39
+ (BKR-1049) Updating require to align with oldest supported PE version. This also matches the merged beaker PR.
40
+
41
+ Syntax Updates
42
+
43
+ * Pinned the upper bound on Ruby
44
+ * Pinned the rake and rspec dependencies to match Beaker core
45
+ * Fixed the license to meet SPDX
46
+ * Added a .travis.yml that builds the gem
47
+ * Updated the .gitignore file to ignore test garbage
48
+ * Pin rack version to < 2.2.2
49
+ ```
50
+ * Merge pull request #88 from kevpl/doc_readme_improvements (ef75a9e6)
51
+
52
+
53
+ ```
54
+ Merge pull request #88 from kevpl/doc_readme_improvements
55
+
56
+ (BKR-968) README improvements
57
+ ```
58
+ * (BKR-968) Add puppet v4 install instructions (de809925)
59
+
60
+
61
+ ```
62
+ (BKR-968) Add puppet v4 install instructions
63
+
64
+ Before, we only described the method, which
65
+ defaults to installing Puppet's latest 3.8.z version. Now,
66
+ we've described that situation, and introduced
67
+ to introduce installing newer
68
+ versions of Puppet.
69
+
70
+ [skip ci]
71
+ ```
72
+ * (BKR-968) fix doc install errors (78c9370f)
73
+
74
+
75
+ ```
76
+ (BKR-968) fix doc install errors
77
+
78
+ Before this change, the install instructions were incorrectly
79
+ iterating through all hosts and calling on
80
+ each. That method is designed as a convenience one that
81
+ iterates over all hosts, installing on each of them, so you
82
+ can see how this compounds negatively for us. These changes
83
+ update the doc so that it's correct. They also provide a
84
+ little more readability, and work around the fact that the
85
+ chosen module (puppetlabs-mysql) has now been flushed out
86
+ with its own version of all the files we create in the
87
+ tutorial.
88
+
89
+ [skip ci]
90
+ ```
91
+ ### <a name = "6.0.0">6.0.0 - 24 Oct, 2016 (77470480)
92
+
93
+ * (HISTORY) update beaker-rspec history for gem release 6.0.0 (77470480)
31
94
 
32
95
  * (GEM) update beaker-rspec version to 6.0.0 (b02c1c50)
33
96
 
data/README.md CHANGED
@@ -54,7 +54,8 @@ Using puppetlabs-mysql as an example module.
54
54
 
55
55
  ##Install beaker-rspec
56
56
 
57
- In module's top level directory edit the Gemfile. If there is a `:system_tests` or `:acceptance` group, add it there.
57
+ In module's top level directory edit the Gemfile. You should see a `:system_tests`
58
+ or `:acceptance` group there, but if not, add beaker-rspec there:
58
59
 
59
60
  ```ruby
60
61
  group :acceptance do
@@ -84,16 +85,20 @@ Copy any nodesets that you wish to use into the nodesets directory.
84
85
 
85
86
  ##Create the spec_helper_acceptance.rb
86
87
 
87
- Create example file `spec_helper_acceptance.rb`:
88
+ In the `spec` folder, you should see the project's `spec_helper_acceptance.rb`.
89
+ This file contains all of the setup logic needed to get your Systems Under Test
90
+ (SUTs) ready for testing. Note that puppetlabs-mysql's `spec_helper_acceptance.rb`
91
+ file can be a little intimidating, so we're going to leave getting familiar with
92
+ that to a later exercise. For now, create your own helper in the same directory.
93
+ For example, `my_spec_helper_acceptance.rb` (creative, no?):
88
94
 
89
95
  ```ruby
90
96
  require 'beaker-rspec'
91
- require 'pry'
97
+
98
+ logger.error("LOADED MYYYYYYYYYY Spec Acceptance Helper")
92
99
 
93
100
  # Install Puppet on all hosts
94
- hosts.each do |host|
95
- on host, install_puppet
96
- end
101
+ install_puppet_on(hosts, options)
97
102
 
98
103
  RSpec.configure do |c|
99
104
  module_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
@@ -114,6 +119,18 @@ RSpec.configure do |c|
114
119
  end
115
120
  ```
116
121
 
122
+ **NOTE** that the `install_puppet_on` method used above will install the latest
123
+ Puppet 3.x version. If you'd like to install a more modern version, you can
124
+ replace that line with this one:
125
+
126
+ ```ruby
127
+ install_puppet_agent_on(hosts, options)
128
+ ```
129
+
130
+ This method will install the latest puppet-agent from the specified
131
+ [puppet collection](https://docs.puppet.com/puppet/latest/reference/puppet_collections.html)
132
+ (defaults to `pc1`).
133
+
117
134
  Update spec_helper_acceptance.rb to reflect the module under test. You will need to set the correct module name and add any module dependencies. Place the file in the `spec` directory (in this case `puppetlabs-mysql/spec`)
118
135
 
119
136
  ##Create spec tests for your module
@@ -123,7 +140,10 @@ Spec tests are written in [RSpec](http://rspec.info). You can also use [serversp
123
140
  Example spec file `spec/acceptance/mysql_account_delete_spec.rb`:
124
141
 
125
142
  ```ruby
126
- require 'spec_helper_acceptance'
143
+ # NOTE: the require must match the name of the helper file created above.
144
+ # If you changed the name there, you'll have to change it here.
145
+ # You can verify this is correct when you see the log statement from the helper.
146
+ require 'my_spec_helper_acceptance'
127
147
 
128
148
  describe 'mysql::server::account_security class' do
129
149
  let(:manifest) {
data/beaker-rspec.gemspec CHANGED
@@ -10,9 +10,9 @@ Gem::Specification.new do |s|
10
10
  s.homepage = "https://github.com/puppetlabs/beaker-rspec"
11
11
  s.summary = %q{RSpec bindings for beaker}
12
12
  s.description = %q{RSpec bindings for beaker, see https://github.com/puppetlabs/beaker}
13
- s.license = 'Apache2'
13
+ s.license = 'Apache-2.0'
14
14
 
15
- s.required_ruby_version = Gem::Requirement.new('>= 2.2.5')
15
+ s.required_ruby_version = Gem::Requirement.new('>= 2.1.8', '<3.0.0')
16
16
 
17
17
  s.files = `git ls-files`.split("\n")
18
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -22,15 +22,19 @@ Gem::Specification.new do |s|
22
22
  # Testing dependencies
23
23
  s.add_development_dependency 'minitest', '~> 5.4'
24
24
  s.add_development_dependency 'fakefs', '~> 0.6'
25
- s.add_development_dependency 'rake'
25
+ s.add_development_dependency 'rake', '~> 10.1'
26
26
 
27
27
  # Documentation dependencies
28
28
  s.add_development_dependency 'yard'
29
29
  s.add_development_dependency 'thin'
30
30
 
31
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.2')
32
+ s.add_development_dependency 'rack', '~> 1.6'
33
+ end
34
+
31
35
  # Run time dependencies
32
36
  s.add_runtime_dependency 'beaker', '~> 3.0'
33
- s.add_runtime_dependency 'rspec'
37
+ s.add_runtime_dependency 'rspec', '~> 3.0'
34
38
  s.add_runtime_dependency 'serverspec', '~> 2'
35
39
  s.add_runtime_dependency 'specinfra', '~> 2'
36
40
  end
@@ -1,5 +1,5 @@
1
1
  module BeakerRSpec
2
2
  module Version
3
- STRING = '6.0.0'
3
+ STRING = '6.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-25 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '10.1'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '10.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: yard
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rack
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '1.6'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '1.6'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: beaker
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -98,16 +112,16 @@ dependencies:
98
112
  name: rspec
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - ! '>='
115
+ - - ~>
102
116
  - !ruby/object:Gem::Version
103
- version: '0'
117
+ version: '3.0'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - ! '>='
122
+ - - ~>
109
123
  - !ruby/object:Gem::Version
110
- version: '0'
124
+ version: '3.0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: serverspec
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -144,6 +158,7 @@ extensions: []
144
158
  extra_rdoc_files: []
145
159
  files:
146
160
  - .gitignore
161
+ - .travis.yml
147
162
  - Gemfile
148
163
  - HISTORY.md
149
164
  - LICENSE
@@ -160,7 +175,7 @@ files:
160
175
  - spec/spec_helper.rb
161
176
  homepage: https://github.com/puppetlabs/beaker-rspec
162
177
  licenses:
163
- - Apache2
178
+ - Apache-2.0
164
179
  metadata: {}
165
180
  post_install_message:
166
181
  rdoc_options: []
@@ -170,7 +185,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
185
  requirements:
171
186
  - - ! '>='
172
187
  - !ruby/object:Gem::Version
173
- version: 2.2.5
188
+ version: 2.1.8
189
+ - - <
190
+ - !ruby/object:Gem::Version
191
+ version: 3.0.0
174
192
  required_rubygems_version: !ruby/object:Gem::Requirement
175
193
  requirements:
176
194
  - - ! '>='