summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAh <Ashwini.Ah@arris.com>2018-10-04 12:08:25 +0530
committerAshwini <ashwini.ah@arris.com>2018-10-04 15:17:58 +0530
commitceacbbbc139ea848c14a7896d2a895810cadfa00 (patch)
tree228693e61c70726c7b179a61ac80dbe90009f1da
parent2f3b84630ab4176c95f7d8a1cb6cc1fedb28ef54 (diff)
Programmatically determining keystone api version
Issue-ID: TEST-39 Change-Id: Iae3c27af601a82d5e15744c682741841f76e839e Signed-off-by: Ah <Ashwini.Ah@arris.com>
-rw-r--r--robot/assets/templates/keystone_get_v2_auth.template (renamed from robot/assets/templates/keystone_get_auth.template)1
-rw-r--r--robot/assets/templates/keystone_get_v3_auth.template26
2 files changed, 27 insertions, 0 deletions
diff --git a/robot/assets/templates/keystone_get_auth.template b/robot/assets/templates/keystone_get_v2_auth.template
index c3fa82f6..97182b02 100644
--- a/robot/assets/templates/keystone_get_auth.template
+++ b/robot/assets/templates/keystone_get_v2_auth.template
@@ -7,3 +7,4 @@
}
}
}
+
diff --git a/robot/assets/templates/keystone_get_v3_auth.template b/robot/assets/templates/keystone_get_v3_auth.template
new file mode 100644
index 00000000..49623367
--- /dev/null
+++ b/robot/assets/templates/keystone_get_v3_auth.template
@@ -0,0 +1,26 @@
+{
+ "auth": {
+ "identity": {
+ "methods": [
+ "password"
+ ],
+ "password": {
+ "user": {
+ "name": "${username}",
+ "domain": {
+ "id": "${domain_id}"
+ },
+ "password": "${password}"
+ }
+ }
+
+ },
+ "scope": {
+ "project": {
+ "name": "${project_name}",
+ "domain": { "id": "${domain_id}" }
+ }
+ }
+ }
+}
+