test/yao/resources/test_hypervisor.rb in yao-0.4.2 vs test/yao/resources/test_hypervisor.rb in yao-0.4.3

- old
+ new

@@ -12,11 +12,11 @@ Yao.default_client.pool["compute"] = Yao::Client.gen_client("https://example.com:12345") end def test_list_detail stub_request(:get, "https://example.com:12345/os-hypervisors/detail") - .with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Faraday v0.12.2'}) + .with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>"Faraday v#{Faraday::VERSION}"}) .to_return( status: 200, body: <<-JSON, { "hypervisors": [{ @@ -31,11 +31,11 @@ assert_equal(h.first.id, "dummy") end def test_statistics stub_request(:get, "https://example.com:12345/os-hypervisors/statistics") - .with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Faraday v0.12.2'}) + .with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>"Faraday v#{Faraday::VERSION}"}) .to_return( status: 200, body: <<-JSON, { "hypervisor_statistics": { @@ -61,10 +61,10 @@ assert_equal(s.count, 1) end def test_uptime stub_request(:get, "https://example.com:12345/os-hypervisors/1/uptime") - .with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Faraday v0.12.2'}) + .with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>"Faraday v#{Faraday::VERSION}"}) .to_return( status: 200, body: <<-JSON, { "hypervisor": {