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

    https://github.com/apache/cloudstack/pull/241#discussion_r34118976
  
    --- Diff: test/integration/component/test_user_taglisting.py ---
    @@ -0,0 +1,137 @@
    +from marvin.cloudstackTestCase import cloudstackTestCase
    +from marvin.lib.base import (Account,
    +                             ServiceOffering,
    +                             VirtualMachine,
    +                             NetworkOffering,
    +                             Network,
    +                             Tag
    +                            )
    +from marvin.lib.common import (get_domain,
    +                                get_zone,
    +                                get_template)
    +from marvin.cloudstackAPI import *
    +from nose.plugins.attrib import attr
    +from marvin.codes import FAILED, PASS
    +
    +class TestDeployVMWithTags(cloudstackTestCase):
    +
    +    @classmethod
    +    def setUpClass(cls):
    +        cls.apiclient = cls.testClient.getApiClient()
    +        cls.dbclient = cls.testClient.getDbConnection()
    +        cls.cleanup = []
    +        cls.services = cls.testClient.getParsedTestDataConfig()
    +
    +        cls.domain = get_domain(cls.apiclient)
    +        cls.zone = get_zone(cls.apiclient, 
cls.testClient.getZoneForTests())
    +        cls.services['mode'] = cls.zone.networktype
    +
    +        cls.account = Account.create(
    +                            cls.apiclient,
    +                            cls.services["account"],
    +                            admin=True,
    +                            domainid=cls.domain.id
    +                            )
    +
    +        cls.cleanup.append(cls.account)
    +        template = get_template(
    +            cls.apiclient,
    +            cls.zone.id,
    +            cls.services["ostype"]
    +        )
    +        if template == FAILED:
    +            assert False, "get_template() failed to return template with 
description %s" % cls.services["ostype"]
    +
    +        # Set Zones and disk offerings
    +        cls.services["small"]["zoneid"] = cls.zone.id
    +        cls.services["small"]["template"] = template.id
    +
    +        cls.services["medium"]["zoneid"] = cls.zone.id
    +        cls.services["medium"]["template"] = template.id
    +        cls.services["iso1"]["zoneid"] = cls.zone.id
    +
    +        cls.service_offering = ServiceOffering.create(
    +            cls.apiclient,
    +            cls.services["service_offerings"]["tiny"]
    +        )
    +        cls.cleanup.append(cls.service_offering)
    +        cls.network_offering = NetworkOffering.create(
    +            cls.apiclient,
    +            cls.services["network_offering"],
    +        )
    +        cls.cleanup.append(cls.network_offering)
    +        # Enable Network offering
    +        cls.network_offering.update(cls.apiclient, state='Enabled')
    +
    +        cls.services["network"]["networkoffering"] = 
cls.network_offering.id
    +        cls.api_client = 
cls.testClient.getUserApiClient(UserName=cls.account.name, 
DomainName=cls.account.domain)
    +        cls.network = Network.create(
    +            cls.api_client,
    +            cls.services["network"],
    +            networkofferingid=cls.network_offering.id,
    +            accountid=cls.account.name,
    +            domainid=cls.domain.id,
    +            zoneid=cls.zone.id
    +        )
    +        cls.cleanup.append(cls.network)
    +
    +    @classmethod
    +    def tearDownClass(cls):
    +        try:
    +            cleanup_resources(cls.apiclient, cls.cleanup)
    +        except Exception as e:
    +            raise Exception("Warning: Exception during cleanup : %s" % e)
    +
    +    def test_deploy_vm_with_tags(self):
    --- End diff --
    
    Please add tags attribute to the test


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to