test/integration/node2/serverspec/default_spec.rb in kitchen-nodes-0.6.6 vs test/integration/node2/serverspec/default_spec.rb in kitchen-nodes-0.7.0
- old
+ new
@@ -42,11 +42,14 @@
it 'has a valid ip' do
expect(ip).to match(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/)
end
- describe command('hostname') do
- its(:stdout) { should_not match(/#{Regexp.quote(fqdn)}/) }
+ # Skip this test on the 2008 box bc its not sysprepped....
+ unless ENV['computername'] =~ /VAGRANT\-2008R2/i
+ describe command('hostname') do
+ its(:stdout) { should_not match(/#{Regexp.quote(fqdn)}/) }
+ end
end
if RUBY_PLATFORM =~ /mingw/
it 'has a computername matching node fqdn' do
expect(connection.run_cmd('hostname').stdout.chomp).to eq(fqdn)