test/yao/resources/test_hypervisor.rb in yao-0.13.1 vs test/yao/resources/test_hypervisor.rb in yao-0.13.2

- old
+ new

@@ -78,11 +78,11 @@ assert_equal(6, host.service.id) end def test_list stub = 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 v#{Faraday::VERSION}"}) + .with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>"Yao/#{Yao::VERSION} Faraday/#{Faraday::VERSION}"}) .to_return( status: 200, body: <<-JSON, { "hypervisors": [{ @@ -103,11 +103,11 @@ assert_equal(Yao::Hypervisor.method(:list), Yao::Hypervisor.method(:list_detail)) end def test_statistics stub = 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 v#{Faraday::VERSION}"}) + .with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>"Yao/#{Yao::VERSION} Faraday/#{Faraday::VERSION}"}) .to_return( status: 200, body: <<-JSON, { "hypervisor_statistics": { @@ -135,10 +135,10 @@ assert_requested(stub) end def test_uptime stub = 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 v#{Faraday::VERSION}"}) + .with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>"Yao/#{Yao::VERSION} Faraday/#{Faraday::VERSION}"}) .to_return( status: 200, body: <<-JSON, { "hypervisor": {