
from tempest import config
from tempest import test


CONF = config.CONF


class HeatDriverNeutronDNSIntegration(test.BaseTestCase):

    @classmethod
    def skip_checks(cls):
        super(HeatDriverNeutronDNSIntegration, cls).skip_checks()
        if not getattr(CONF.service_available, 'dns', False):
            raise cls.skipException('Designate support is required')
        if not getattr(CONF.service_available, 'orchestration', False):
            raise cls.skipException('Heat support is required')

    def test_port_on_extenal_net_to_dns(self):
        pass

    def test_floating_ip_with_name_from_port_to_dns(self):
        pass

    def test_floating_ip_with_own_name_to_dns(self):
        pass


from tempest import config
from tempest import test


CONF = config.CONF


class HeatDriverNeutronDNSIntegration(test.BaseTestCase):

    @classmethod
    def skip_checks(cls):
        super(HeatDriverNeutronDNSIntegration, cls).skip_checks()
        if not getattr(CONF.service_available, 'designate', False):
            raise cls.skipException('Designate support is required')
        if not getattr(CONF.service_available, 'heat_plugin', False):
            raise cls.skipException('Heat support is required')

    def test_port_on_extenal_net_to_dns(self):
        pass

    def test_floating_ip_with_name_from_port_to_dns(self):
        pass

    def test_floating_ip_with_own_name_to_dns(self):
        pass

Fix the skip to match plugins
Fix the skip to match plugins

  
  from tempest import config
  from tempest import test
  
  
  CONF = config.CONF
  
  
  class HeatDriverNeutronDNSIntegration(test.BaseTestCase):
  
      @classmethod
      def skip_checks(cls):
          super(HeatDriverNeutronDNSIntegration, cls).skip_checks()
-         if not getattr(CONF.service_available, 'dns', False):
+         if not getattr(CONF.service_available, 'designate', False):
              raise cls.skipException('Designate support is required')
-         if not getattr(CONF.service_available, 'orchestration', False):
+         if not getattr(CONF.service_available, 'heat_plugin', False):
              raise cls.skipException('Heat support is required')
  
      def test_port_on_extenal_net_to_dns(self):
          pass
  
      def test_floating_ip_with_name_from_port_to_dns(self):
          pass
  
      def test_floating_ip_with_own_name_to_dns(self):
          pass
  
Fix the skip to match plugins
## Code Before:

from tempest import config
from tempest import test


CONF = config.CONF


class HeatDriverNeutronDNSIntegration(test.BaseTestCase):

    @classmethod
    def skip_checks(cls):
        super(HeatDriverNeutronDNSIntegration, cls).skip_checks()
        if not getattr(CONF.service_available, 'dns', False):
            raise cls.skipException('Designate support is required')
        if not getattr(CONF.service_available, 'orchestration', False):
            raise cls.skipException('Heat support is required')

    def test_port_on_extenal_net_to_dns(self):
        pass

    def test_floating_ip_with_name_from_port_to_dns(self):
        pass

    def test_floating_ip_with_own_name_to_dns(self):
        pass

## Instruction:
Fix the skip to match plugins
## Code After:

from tempest import config
from tempest import test


CONF = config.CONF


class HeatDriverNeutronDNSIntegration(test.BaseTestCase):

    @classmethod
    def skip_checks(cls):
        super(HeatDriverNeutronDNSIntegration, cls).skip_checks()
        if not getattr(CONF.service_available, 'designate', False):
            raise cls.skipException('Designate support is required')
        if not getattr(CONF.service_available, 'heat_plugin', False):
            raise cls.skipException('Heat support is required')

    def test_port_on_extenal_net_to_dns(self):
        pass

    def test_floating_ip_with_name_from_port_to_dns(self):
        pass

    def test_floating_ip_with_own_name_to_dns(self):
        pass
