Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1387)

Unified Diff: nova/nova_test.go

Issue 6877054: First part of the nova service double. (Closed)
Patch Set: First part of the nova service double. Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « nova/nova.go ('k') | testservices/novaservice/novaservice.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nova/nova_test.go
=== modified file 'nova/nova_test.go'
--- nova/nova_test.go 2012-12-05 00:39:53 +0000
+++ nova/nova_test.go 2012-12-10 14:13:22 +0000
@@ -271,7 +271,7 @@
c.Check(*rule.ToPort, Equals, 4321)
c.Check(rule.ParentGroupId, Equals, group1.Id)
c.Check(*rule.IPProtocol, Equals, "tcp")
- c.Check(rule.Group, HasLen, 0)
+ c.Check(rule.Group, IsNil)
err = s.nova.DeleteSecurityGroupRule(rule.Id)
c.Check(err, IsNil)
@@ -283,8 +283,9 @@
rule, err = s.nova.CreateSecurityGroupRule(ri)
c.Assert(err, IsNil)
c.Check(rule.ParentGroupId, Equals, group1.Id)
- c.Check(rule.Group["tenant_id"], Equals, s.tenantId)
- c.Check(rule.Group["name"], Equals, "test_secgroup2")
+ c.Check(rule.Group, NotNil)
+ c.Check(rule.Group.TenantId, Equals, s.tenantId)
+ c.Check(rule.Group.Name, Equals, "test_secgroup2")
err = s.nova.DeleteSecurityGroupRule(rule.Id)
c.Check(err, IsNil)
« no previous file with comments | « nova/nova.go ('k') | testservices/novaservice/novaservice.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b