spec/unit/plugins/cloud_spec.rb in ohai-8.22.1 vs spec/unit/plugins/cloud_spec.rb in ohai-8.23.0
- old
+ new
@@ -160,9 +160,15 @@
describe "with Azure mash" do
before do
@plugin[:azure] = Mash.new()
end
+ it "populates cloud private ip" do
+ @plugin[:azure]["private_ip"] = "10.0.0.1"
+ @plugin.run
+ expect(@plugin[:cloud][:private_ips][0]).to eq(@plugin[:azure]["private_ip"])
+ end
+
it "populates cloud public ip" do
@plugin[:azure]["public_ip"] = "174.129.150.8"
@plugin.run
expect(@plugin[:cloud][:public_ips][0]).to eq(@plugin[:azure]["public_ip"])
expect(@plugin[:cloud][:public_ipv4]).to eq(@plugin[:azure]["public_ip"])