Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 929E319D65 for ; Thu, 21 Apr 2016 20:54:09 +0000 (UTC) Received: (qmail 64985 invoked by uid 500); 21 Apr 2016 20:54:09 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 64920 invoked by uid 500); 21 Apr 2016 20:54:09 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 64892 invoked by uid 99); 21 Apr 2016 20:54:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2016 20:54:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E996FEAB60; Thu, 21 Apr 2016 20:54:08 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: swill@apache.org To: commits@cloudstack.apache.org Date: Thu, 21 Apr 2016 20:54:08 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/3] git commit: updated refs/heads/master to 5498170 Repository: cloudstack Updated Branches: refs/heads/master bebaea323 -> 549817046 Test to verify CS-45057 Bug-Id: CS-45057 Reviewed-by: Self Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/88327b99 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/88327b99 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/88327b99 Branch: refs/heads/master Commit: 88327b99f755f4d8710515cd3b5169d3becd9b5b Parents: 1bb8b8a Author: sanjeevn Authored: Mon Jan 4 18:14:24 2016 +0530 Committer: sanjeev Committed: Fri Jan 8 16:22:00 2016 +0530 ---------------------------------------------------------------------- test/integration/component/test_vpc.py | 30 ++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/88327b99/test/integration/component/test_vpc.py ---------------------------------------------------------------------- diff --git a/test/integration/component/test_vpc.py b/test/integration/component/test_vpc.py index f81f53f..0cde535 100644 --- a/test/integration/component/test_vpc.py +++ b/test/integration/component/test_vpc.py @@ -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