cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanju1010 <...@git.apache.org>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8830 : VM snapshot creation fa...
Date Wed, 03 Feb 2016 05:56:49 GMT
Github user sanju1010 commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1377#discussion_r51681502
  
    --- Diff: test/integration/component/test_escalations_snapshots.py ---
    @@ -639,3 +671,47 @@ def test_04_list_vm_snapshots_byid(self):
                              "Listed VM Snapshot details are not as expected"
                              )
             return
    +
    +    @attr(tags=["advanced", "basic"], required_hardware="true")
    +    def test_05_check_vm_snapshot_creation_after_Instance_creation(self):
    +        """
    +        @summary: Test  if SS creation is successful in the first
    +        10 minutes of VM deployment
    +
    +        Step1: Create a VM with any Service offering
    +        Step2: Create a VM snapshot
    +        Step3: Verify if SS creation is successful within first
    +               10 minutes of VM deployment
    +        """
    +        if self.hypervisor.lower() not in ['vmware']:
    +            raise unittest.SkipTest("This test case is only for vmware. Hence, skipping
the test")
    +
    +        api_client = self.testClient.getUserApiClient(
    +                UserName=self.account.name,
    +                DomainName=self.account.domain)
    +
    +        vm = self.createInstance(service_off=self.service_offering, api_client=api_client)
    +        start_time = time.time()
    +
    +
    +        snapshot_created_1 = VmSnapshot.create(
    +                                                 self.userapiclient,
    +                                                 vm.id
    +                                                 )
    +        self.assertIsNotNone(
    +                                snapshot_created_1,
    +                                "Snapshot creation failed"
    +                                 )
    +
    +        time_elapsed = time.time()-start_time
    +
    +        self.assertTrue(
    +                        time_elapsed < 600,
    +                        "Snapshot did not get created in the first 10 minutes after VM
creation"
    +                        )
    +
    --- End diff --
    
    Remove all the white spaces


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message