Makefile code changes for cirros test for VMware vCD connector
Change-Id: If04f5d78de0435405403344d9ab17710cb355f6d
Signed-off-by: kasar <pkasar@vmware.com>
diff --git a/systest/lib/vim/fixtures.py b/systest/lib/vim/fixtures.py
index e552bbc..6b4404d 100644
--- a/systest/lib/vim/fixtures.py
+++ b/systest/lib/vim/fixtures.py
@@ -22,6 +22,6 @@
pass
@pytest.fixture
-def vim(request,osm,openstack):
+def vim(request,osm,openstack,vmware):
from lib.vim import vim
- return vim.Vim(osm,openstack)
+ return vim.Vim(osm,openstack,vmware)
diff --git a/systest/lib/vim/vim.py b/systest/lib/vim/vim.py
index 98bda38..f3d1753 100644
--- a/systest/lib/vim/vim.py
+++ b/systest/lib/vim/vim.py
@@ -18,7 +18,7 @@
class Vim():
- def __init__(self,osm,openstack):
+ def __init__(self,osm,openstack,vmware):
self.vim_name='pytest'
try:
osm.get_api().vim.get(self.vim_name)
diff --git a/systest/lib/vmware/fixtures.py b/systest/lib/vmware/fixtures.py
index 78ee80c..cb6cc7b 100644
--- a/systest/lib/vmware/fixtures.py
+++ b/systest/lib/vmware/fixtures.py
@@ -30,7 +30,7 @@
parser.addoption("--vcd-username", default="", help="VMware vCloud username")
parser.addoption("--vcd-password", default="", help="VMware vCloud password")
parser.addoption("--vcd-tenant-name", default="", help="VMware vCloud tenant name")
- parser.addoption("--config", default="", help="VMware vCloud config paramters")
+ parser.addoption("--vcd-org", default="", help="VMware vCloud Organization name")
@pytest.fixture
def vmware(request):
@@ -40,7 +40,8 @@
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['vcd-org'] = request.config.getoption("--vcd-org")
+ access['config'] = request.config.getoption("--vim-config")
access['vim-type'] = 'vmware'
access['description'] = 'pytest system test'