test/yao/resources/test_security_group.rb in yao-0.15.0 vs test/yao/resources/test_security_group.rb in yao-0.16.0

- old
+ new

@@ -23,25 +23,25 @@ assert(sg.rules[0].instance_of?(Yao::SecurityGroupRule)) end def test_sg_to_tenant - 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'} ) - sg = Yao::SecurityGroup.new('tenant_id' => '0123456789abcdef0123456789abcdef') - assert_instance_of(Yao::Tenant, sg.tenant) - assert_equal('0123456789abcdef0123456789abcdef', sg.tenant.id) + sg = Yao::SecurityGroup.new('project_id' => '0123456789abcdef0123456789abcdef') + assert_instance_of(Yao::Project, sg.project) + assert_equal('0123456789abcdef0123456789abcdef', sg.project.id) assert_requested(stub) end end