cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject git commit: updated refs/heads/master to 16c1de8
Date Fri, 02 Aug 2013 07:23:03 GMT
Updated Branches:
  refs/heads/master 65fc2ec34 -> 16c1de84e


Remove duplicate tests for stopped_vm

Signed-off-by: Prasanna Santhanam <tsp@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/16c1de84
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/16c1de84
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/16c1de84

Branch: refs/heads/master
Commit: 16c1de84e03430ea589df13a3cfeffef6788b700
Parents: 65fc2ec
Author: Prasanna Santhanam <tsp@apache.org>
Authored: Fri Aug 2 12:51:45 2013 +0530
Committer: Prasanna Santhanam <tsp@apache.org>
Committed: Fri Aug 2 12:52:26 2013 +0530

----------------------------------------------------------------------
 test/integration/component/test_stopped_vm.py | 142 ---------------------
 1 file changed, 142 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/16c1de84/test/integration/component/test_stopped_vm.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_stopped_vm.py b/test/integration/component/test_stopped_vm.py
index e1f5f2e..c845f60 100644
--- a/test/integration/component/test_stopped_vm.py
+++ b/test/integration/component/test_stopped_vm.py
@@ -1324,148 +1324,6 @@ class TestDeployVMBasicZone(cloudstackTestCase):
         except Exception as e:
             self.debug("Warning! Exception in tearDown: %s" % e)
 
-    @attr(tags = ["eip", "basic", "sg"])
-    def test_01_deploy_vm_startvm_true(self):
-        """Test Deploy Virtual Machine with startVM=true parameter
-        """
-
-        # Validate the following:
-        # 1. deploy Vm  with the startvm=true
-        # 2. Should be able to login to the VM.
-        # 3. listVM command should return the deployed VM.State of this VM
-        #    should be "Running".
-
-        self.debug("Checking the network type of the zone: %s" %
-                                                self.zone.networktype)
-        self.assertEqual(
-                         self.zone.networktype,
-                         'Basic',
-                         "Zone must be configured in basic networking mode"
-                         )
-        self.debug("Deploying instance in the account: %s" %
-                                                self.account.name)
-        self.virtual_machine = VirtualMachine.create(
-                                    self.apiclient,
-                                    self.services["virtual_machine"],
-                                    accountid=self.account.name,
-                                    domainid=self.account.domainid,
-                                    serviceofferingid=self.service_offering.id,
-                                    startvm=True,
-                                    diskofferingid=self.disk_offering.id,
-                                    mode=self.zone.networktype
-                                )
-
-        self.debug("Deployed instance ion account: %s" %
-                                                    self.account.name)
-        list_vm_response = list_virtual_machines(
-                                                 self.apiclient,
-                                                 id=self.virtual_machine.id
-                                                 )
-
-        self.debug(
-                "Verify listVirtualMachines response for virtual machine: %s" \
-                % self.virtual_machine.id
-            )
-
-        self.assertEqual(
-                            isinstance(list_vm_response, list),
-                            True,
-                            "Check list response returns a valid list"
-                        )
-        vm_response = list_vm_response[0]
-
-        self.assertEqual(
-
-                            vm_response.state,
-                            "Running",
-                            "VM should be in Running state after deployment"
-                        )
-        return
-
-    @attr(tags = ["eip", "basic", "sg"])
-    def test_02_deploy_vm_startvm_false(self):
-        """Test Deploy Virtual Machine with startVM=true parameter
-        """
-
-        # Validate the following:
-        # 1. deploy Vm  with the startvm=true
-        # 2. Should be able to login to the VM.
-        # 3. listVM command should return the deployed VM.State of this VM
-        #    should be "Running".
-
-        self.debug("Checking the network type of the zone: %s" %
-                                                self.zone.networktype)
-        self.assertEqual(
-                         self.zone.networktype,
-                         'Basic',
-                         "Zone must be configured in basic networking mode"
-                         )
-        self.debug("Deploying instance in the account: %s" %
-                                                self.account.name)
-        self.virtual_machine = VirtualMachine.create(
-                                    self.apiclient,
-                                    self.services["virtual_machine"],
-                                    accountid=self.account.name,
-                                    domainid=self.account.domainid,
-                                    serviceofferingid=self.service_offering.id,
-                                    startvm=False,
-                                    mode=self.zone.networktype
-                                )
-
-        self.debug("Deployed instance in account: %s" %
-                                                    self.account.name)
-        list_vm_response = list_virtual_machines(
-                                                 self.apiclient,
-                                                 id=self.virtual_machine.id
-                                                 )
-
-        self.debug(
-                "Verify listVirtualMachines response for virtual machine: %s" \
-                % self.virtual_machine.id
-            )
-
-        self.assertEqual(
-                            isinstance(list_vm_response, list),
-                            True,
-                            "Check list response returns a valid list"
-                        )
-        vm_response = list_vm_response[0]
-
-        self.assertEqual(
-
-                            vm_response.state,
-                            "Stopped",
-                            "VM should be in stopped state after deployment"
-                        )
-        self.debug("Starting the instance: %s" % self.virtual_machine.name)
-        self.virtual_machine.start(self.apiclient)
-        self.debug("Started the instance: %s" % self.virtual_machine.name)
-
-        list_vm_response = list_virtual_machines(
-                                                 self.apiclient,
-                                                 id=self.virtual_machine.id
-                                                 )
-
-        self.debug(
-                "Verify listVirtualMachines response for virtual machine: %s" \
-                % self.virtual_machine.id
-            )
-
-        self.assertEqual(
-                            isinstance(list_vm_response, list),
-                            True,
-                            "Check list response returns a valid list"
-                        )
-        vm_response = list_vm_response[0]
-
-        self.assertEqual(
-
-                            vm_response.state,
-                            "Running",
-                            "VM should be in running state after deployment"
-                        )
-        return
-
 
 class TestDeployVMFromTemplate(cloudstackTestCase):
 


Mime
View raw message