summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/robot/data/test_data.py2
-rw-r--r--testing/robot/lib/FDSLibrary.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/testing/robot/data/test_data.py b/testing/robot/data/test_data.py
index 86ca8fc..fe7a2cc 100644
--- a/testing/robot/data/test_data.py
+++ b/testing/robot/data/test_data.py
@@ -23,7 +23,7 @@ port2_name = 'fds_smoke_port2_' + run_uuid
subnet_cidr = '192.168.10.0/24'
vm_flavor = 'nfv-fds'
vm_image = 'cirros-0.3.5'
-image_path = '/home/opnfv/functest/data/cirros-0.3.5-x86_64-disk.img'
+image_path = '/home/opnfv/functest/images/cirros-0.3.5-x86_64-disk.img'
userdata1 = "#!/bin/sh\n\nsudo ip a add {}/24 dev eth0\n while true; do echo curl_passed | nc -l -p 80; done\n".format(vm1_address)
userdata2 = "#!/bin/sh\n\nsudo ip a add {}/24 dev eth0\nwhile true; do\n ping -c 1 {} 2>&1 >/dev/null\n " \
"RES=$?\n if [ \"Z$RES\" = \"Z0\" ] ; then\n echo 'ping PASSED'\n break\n else\n echo " \
diff --git a/testing/robot/lib/FDSLibrary.py b/testing/robot/lib/FDSLibrary.py
index 829bbcb..8e64399 100644
--- a/testing/robot/lib/FDSLibrary.py
+++ b/testing/robot/lib/FDSLibrary.py
@@ -25,9 +25,10 @@ class FDSLibrary():
if os.getenv('OS_IDENTITY_API_VERSION') == '3':
auth = v3.Password(auth_url=os.getenv('OS_AUTH_URL'),
username=os.getenv('OS_USERNAME'),
+ user_domain_name=os.getenv('OS_USER_DOMAIN_NAME'),
password=os.getenv('OS_PASSWORD'),
- project_id=os.getenv('OS_PROJECT_ID'),
- user_domain_name=os.getenv('OS_USER_DOMAIN_NAME'))
+ project_name=os.getenv('OS_PROJECT_NAME'),
+ project_domain_name=os.getenv('OS_PROJECT_DOMAIN_NAME'))
else:
auth = v2.Password(username=os.getenv('OS_USERNAME'),
password=os.getenv('OS_PASSWORD'),