Programmatically determining keystone api version
Issue-ID: TEST-39
Change-Id: Iae3c27af601a82d5e15744c682741841f76e839e
Signed-off-by: Ah <Ashwini.Ah@arris.com>
diff --git a/robot/assets/templates/keystone_get_auth.template b/robot/assets/templates/keystone_get_v2_auth.template
similarity index 99%
rename from robot/assets/templates/keystone_get_auth.template
rename to robot/assets/templates/keystone_get_v2_auth.template
index c3fa82f..97182b0 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 0000000..4962336
--- /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}" }
+ }
+ }
+ }
+}
+