summaryrefslogtreecommitdiff
path: root/functional/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-07-30 20:30:57 +0000
committerGerrit Code Review <review@openstack.org>2015-07-30 20:30:57 +0000
commit811ed669ad45f72d5c0973fa84b5b8f9876c4905 (patch)
treee39a5da48abbe36a0b5b7f814ac6933557da06f3 /functional/tests
parentf03eca3f05d61914ad4c97cefe6499404185bc06 (diff)
parent4ebeb25b237b40028bd22b7a66ed3b8e2f17efe7 (diff)
downloadpython-openstackclient-811ed669ad45f72d5c0973fa84b5b8f9876c4905.tar.gz
Merge "add new test for configuration show unmask"
Diffstat (limited to 'functional/tests')
-rw-r--r--functional/tests/common/test_configuration.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/functional/tests/common/test_configuration.py b/functional/tests/common/test_configuration.py
index 400fd0c4..94a624d2 100644
--- a/functional/tests/common/test_configuration.py
+++ b/functional/tests/common/test_configuration.py
@@ -10,6 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
+import os
+
from functional.common import test
BASIC_CONFIG_HEADERS = ['Field', 'Value']
@@ -21,3 +23,9 @@ class ConfigurationTests(test.TestCase):
raw_output = self.openstack('configuration show')
items = self.parse_listing(raw_output)
self.assert_table_structure(items, BASIC_CONFIG_HEADERS)
+
+ def test_configuration_show_unmask(self):
+ opts = "-f value -c auth.password"
+ raw_output = self.openstack('configuration show --unmask ' + opts)
+ passwd = os.environ['OS_PASSWORD']
+ self.assertOutput(passwd + '\n', raw_output)