Skip to content

Commit 393d437

Browse files
author
Girish Shilamkar
committed
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.
1 parent 54275f4 commit 393d437

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

test/integration/component/test_vpc_offerings.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -820,19 +820,9 @@ def test_06_vpc_off_invalid_services(self):
820820
"""Test VPC offering with invalid services"""
821821

822822
# Validate the following
823-
# 1. Creating VPC Offering with no SourceNat service should FAIL.
824-
# 2. Creating VPC Offering with services NOT supported by VPC
823+
# 1. Creating VPC Offering with services NOT supported by VPC
825824
# like Firewall should not be allowed
826825

827-
self.debug("Creating a VPC offering without sourceNAT")
828-
self.services["vpc_offering"]["supportedservices"] = 'Dhcp,Dns,PortForwarding,Vpn,Lb,UserData,StaticNat'
829-
830-
with self.assertRaises(Exception):
831-
VpcOffering.create(
832-
self.apiclient,
833-
self.services["vpc_offering"]
834-
)
835-
836826
self.debug("Creating a VPC offering with Firewall")
837827
self.services["vpc_offering"]["supportedservices"] = 'Dhcp,Dns,PortForwarding,Firewall,Vpn,SourceNat,Lb,UserData,StaticNat'
838828

0 commit comments

Comments
 (0)