from unittest import TestCase
from lexicon.providers.ovh import Provider
from lexicon.common.options_handler import env_auth_options
from integration_tests import IntegrationTests

# Hook into testing framework by inheriting unittest.TestCase and reuse
# the tests which *each and every* implementation of the interface must
# pass, by inheritance from integration_tests.IntegrationTests
class OvhProviderTests(TestCase, IntegrationTests):

    Provider = Provider
    provider_name = 'ovh'
    domain = 'elogium.net'

    def _filter_headers(self):
        return ['X-Ovh-Application', 'X-Ovh-Consumer', 'X-Ovh-Signature']

    # Override _test_options to call env_auth_options and then import auth config from env variables
    def _test_options(self):
        cmd_options = env_auth_options(self.provider_name)
        cmd_options['domain'] = self.domain
        return cmd_options

from unittest import TestCase
from lexicon.providers.ovh import Provider
from lexicon.common.options_handler import env_auth_options
from integration_tests import IntegrationTests

# Hook into testing framework by inheriting unittest.TestCase and reuse
# the tests which *each and every* implementation of the interface must
# pass, by inheritance from integration_tests.IntegrationTests
class OvhProviderTests(TestCase, IntegrationTests):

    Provider = Provider
    provider_name = 'ovh'
    domain = 'elogium.net'

    def _filter_headers(self):
        return ['X-Ovh-Application', 'X-Ovh-Consumer', 'X-Ovh-Signature']

    # Override _test_options to call env_auth_options and then import auth config from env variables
    def _test_options(self):
        cmd_options = env_auth_options(self.provider_name)
        cmd_options['auth_entrypoint'] = 'ovh-eu'
        cmd_options['domain'] = self.domain
        return cmd_options

Select ovh-eu entrypoint for test integration
Select ovh-eu entrypoint for test integration

  from unittest import TestCase
  from lexicon.providers.ovh import Provider
  from lexicon.common.options_handler import env_auth_options
  from integration_tests import IntegrationTests
  
  # Hook into testing framework by inheriting unittest.TestCase and reuse
  # the tests which *each and every* implementation of the interface must
  # pass, by inheritance from integration_tests.IntegrationTests
  class OvhProviderTests(TestCase, IntegrationTests):
  
      Provider = Provider
      provider_name = 'ovh'
      domain = 'elogium.net'
  
      def _filter_headers(self):
          return ['X-Ovh-Application', 'X-Ovh-Consumer', 'X-Ovh-Signature']
  
      # Override _test_options to call env_auth_options and then import auth config from env variables
      def _test_options(self):
          cmd_options = env_auth_options(self.provider_name)
+         cmd_options['auth_entrypoint'] = 'ovh-eu'
          cmd_options['domain'] = self.domain
          return cmd_options
  
Select ovh-eu entrypoint for test integration
## Code Before:
from unittest import TestCase
from lexicon.providers.ovh import Provider
from lexicon.common.options_handler import env_auth_options
from integration_tests import IntegrationTests

# Hook into testing framework by inheriting unittest.TestCase and reuse
# the tests which *each and every* implementation of the interface must
# pass, by inheritance from integration_tests.IntegrationTests
class OvhProviderTests(TestCase, IntegrationTests):

    Provider = Provider
    provider_name = 'ovh'
    domain = 'elogium.net'

    def _filter_headers(self):
        return ['X-Ovh-Application', 'X-Ovh-Consumer', 'X-Ovh-Signature']

    # Override _test_options to call env_auth_options and then import auth config from env variables
    def _test_options(self):
        cmd_options = env_auth_options(self.provider_name)
        cmd_options['domain'] = self.domain
        return cmd_options

## Instruction:
Select ovh-eu entrypoint for test integration
## Code After:
from unittest import TestCase
from lexicon.providers.ovh import Provider
from lexicon.common.options_handler import env_auth_options
from integration_tests import IntegrationTests

# Hook into testing framework by inheriting unittest.TestCase and reuse
# the tests which *each and every* implementation of the interface must
# pass, by inheritance from integration_tests.IntegrationTests
class OvhProviderTests(TestCase, IntegrationTests):

    Provider = Provider
    provider_name = 'ovh'
    domain = 'elogium.net'

    def _filter_headers(self):
        return ['X-Ovh-Application', 'X-Ovh-Consumer', 'X-Ovh-Signature']

    # Override _test_options to call env_auth_options and then import auth config from env variables
    def _test_options(self):
        cmd_options = env_auth_options(self.provider_name)
        cmd_options['auth_entrypoint'] = 'ovh-eu'
        cmd_options['domain'] = self.domain
        return cmd_options
