cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-8731) automation:checking usage event generation for delete volume
Date Thu, 27 Aug 2015 08:41:45 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-8731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14716282#comment-14716282
] 

ASF GitHub Bot commented on CLOUDSTACK-8731:
--------------------------------------------

Github user sanju1010 commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/691#discussion_r38073620
  
    --- Diff: test/integration/component/test_persistent_networks.py ---
    @@ -1459,6 +1459,135 @@ def test_delete_account(self):
     
             return
     
    +    def test_volume_delete_event_errorState(self):
    +        """
    +        @summary: Test volume delete event generation in error state condition
    +        @Steps:
    +
    +        Step1: Create  a network using network created in Step1
    +        Step2: Verifying that  network creation is successful
    +        Step3: Login to Virtual router and add iptable  rule to block insertion of vm
rules
    +        Step6: deploy a vm using network created in step2
    +        Step7: check the Vm status for failure
    +        Step8: destroy and expunge the vm
    +        Step9: list the generated events for volume delete event.
    +        """
    +
    +        # Listing all the networks available
    +
    +        account = Account.create(
    +            self.api_client,
    +            self.services["account"],
    +            domainid=self.domain.id)
    +
    +        network = Network.create(
    +            self.apiclient,
    +            self.services["isolated_network"],
    +            networkofferingid=self.isolated_persistent_network_offering.id,
    +            accountid=self.account.name,
    +            domainid=self.domain.id,
    +            zoneid=self.zone.id)
    +
    +        response = verifyNetworkState(
    +            self.apiclient,
    +            network.id,
    +            "implemented")
    +        exceptionOccured = response[0]
    +        isNetworkInDesiredState = response[1]
    +        exceptionMessage = response[2]
    +
    +        if (exceptionOccured or (not isNetworkInDesiredState)):
    +            self.fail(exceptionMessage)
    +        self.assertIsNotNone(
    +            network.vlan,
    +            "vlan must not be null for persistent network")
    +        try:
    +            if self.zone.networktype == "Basic":
    --- End diff --
    
    Try to convert it to lower case and compare it with "basic"


> automation:checking usage event generation for delete volume
> ------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8731
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8731
>             Project: CloudStack
>          Issue Type: Test
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: sadhu suresh
>            Assignee: sadhu suresh
>
> usage event not generated for delete volume  when VM creation failed . 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message