Exemplo n.º 1
0
 def skip_checks(cls):
     super(FixedIPsNegativeTestJson, cls).skip_checks()
     if CONF.service_available.neutron:
         msg = ("%s skipped as neutron is available" % cls.__name__)
         raise cls.skipException(msg)
     if not utils.get_service_list()['network']:
         raise cls.skipException("network service not enabled.")
Exemplo n.º 2
0
 def skip_checks(cls):
     super(FixedIPsNegativeTestJson, cls).skip_checks()
     if CONF.service_available.neutron:
         msg = ("%s skipped as neutron is available" % cls.__name__)
         raise cls.skipException(msg)
     if not utils.get_service_list()['network']:
         raise cls.skipException("network service not enabled.")
Exemplo n.º 3
0
 def test_services_list(self):
     service_list = utils.get_service_list()
     for service in service_list:
         try:
             self._test_services_helper(service)
         except exceptions.InvalidServiceTag:
             self.fail('%s is not listed in the valid service tag list' %
                       service)
         except KeyError:
             # NOTE(mtreinish): This condition is to test for an entry in
             # the outer decorator list but not in the service_list dict.
             # However, because we're looping over the service_list dict
             # it's unlikely we'll trigger this. So manual review is still
             # need for the list in the outer decorator.
             self.fail('%s is in the list of valid service tags but there '
                       'is no corresponding entry in the dict returned from'
                       ' get_service_list()' % service)
         except testtools.TestCase.skipException:
             # Test didn't raise an exception because of an incorrect list
             # entry so move onto the next entry
             continue
Exemplo n.º 4
0
 def test_services_list(self):
     service_list = utils.get_service_list()
     for service in service_list:
         try:
             self._test_services_helper(service)
         except exceptions.InvalidServiceTag:
             self.fail('%s is not listed in the valid service tag list'
                       % service)
         except KeyError:
             # NOTE(mtreinish): This condition is to test for an entry in
             # the outer decorator list but not in the service_list dict.
             # However, because we're looping over the service_list dict
             # it's unlikely we'll trigger this. So manual review is still
             # need for the list in the outer decorator.
             self.fail('%s is in the list of valid service tags but there '
                       'is no corresponding entry in the dict returned from'
                       ' get_service_list()' % service)
         except testtools.TestCase.skipException:
             # Test didn't raise an exception because of an incorrect list
             # entry so move onto the next entry
             continue
Exemplo n.º 5
0
 def skip_checks(cls):
     super(BaseSecurityGroupsTest, cls).skip_checks()
     if not utils.get_service_list()['network']:
         raise cls.skipException("network service not enabled.")
Exemplo n.º 6
0
 def skip_checks(cls):
     super(FloatingIPsTestJSON, cls).skip_checks()
     if not utils.get_service_list()['network']:
         raise cls.skipException("network service not enabled.")
     if not CONF.network_feature_enabled.floating_ips:
         raise cls.skipException("Floating ips are not available")
Exemplo n.º 7
0
 def skip_checks(cls):
     super(ServersTestBootFromVolume, cls).skip_checks()
     if not utils.get_service_list()['volume']:
         msg = "Volume service not enabled."
         raise cls.skipException(msg)
Exemplo n.º 8
0
 def skip_checks(cls):
     super(BaseSecurityGroupsTest, cls).skip_checks()
     if not utils.get_service_list()['network']:
         raise cls.skipException("network service not enabled.")
Exemplo n.º 9
0
 def skip_checks(cls):
     super(ServersTestBootFromVolume, cls).skip_checks()
     if not utils.get_service_list()['volume']:
         msg = "Volume service not enabled."
         raise cls.skipException(msg)
Exemplo n.º 10
0
 def skip_checks(cls):
     super(BaseFloatingIPsTest, cls).skip_checks()
     if not utils.get_service_list()['network']:
         raise cls.skipException("network service not enabled.")
     if not CONF.network_feature_enabled.floating_ips:
         raise cls.skipException("Floating ips are not available")