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-8639) fixing calculation mistakes in component/test_ss_domain_limits.py
Date Wed, 15 Jul 2015 13:05:04 GMT

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

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

GitHub user nitt10prashant opened a pull request:

    https://github.com/apache/cloudstack/pull/595

    CLOUDSTACK-8639:fixing calculation mistakes in component/test_ss_doma…

    test result
    =========
    Test secondary storage limit of domain and its sub-domains ... === TestName: test_04_create_template_delete_account
| Status : SUCCESS ===
    ok
    
    ----------------------------------------------------------------------
    Ran 1 test in 175.563s
    
    OK

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nitt10prashant/cloudstack ss_domain_limit

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/595.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #595
    
----
commit 2b0261fd87eb0e8d9f770cb989adbcb586d215cc
Author: nitt10prashant <nitt10.prashant@gmail.com>
Date:   2015-07-15T13:03:00Z

    CLOUDSTACK-8639:fixing calculation mistakes in component/test_ss_domain_limits.py

----


> fixing calculation mistakes in component/test_ss_domain_limits.py
> -----------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8639
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8639
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: marvin
>    Affects Versions: 4.5.1
>            Reporter: prashant kumar mishra
>            Assignee: prashant kumar mishra
>             Fix For: 4.5.1
>
>
> expectedCount=int(int(templates[0].size) / (1024**3))
> expectedCount *= 2
> if template[0].size is less that one GB , expectedCount will be 0
> so expectedCount*=2  will not have any effect . 
> fixing expectedCount calculation:
> self.templateSize = int((int(templates[0].size)*2) / (1024**3))
> expectedCount =self.templateSize



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

Mime
View raw message