public void ListServerSecurityGroupTest_InvalidId() { var os = new OpenStackMember(UserName, Password, TenantName, TenantId); // expect ItemNotFoundException IEnumerable<ServerSecurityGroup> groups = os.ListServerSecurityGroups(InvalidId); }
public void ListServerSecurityGroupTest() { var osm = new OpenStackMember(UserName, Password, TenantName, TenantId); SimpleServer ss = osm.ListServers().FirstOrDefault(s => s.GetDetails().Status == ServerState.Active); IEnumerable<ServerSecurityGroup> groups = osm.ListServerSecurityGroups(ss.Id); Assert.IsNotNull(groups); }