CORD-VTN-Test:
  Adding credential functions to get all
  environment variables details for username,
  password, auth_url, tenant name.

Change-Id: Ida5d4c39598054619b02b5f9d85b0a4ae75c7f98
diff --git a/src/test/cordvtn/credentials.py b/src/test/cordvtn/credentials.py
new file mode 100644
index 0000000..37c92d9
--- /dev/null
+++ b/src/test/cordvtn/credentials.py
@@ -0,0 +1,57 @@
+import os
+
+def get_credentials():
+    n = {}
+    n['username'] = os.environ['OS_USERNAME']
+    n['password'] = os.environ['OS_PASSWORD']
+    n['auth_url'] = os.environ['OS_AUTH_URL']
+    n['tenant_name'] = os.environ['OS_TENANT_NAME']
+    return n
+
+def get_cinder_credentials():
+    n = [os.environ['OS_USERNAME'], os.environ['OS_PASSWORD'],
+         os.environ['OS_TENANT_NAME'], os.environ['OS_AUTH_URL']]
+    return n
+
+def get_ceilo_credentials():
+    n = {}
+    n['os_username'] = os.environ['OS_USERNAME']
+    n['os_password'] = os.environ['OS_PASSWORD']
+    n['os_auth_url'] = os.environ['OS_AUTH_URL']
+    n['os_tenant_name'] = os.environ['OS_TENANT_NAME']
+    return n
+
+def get_nova_credentials():
+    n = {}
+    n['username'] = os.environ['OS_USERNAME']
+    n['api_key'] = os.environ['OS_PASSWORD']
+    n['auth_url'] = os.environ['OS_AUTH_URL']
+    n['project_id'] = os.environ['OS_TENANT_NAME']
+    return n
+
+def get_nova_credentials_v2():
+    n = {}
+    n['version'] = '2'
+    n['username'] = os.environ['OS_USERNAME']
+    n['api_key'] = os.environ['OS_PASSWORD']
+    n['auth_url'] = os.environ['OS_AUTH_URL']
+    n['project_id'] = os.environ['OS_TENANT_NAME']
+    return n
+
+def get_nova_credentials_v3():
+    n = {}
+    n['version'] = '3'
+    n['username'] = os.environ['OS_USERNAME']
+    n['password'] = os.environ['OS_PASSWORD']
+    n['project_id'] = os.environ['OS_TENANT_NAME']
+    n['auth_url'] = os.environ['OS_AUTH_URL']
+    return n
+
+def get_nova_credentials_v11():
+    n = {}
+    n['version'] = '1.1'
+    n['username'] = os.environ['OS_USERNAME']
+    n['api_key'] = os.environ['OS_PASSWORD']
+    n['auth_url'] = os.environ['OS_AUTH_URL']
+    n['project_id'] = os.environ['OS_TENANT_NAME']
+    return n