You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Quentin Pradet (JIRA)" <ji...@apache.org> on 2018/01/25 13:31:00 UTC

[jira] [Commented] (LIBCLOUD-976) gce_test fails with multiple failures.

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

Quentin Pradet commented on LIBCLOUD-976:
-----------------------------------------

If you simply use `cp libcloud/test/secrets.py-dist libcloud/test/secrets.py` without using your secrets, the tests should run fine: they don't need to access to the actual Google servers. I guess the bug is that providing secrets is breaking the tests.

> gce_test fails with multiple failures.
> --------------------------------------
>
>                 Key: LIBCLOUD-976
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-976
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>         Environment: trunk branch of [https://github.com/apache/libcloud.git] repo.
>            Reporter: Rahul Paigavan
>            Priority: Blocker
>         Attachments: test_gce.out
>
>
> I have done a fix in
>         libcloud/compute/drivers/gce.py
> To test that, I have done some changes in
>         libcloud/test/compute/test_gce.py
>  
> As per documentation, When I run below test command
> PYTHONPATH=. python libcloud/test/compute/test_gce.py
> I am getting multiple AttributeError failures for GCEMockHttp object.
> As a setup part, I provided my secrets in libcloud/test/secrets.py.
>     Modified GCE_PARAMS and GCE_KEYWORD_PARAMS.
>  
> I have tried to run the test without any of my changes on trunk branch.
> I still get same issue. Please find attached output file for details.
>  
> Note: When I run any other test, It works fine.
> $ PYTHONPATH=. python libcloud/test/compute/test_ecs.py
> .........................................................
> ----------------------------------------------------------------------
> Ran 57 tests in 0.791s
> OK
> $
>  
> This is a blocker for me to merge the PR without a test.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)