# Path: sahara_tempest_plugin/config.py



import os
from tempest import config
from tempest.test_discover import plugins
from sahara_tempest_plugin import config as sahara_config
#    under the License.






class SaharaTempestPlugin(plugins.TempestPlugin):
    def load_tests(self):
        base_path = os.path.split(os.path.dirname(
            os.path.abspath(__file__)))[0]
        test_dir = "sahara_tempest_plugin/tests"
        full_test_dir = os.path.join(base_path, test_dir)
        return full_test_dir, base_path

    def register_opts(self, conf):
        conf.register_opt(sahara_config.service_option,
                          group='service_available')
        conf.register_group(sahara_config.data_processing_group)
        conf.register_opts(sahara_config.DataProcessingGroup +
                           sahara_config.DataProcessingAdditionalGroup,
                           sahara_config.data_processing_group)

        conf.register_group(sahara_config.data_processing_feature_group)
        conf.register_opts(sahara_config.DataProcessingFeaturesGroup,
                           sahara_config.data_processing_feature_group)

    def get_opt_lists(self):
        return [
            (sahara_config.data_processing_group.name,

# Path: sahara_tempest_plugin/config.py



# Path: sahara_tempest_plugin/plugin.py
import os
from tempest import config
from tempest.test_discover import plugins
from sahara_tempest_plugin import config as sahara_config

#    under the License.






class SaharaTempestPlugin(plugins.TempestPlugin):
    def load_tests(self):
        base_path = os.path.split(os.path.dirname(
            os.path.abspath(__file__)))[0]
        test_dir = "sahara_tempest_plugin/tests"
        full_test_dir = os.path.join(base_path, test_dir)
        return full_test_dir, base_path

    def register_opts(self, conf):
        conf.register_opt(sahara_config.service_option,
                          group='service_available')
        conf.register_group(sahara_config.data_processing_group)
        conf.register_opts(sahara_config.DataProcessingGroup +
                           sahara_config.DataProcessingAdditionalGroup,
                           sahara_config.data_processing_group)

        conf.register_group(sahara_config.data_processing_feature_group)
        conf.register_opts(sahara_config.DataProcessingFeaturesGroup,
                           sahara_config.data_processing_feature_group)

    def get_opt_lists(self):
        return [
            (sahara_config.data_processing_group.name,

             sahara_config.DataProcessingGroup),