[
https://issues.apache.org/jira/browse/CLOUDSTACK-9304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15188699#comment-15188699
]
ASF GitHub Bot commented on CLOUDSTACK-9304:
--------------------------------------------
Github user sanju1010 commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/1431#discussion_r55635511
--- Diff: test/integration/plugins/nuagevsp/test_nuage_vpc_network.py ---
@@ -0,0 +1,98 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+""" Tests for Basic VPC Network Functionality with NuageVsp network Plugin
+"""
+# Import Local Modules
+from marvin.lib.base import Account
+from nose.plugins.attrib import attr
+from nuageTestCase import nuageTestCase
+
+
+class TestVpcNetworkNuage(nuageTestCase):
+ """ Test Basic VPC Network Functionality with NuageVsp network Plugin
+ """
+
+ @classmethod
+ def setUpClass(cls):
+ super(TestVpcNetworkNuage, cls).setUpClass()
+ return
+
+ def setUp(self):
+ # Create an account
+ self.account = Account.create(self.api_client,
+ self.test_data["account"],
+ admin=True,
+ domainid=self.domain.id
+ )
+ self.cleanup = [self.account]
+ return
+
+ @attr(tags=["advanced", "nuagevsp"], required_hardware="false")
+ def test_nuage_vpc_network(self):
+ """ Test Basic VPC Network Functionality with NuageVsp network
Plugin
+ """
+
+ # 1. Create Nuage VSP VPC offering, check if it is successfully
created and enabled.
+ # 2. Create a VPC with Nuage VSP VPC offering, check if it is
successfully created and enabled.
+ # 3. Create Nuage Vsp VPC Network offering, check if it is
successfully created and enabled.
+ # 4. Create an ACL list in the created VPC, and add an ACL item to
it.
+ # 5. Create a VPC Network with Nuage Vsp VPC Network offering and
the created ACL list, check if it is
+ # successfully created, is in the "Implemented" state, and is
added to the VPC VR.
+ # 6. Deploy a VM in the created VPC network, check if the VM is
successfully deployed and is in the "Running"
+ # state.
+ # 7. Verify that the created ACL item is successfully implemented
in Nuage Vsp.
+
+ # Creating a VPC offering
+ self.debug("Creating Nuage VSP VPC offering...")
+ vpc_offering =
self.create_VpcOffering(self.test_data["nuage_vsp_services"]["vpc_offering"])
+ self.validate_vpc_offering(vpc_offering, state="Enabled")
+
+ # Creating a VPC
+ self.debug("Creating a VPC with Nuage VSP VPC offering...")
+ vpc = self.create_Vpc(vpc_offering, cidr='10.1.0.0/16')
+ self.validate_vpc(vpc, state="Enabled")
+
+ # Creating a network offering
+ self.debug("Creating Nuage Vsp VPC Network offering...")
+ network_offering =
self.create_NetworkOffering(self.test_data["nuage_vsp_services"]["vpc_network_offering"])
+ self.validate_network_offering(network_offering, state="Enabled")
+
+ # Creating an ACL list
+ acl_list = self.create_network_acl_list(name="acl",
description="acl", vpc=vpc)
+
+ # Creating an ACL item
+ acl_item =
self.create_network_acl_rule(self.test_data["ingress_rule"], acl_list=acl_list)
--- End diff --
self.test_data is not defined anywhere in this test file. So it would
result in syntax erros.
> Add nuagevsp userdata testcase (Cloudstack-9095) & Refactor existing testcases
> ------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-9304
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9304
> Project: CloudStack
> Issue Type: Task
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Automation
> Reporter: Sowmya Neeladhuri
> Fix For: 4.9.0
>
>
> 1. Created folder / test / integration / plugins / nuagevsp
> 2. Moved test_nuage_vpc_network.py , test_nuage_vsp.py from / test /
> integration / component / to---> / test / integration / plugins / nuagevsp/
> 3. Added new testcase test_nuage_password_reset.py (Cloudstack-9095)
> 4. Added Nuage class in / tools / marvin / marvin / lib / base.py
> 5. Added services in / tools / marvin / marvin / config / test_data.py
>
> results:
> test_01_UserDataPasswordReset
> (nuagevsp.test_nuage_password_reset.TestNuagePasswordReset) ... === TestName:
> test_01_UserDataPasswordReset | Status : SUCCESS ===
> ok
> Test Basic VPC Network Functionality with NuageVsp network Plugin ... ===
> TestName: test_nuage_vpc_network | Status : SUCCESS ===
> ok
> Test NuageVsp network plugin with basic Isolated Network functionality ...
> === TestName: test_nuage_vsp | Status : SUCCESS ===
> ok
> ----------------------------------------------------------------------
> XML: /root/report_xunit.xml
> ----------------------------------------------------------------------
> Ran 3 tests in 2406.256s
> OK
> ~
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)