def openstack(request):
from lib.openstack import openstack
access = {}
- access['os-url'] = request.config.getoption("--os-url")
- access['os-username'] = request.config.getoption("--os-username")
- access['os-password'] = request.config.getoption("--os-password")
- access['os-project-name'] = request.config.getoption("--os-project-name")
+ access['vim-url'] = request.config.getoption("--os-url")
+ access['vim-username'] = request.config.getoption("--os-username")
+ access['vim-password'] = request.config.getoption("--os-password")
+ access['vim-tenant-name'] = request.config.getoption("--os-project-name")
access['vim-type'] = 'openstack'
access['description'] = 'pytest system test'
def vmware(request):
from lib.vmware import vmware
access = {}
- access['vcd-url'] = request.config.getoption("--vcd-url")
- access['vcd-username'] = request.config.getoption("--vcd-username")
- access['vcd-password'] = request.config.getoption("--vcd-password")
- access['vcd-tenant-name'] = request.config.getoption("--vcd-tenant-name")
+ access['vim-url'] = request.config.getoption("--vcd-url")
+ access['vim-username'] = request.config.getoption("--vcd-username")
+ access['vim-password'] = request.config.getoption("--vcd-password")
+ access['vim-tenant-name'] = request.config.getoption("--vcd-tenant-name")
access['config'] = request.config.getoption("--config")
access['vim-type'] = 'vmware'
access['description'] = 'pytest system test'
resp=osm.get_api().vim.get('pytest')
assert resp['name'] == 'pytest'
assert resp['type'] == 'openstack'
- assert resp['vim_url'] == os_access['os-url']
- assert resp['vim_url_admin'] == os_access['os-url']
- assert resp['vim_tenants'][0]['user'] == os_access['os-username']
- assert resp['vim_tenants'][0]['vim_tenant_name'] == os_access['os-project-name']
+ assert resp['vim_url'] == os_access['vim-url']
+ assert resp['vim_url_admin'] == os_access['vim-url']
+ assert resp['vim_tenants'][0]['user'] == os_access['vim-username']
+ assert resp['vim_tenants'][0]['vim_tenant_name'] == os_access['vim-tenant-name']
assert not osm.get_api().vim.delete('pytest')
resp=osm.get_api().vim.get('pytest')
assert resp['name'] == 'pytest'
assert resp['type'] == 'vmware'
- assert resp['vim_url'] == os_access['vcd-url']
- assert resp['vim_url_admin'] == os_access['vcd-url']
- assert resp['vim_tenants'][0]['user'] == os_access['vcd-username']
- assert resp['vim_tenants'][0]['vim_tenant_name'] == os_access['vcd-tenant-name']
+ assert resp['vim_url'] == os_access['vim-url']
+ assert resp['vim_url_admin'] == os_access['vim-url']
+ assert resp['vim_tenants'][0]['user'] == os_access['vim-username']
+ assert resp['vim_tenants'][0]['vim_tenant_name'] == os_access['vim-tenant-name']
assert not osm.get_api().vim.delete('pytest')