cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jburwell <...@git.apache.org>
Subject [GitHub] cloudstack pull request #1578: CLOUDSTACK-9401 : Support for Internal DNS in...
Date Wed, 07 Sep 2016 03:37:55 GMT
Github user jburwell commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1578#discussion_r77755898
  
    --- Diff: test/integration/plugins/nuagevsp/nuageTestCase.py ---
    @@ -77,85 +117,104 @@ def setUpClass(cls, zone=None):
             cls.test_data["virtual_machine"]["zoneid"] = cls.zone.id
             cls.test_data["virtual_machine"]["template"] = cls.template.id
     
    -        # Create service offering
    -        cls.service_offering = ServiceOffering.create(cls.api_client,
    -                                                      cls.test_data["service_offering"]
    -                                                      )
    -        cls._cleanup = [cls.service_offering]
    -
             # Check if the host hypervisor type is simulator
    -        cls.isSimulator = Hypervisor.list(cls.api_client, zoneid=cls.zone.id)[0].name
== "Simulator"
    +        cls.isSimulator = Hypervisor.list(
    +            cls.api_client,
    +            zoneid=cls.zone.id)[0].name == "Simulator"
    --- End diff --
    
    If the hypervisor list retrieval fails or returns an empty list, the error returned will
be ambiguous.  Please split the retrieval of the list from the indexing operation and asserts
that the hypervisor list is not ``None`` and expected length.


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

Mime
View raw message