summaryrefslogtreecommitdiffstats
path: root/tests/unit/post/test_keystoneauth.py
diff options
context:
space:
mode:
authorZhijiang Hu <hu.zhijiang@zte.com.cn>2017-09-26 02:12:23 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-26 02:12:23 +0000
commit4560b872fdfdc0800fd571efc35a0036ab2241b3 (patch)
tree7e5de8f3fa31d2291c2a2341462e06c25ece2ef1 /tests/unit/post/test_keystoneauth.py
parentfcbe5420d31bf04b1d8bdf47994c174795718e66 (diff)
parentfc12fe83562430bc406877583111ed725d08edc8 (diff)
Merge "Add some unittest files such as test_nova.py"
Diffstat (limited to 'tests/unit/post/test_keystoneauth.py')
-rw-r--r--tests/unit/post/test_keystoneauth.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unit/post/test_keystoneauth.py b/tests/unit/post/test_keystoneauth.py
index 1ae86452..1a3021ee 100644
--- a/tests/unit/post/test_keystoneauth.py
+++ b/tests/unit/post/test_keystoneauth.py
@@ -102,3 +102,13 @@ def test__parse_openrc(openrc_conf_file_dir, openrc_file_name, expected):
KeystoneClient = Keystoneauth(openrc)
ret_openrc_dict = KeystoneClient._parse_openrc()
assert expected == ret_openrc_dict
+
+
+@pytest.mark.parametrize('openrc_file_name', [
+ (
+ 'admin-openrc.sh'
+ )])
+def test__get_auth(openrc_conf_file_dir, openrc_file_name,):
+ openrc = os.path.join(openrc_conf_file_dir, openrc_file_name)
+ KeystoneClient = Keystoneauth(openrc)
+ assert KeystoneClient._get_auth()