CLOUDSTACK-5627: Removed a validation which expected createVPCOffering to fail if SourceNAT not provided

createVPCOffering API creates VPC with SourceNat even if not provided as param. So this validation
is not required any more.
This commit is contained in:
Girish Shilamkar 2014-01-08 12:00:09 +05:30
parent 54275f4f05
commit 393d437b26

View File

@ -820,19 +820,9 @@ class TestVPCOffering(cloudstackTestCase):
"""Test VPC offering with invalid services"""
# Validate the following
# 1. Creating VPC Offering with no SourceNat service should FAIL.
# 2. Creating VPC Offering with services NOT supported by VPC
# 1. Creating VPC Offering with services NOT supported by VPC
# like Firewall should not be allowed
self.debug("Creating a VPC offering without sourceNAT")
self.services["vpc_offering"]["supportedservices"] = 'Dhcp,Dns,PortForwarding,Vpn,Lb,UserData,StaticNat'
with self.assertRaises(Exception):
VpcOffering.create(
self.apiclient,
self.services["vpc_offering"]
)
self.debug("Creating a VPC offering with Firewall")
self.services["vpc_offering"]["supportedservices"] = 'Dhcp,Dns,PortForwarding,Firewall,Vpn,SourceNat,Lb,UserData,StaticNat'