test/yao/resources/test_floating_ip.rb in yao-0.15.0 vs test/yao/resources/test_floating_ip.rb in yao-0.16.0
- old
+ new
@@ -80,18 +80,18 @@
assert_equal("00000000-0000-0000-0000-000000000000", fip.router.id)
assert_requested(stub)
end
- def test_tenant
+ def test_project
- stub = stub_request(:get, "https://example.com:12345/tenants/0123456789abcdef0123456789abcdef")
+ stub = stub_request(:get, "https://example.com:12345/projects/0123456789abcdef0123456789abcdef")
.to_return(
status: 200,
body: <<-JSON,
{
- "tenant": {
+ "project": {
"id": "0123456789abcdef0123456789abcdef"
}
}
JSON
headers: {'Content-Type' => 'application/json'}
@@ -100,11 +100,11 @@
fip = Yao::FloatingIP.new(
"project_id" => "0123456789abcdef0123456789abcdef",
"tenant_id" => "0123456789abcdef0123456789abcdef",
)
- assert_instance_of(Yao::Tenant, fip.tenant)
- assert_instance_of(Yao::Tenant, fip.project)
+ assert_instance_of(Yao::Project, fip.tenant)
+ assert_instance_of(Yao::Project, fip.project)
assert_equal('0123456789abcdef0123456789abcdef', fip.tenant.id)
assert_requested(stub)
end