From 3d42eb41e7919897916d42b92edb92c1ad9eec60 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 10 Nov 2015 14:16:01 +0100 Subject: tests: remove unused testmods This was old test files used by pre-oslo.config code. Not useful anymore. Change-Id: I3617c6fbe7d079dc783b4f752aeaa65d920ffcd1 --- tests/testmods/__init__.py | 0 tests/testmods/baar_baa_opt.py | 21 --------------------- tests/testmods/bar_foo_opt.py | 21 --------------------- tests/testmods/blaa_opt.py | 25 ------------------------- tests/testmods/fbaar_baa_opt.py | 21 --------------------- tests/testmods/fbar_foo_opt.py | 21 --------------------- tests/testmods/fblaa_opt.py | 21 --------------------- tests/testmods/unicode_opt.py | 23 ----------------------- 8 files changed, 153 deletions(-) delete mode 100644 tests/testmods/__init__.py delete mode 100644 tests/testmods/baar_baa_opt.py delete mode 100644 tests/testmods/bar_foo_opt.py delete mode 100644 tests/testmods/blaa_opt.py delete mode 100644 tests/testmods/fbaar_baa_opt.py delete mode 100644 tests/testmods/fbar_foo_opt.py delete mode 100644 tests/testmods/fblaa_opt.py delete mode 100644 tests/testmods/unicode_opt.py diff --git a/tests/testmods/__init__.py b/tests/testmods/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/testmods/baar_baa_opt.py b/tests/testmods/baar_baa_opt.py deleted file mode 100644 index 4011c92f..00000000 --- a/tests/testmods/baar_baa_opt.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2012 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from oslo_config import cfg - -CONF = cfg.CONF - -opt = cfg.StrOpt('baa') - -CONF.register_opt(opt, group='baar') diff --git a/tests/testmods/bar_foo_opt.py b/tests/testmods/bar_foo_opt.py deleted file mode 100644 index 1a1cfabc..00000000 --- a/tests/testmods/bar_foo_opt.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2012 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from oslo_config import cfg - -CONF = cfg.CONF - -opt = cfg.StrOpt('foo') - -CONF.register_opt(opt, group='bar') diff --git a/tests/testmods/blaa_opt.py b/tests/testmods/blaa_opt.py deleted file mode 100644 index b40f0f86..00000000 --- a/tests/testmods/blaa_opt.py +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 2013 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from oslo_config import cfg - -CONF = cfg.CONF - -opts = [ - cfg.StrOpt('blaa', default="blaa"), - # duplicated option - cfg.StrOpt('blaa', default="blaa"), -] - -CONF.register_opts(opts) diff --git a/tests/testmods/fbaar_baa_opt.py b/tests/testmods/fbaar_baa_opt.py deleted file mode 100644 index 4e8e6acc..00000000 --- a/tests/testmods/fbaar_baa_opt.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2012 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from oslo_config import cfg - -CONF = cfg.CONF - -opt = cfg.StrOpt('baa') - -CONF.register_opt(opt, group='fbaar') diff --git a/tests/testmods/fbar_foo_opt.py b/tests/testmods/fbar_foo_opt.py deleted file mode 100644 index 634959ef..00000000 --- a/tests/testmods/fbar_foo_opt.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2013 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from oslo_config import cfg - -CONF = cfg.CONF - -opt = cfg.StrOpt('foo') - -CONF.register_opt(opt, group='fbar') diff --git a/tests/testmods/fblaa_opt.py b/tests/testmods/fblaa_opt.py deleted file mode 100644 index ceaffbb0..00000000 --- a/tests/testmods/fblaa_opt.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2012 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from oslo_config import cfg - -CONF = cfg.CONF - -opt = cfg.StrOpt('fblaa') - -CONF.register_opt(opt) diff --git a/tests/testmods/unicode_opt.py b/tests/testmods/unicode_opt.py deleted file mode 100644 index cd5bc10c..00000000 --- a/tests/testmods/unicode_opt.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2014 IBM Corp. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from oslo_config import cfg - -CONF = cfg.CONF - -# Use a unicode value that causes an exception if str() is used -opt = cfg.StrOpt('unicode_opt', default="unicode_default", - help=u'helpful message with unicode char: \xE7\x94\xB5') - -CONF.register_opt(opt, group='unicode_group') -- cgit v1.2.1