You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Srikanteswararao Talluri (JIRA)" <ji...@apache.org> on 2014/09/04 13:39:53 UTC

[jira] [Resolved] (CLOUDSTACK-7389) [Automation] Fix the script "test_bugs.py" - Unable to find Ostype is required for registering template

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-7389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srikanteswararao Talluri resolved CLOUDSTACK-7389.
--------------------------------------------------
    Resolution: Fixed

> [Automation] Fix the script "test_bugs.py" - Unable to find Ostype is required for registering template
> -------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7389
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7389
>             Project: CloudStack
>          Issue Type: Test
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Automation, Test
>    Affects Versions: 4.5.0
>            Reporter: Chandan Purushothama
>            Assignee: Srikanteswararao Talluri
>            Priority: Critical
>             Fix For: 4.5.0
>
>
> Script is at: component/maint/.
> {code}
>     @attr(required_hardware="false")
>     @attr(storage="s3")
>     def test_es_1863_register_template_s3_domain_admin_user(self):
>         """
>         @Desc: Test whether cloudstack allows Domain admin or user to register a template using
>         S3/Swift object store.
>         @Steps:
>         Step1: create a Domain and users in it.
>         Step2: Register a template as Domain admin.
>         Step3: Register a template as Domain user.
>         Step4: Template should be registered successfully.
>         """
>         # Step1: create a Domain and users in it.
>         self.newdomain = Domain.create(self.apiClient,
>                                self.services["domain"])
>         #create account in the domain
>         self.account_domain = Account.create(
>             self.apiClient,
>             self.services["account"],
>             domainid=self.newdomain.id
>         )
>         self.cleanup.append(self.account_domain)
>         self.cleanup.append(self.newdomain)
>         # Getting authentication for user in newly created Account in domain
>         self.domain_user = self.account_domain.user[0]
>         self.domain_userapiclient = self.testClient.getUserApiClient(self.domain_user.username, self.newdomain.name)
>         # Step2: Register a template as Domain admin.
>         self.domain_template = Template.register(
>                                         self.apiClient,
>                                         self.services["templateregister"],
>                                         zoneid=self.zone.id,
>                                         account=self.account_domain.name,
>                                         domainid=self.newdomain.id,
>                                         hypervisor=self.hypervisor
>                                         )
>         # Wait for template to download
>         self.domain_template.download(self.api_client)
>         # Wait for template status to be changed across
>         time.sleep(60)
>         # Step3: Register a template as Domain user.
>         self.domain_user_template = Template.register(
>                                         self.domain_userapiclient,
>                                         self.services["templateregister"],
>                                         zoneid=self.zone.id,
>                                         account=self.account_domain.name,
>                                         domainid=self.newdomain.id,
>                                         hypervisor=self.hypervisor
>                                         )
> {code}
> *Error Message*
> Unable to find Ostype is required for registering template
> -------------------- >> begin captured stdout << ---------------------
> === TestName: test_es_1863_register_template_s3_domain_admin_user | Status : EXCEPTION ===
> --------------------- >> end captured stdout << ----------------------



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