rspec-system 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,10 @@
1
+ 2.5.1
2
+ =====
3
+
4
+ This bug release fixes setting the hostname and /etc/hosts setup for VSphere.
5
+
6
+ -------------------------------
7
+
1
8
  2.5.0
2
9
  =====
3
10
 
@@ -257,6 +257,16 @@ module RSpecSystem
257
257
  end
258
258
  time3 = Time.now
259
259
  log.info "#{k}> Took #{time3 - start_time} seconds for instance to be ready"
260
+
261
+ ######################
262
+ # Do initial box setup
263
+ ######################
264
+ hosts = <<-EOS
265
+ 127.0.0.1 localhost localhost.localdomain
266
+ #{ipaddress} #{k}
267
+ EOS
268
+ shell(:n => k, :c => "echo '#{hosts}' > /etc/hosts")
269
+ shell(:n => k, :c => "hostname #{k}")
260
270
  end
261
271
  end
262
272
 
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  # Metadata
4
4
  s.name = "rspec-system"
5
- s.version = "2.5.0"
5
+ s.version = "2.5.1"
6
6
  s.authors = ["Ken Barber"]
7
7
  s.email = ["info@puppetlabs.com"]
8
8
  s.homepage = "https://github.com/puppetlabs/rspec-system"
@@ -0,0 +1,11 @@
1
+ require 'spec_helper_system'
2
+
3
+ describe "base:" do
4
+ it 'hostname -f returns something valid' do
5
+ shell 'hostname -f' do |r|
6
+ r.stdout.should =~ /^main/
7
+ r.exit_code.should == 0
8
+ r.stderr.should == ''
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -179,6 +179,7 @@ files:
179
179
  - spec/fixtures/nodeset_example5.yml
180
180
  - spec/spec_helper.rb
181
181
  - spec/spec_helper_system.rb
182
+ - spec/system/base_spec.rb
182
183
  - spec/system/rcp_spec.rb
183
184
  - spec/system/shell_spec.rb
184
185
  - spec/unit/helper_spec.rb
@@ -213,6 +214,7 @@ signing_key:
213
214
  specification_version: 3
214
215
  summary: System testing with rspec
215
216
  test_files:
217
+ - spec/system/base_spec.rb
216
218
  - spec/system/rcp_spec.rb
217
219
  - spec/system/shell_spec.rb
218
220
  - spec/unit/helper_spec.rb