Skip to content

Commit 4ebeb25

Browse files
add new test for configuration show unmask
Change-Id: Ib85bfa627f4ddee9e017f148c86a6d7d640bfba4
1 parent 4b86324 commit 4ebeb25

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎functional/tests/common/test_configuration.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13+
import os
14+
1315
from functional.common import test
1416

1517
BASIC_CONFIG_HEADERS = ['Field', 'Value']
@@ -21,3 +23,9 @@ def test_configuration_show(self):
2123
raw_output = self.openstack('configuration show')
2224
items = self.parse_listing(raw_output)
2325
self.assert_table_structure(items, BASIC_CONFIG_HEADERS)
26+
27+
def test_configuration_show_unmask(self):
28+
opts = "-f value -c auth.password"
29+
raw_output = self.openstack('configuration show --unmask ' + opts)
30+
passwd = os.environ['OS_PASSWORD']
31+
self.assertOutput(passwd + '\n', raw_output)

0 commit comments

Comments
 (0)