Skip to content

Commit

Permalink
Merge pull request #5 from rightscale-cookbooks/white_14_02_acu128798…
Browse files Browse the repository at this point in the history
…_hostname_fix_to_support_centos

Update how we get the hostname to support CentOS kitchen tests
  • Loading branch information
douglaswth committed Feb 25, 2014
2 parents ec71651 + bf12b38 commit 9246ad3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/integration/application/serverspec/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'socket'

describe "Application LWRP" do
let(:host_name) { Socket.gethostname }
let(:host_name) { Socket.gethostname.split('.').first }
let(:app_tags) { MachineTag::Set.new(JSON.parse(IO.read("/vagrant/cache_dir/machine_tag_cache/#{host_name}/tags.json"))) }

it "should have 5 application specific entries" do
Expand Down
2 changes: 1 addition & 1 deletion test/integration/database/serverspec/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require 'time'

describe "Database server tags" do
let(:host_name) { Socket.gethostname }
let(:host_name) { Socket.gethostname.split('.').first }
let(:db_tags) { MachineTag::Set.new(JSON.parse(IO.read("/vagrant/cache_dir/machine_tag_cache/#{host_name}/tags.json"))) }

it "should have 5 application specific entries" do
Expand Down
2 changes: 1 addition & 1 deletion test/integration/default/serverspec/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'socket'

describe "Default server tags" do
let(:host_name) { Socket.gethostname }
let(:host_name) { Socket.gethostname.split('.').first }
let(:default_tags) { MachineTag::Set.new(JSON.parse(IO.read("/vagrant/cache_dir/machine_tag_cache/#{host_name}/tags.json"))) }

it "should have a UUID of 01-ABCDEFG123456" do
Expand Down
2 changes: 1 addition & 1 deletion test/integration/load_balancer/serverspec/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'socket'

describe "Load balancer server tags" do
let(:host_name) { Socket.gethostname }
let(:host_name) { Socket.gethostname.split('.').first }
let(:lb_tags) { MachineTag::Set.new(JSON.parse(IO.read("/vagrant/cache_dir/machine_tag_cache/#{host_name}/tags.json"))) }

it "should have 2 application specific entry" do
Expand Down

0 comments on commit 9246ad3

Please sign in to comment.