mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
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:
parent
54275f4f05
commit
393d437b26
@ -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'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user