Пример #1
0
    def test_list_scrubber_opts(self):
        opt_list = opts.list_scrubber_opts()
        expected_opt_groups = [None]
        expected_opt_names = [
            'debug', 'verbose', 'log-config-append', 'log-format',
            'log-date-format', 'log-file', 'log-dir', 'use-syslog',
            'use-syslog-rfc-format', 'syslog-log-facility', 'policy_file',
            'policy_default_rule', 'allow_additional_image_properties',
            'image_member_quota', 'image_property_quota', 'image_tag_quota',
            'image_location_quota', 'data_api', 'limit_param_default',
            'api_limit_max', 'show_image_direct_url',
            'show_multiple_locations', 'image_size_cap', 'user_storage_quota',
            'enable_v1_api', 'enable_v2_api', 'enable_v1_registry',
            'enable_v2_registry', 'pydev_worker_debug_host',
            'pydev_worker_debug_port', 'metadata_encryption_key',
            'disable_process_locking', 'lock_path', 'scrubber_datadir',
            'scrub_time', 'cleanup_scrubber', 'delayed_delete',
            'cleanup_scrubber_time', 'wakeup_time', 'daemon', 'use_user_token',
            'admin_user', 'admin_password', 'admin_tenant_name', 'auth_url',
            'auth_strategy', 'auth_region', 'registry_host', 'registry_port'
        ]

        self._check_opt_groups(opt_list, expected_opt_groups)
        self._check_opt_names(opt_list, expected_opt_names)
        self._test_entry_point('glance.scrubber', expected_opt_groups,
                               expected_opt_names)
    def test_list_scrubber_opts(self):
        opt_list = opts.list_scrubber_opts()
        expected_opt_groups = [
            None
        ]
        expected_opt_names = [
            'allow_additional_image_properties',
            'image_member_quota',
            'image_property_quota',
            'image_tag_quota',
            'image_location_quota',
            'data_api',
            'limit_param_default',
            'api_limit_max',
            'show_image_direct_url',
            'show_multiple_locations',
            'image_size_cap',
            'user_storage_quota',
            'enable_v1_api',
            'enable_v2_api',
            'enable_v1_registry',
            'enable_v2_registry',
            'pydev_worker_debug_host',
            'pydev_worker_debug_port',
            'metadata_encryption_key',
            'scrubber_datadir',
            'scrub_time',
            'cleanup_scrubber',
            'delayed_delete',
            'cleanup_scrubber_time',
            'wakeup_time',
            'daemon',
            'use_user_token',
            'admin_user',
            'admin_password',
            'admin_tenant_name',
            'auth_url',
            'auth_strategy',
            'auth_region',
            'registry_host',
            'registry_port',
            'digest_algorithm',
        ]

        self._check_opt_groups(opt_list, expected_opt_groups)
        self._check_opt_names(opt_list, expected_opt_names)
        self._test_entry_point('glance.scrubber',
                               expected_opt_groups, expected_opt_names)