add new test for configuration show unmask
Change-Id: Ib85bfa627f4ddee9e017f148c86a6d7d640bfba4
This commit is contained in:
@@ -10,6 +10,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
from functional.common import test
|
from functional.common import test
|
||||||
|
|
||||||
BASIC_CONFIG_HEADERS = ['Field', 'Value']
|
BASIC_CONFIG_HEADERS = ['Field', 'Value']
|
||||||
@@ -21,3 +23,9 @@ class ConfigurationTests(test.TestCase):
|
|||||||
raw_output = self.openstack('configuration show')
|
raw_output = self.openstack('configuration show')
|
||||||
items = self.parse_listing(raw_output)
|
items = self.parse_listing(raw_output)
|
||||||
self.assert_table_structure(items, BASIC_CONFIG_HEADERS)
|
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)
|
||||||
|
Reference in New Issue
Block a user