Test to verify CS-45057

Bug-Id: CS-45057
Reviewed-by: Self
This commit is contained in:
sanjeevn 2016-01-04 18:14:24 +05:30 committed by sanjeev
parent 1bb8b8a66e
commit 88327b99f7
1 changed files with 29 additions and 1 deletions

View File

@ -36,7 +36,8 @@ from marvin.lib.base import (Account,
NetworkACL,
NATRule,
Zone,
StaticNATRule)
StaticNATRule,
VpnCustomerGateway)
from marvin.lib.common import (get_domain,
get_zone,
get_template,
@ -182,6 +183,13 @@ class Services:
"domain": {
"name": "TestDomain"
},
"vpn_customer_gw": {
"ipsecpsk": "s2svpn",
"ikepolicy": "3des-md5",
"ikelifetime": "86400",
"esppolicy": "3des-md5",
"esplifetime": "3600",
},
"ostype": 'CentOS 5.3 (64-bit)',
# Cent OS 5.3 (64 bit)
"sleep": 60,
@ -2490,3 +2498,23 @@ class TestVPC(cloudstackTestCase):
"Failed to create VM with first ip address in the CIDR as the vm ip"
)
return
@attr(tags=["advanced", "intervlan"], required_hardware="false")
def test_22_vpn_customer_gw_with_hostname(self):
"""
Test to create vpn customer gateway with hostname
instead of gateway ip address
"""
try:
vpnGw = VpnCustomerGateway.create(
self.apiclient,
self.services["vpn_customer_gw"],
name="test_vpn_customer_gw",
gateway="GwWithHostName",
cidrlist="10.1.0.0/16"
)
self.cleanup.append(vpnGw)
except Exception as e:
self.fail("Creating vpn customer gateway with hostname\
Failed with error :%s" % e)
return