|
|
@@ -87,12 +87,10 @@ class CloudNetworkServiceTestCase(ProviderTestBase):
|
|
|
cidr = '10.0.1.0/24'
|
|
|
sn = net.create_subnet(cidr_block=cidr, name=subnet_name)
|
|
|
with helpers.cleanup_action(lambda: sn.delete()):
|
|
|
- # Does not work with moto until filter 'vpcId' for
|
|
|
- # DescribeSubnets is not implemented.
|
|
|
- # self.assertTrue(
|
|
|
- # sn.id in [s.id for s in net.subnets()],
|
|
|
- # "Subnet ID %s should be listed in network subnets %s."
|
|
|
- # % (sn.id, net.subnets()))
|
|
|
+ self.assertTrue(
|
|
|
+ sn.id in [s.id for s in net.subnets()],
|
|
|
+ "Subnet ID %s should be listed in network subnets %s."
|
|
|
+ % (sn.id, net.subnets()))
|
|
|
|
|
|
self.assertIn(
|
|
|
net.id, sn.network_id,
|