Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 771D511072 for ; Thu, 4 Sep 2014 11:39:53 +0000 (UTC) Received: (qmail 66017 invoked by uid 500); 4 Sep 2014 11:39:53 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 65987 invoked by uid 500); 4 Sep 2014 11:39:53 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 65975 invoked by uid 500); 4 Sep 2014 11:39:53 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 65969 invoked by uid 99); 4 Sep 2014 11:39:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2014 11:39:53 +0000 Date: Thu, 4 Sep 2014 11:39:53 +0000 (UTC) From: "Srikanteswararao Talluri (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-7389) [Automation] Fix the script "test_bugs.py" - Unable to find Ostype is required for registering template MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)