X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=systest%2Ftestcases%2Fvim%2Ftest_vim.py;h=543251684de3c4a6dc6252013fef61eff8296eee;hb=0e4186c7cd788b09bff3ce164d9c55eba42f2048;hp=5ea7077e5cc4a8cac5f6ab5e11156c7bd44d2a0b;hpb=c7a82d0be7c72183e6db9e0fb522b484f9c8df84;p=osm%2Fdevops.git diff --git a/systest/testcases/vim/test_vim.py b/systest/testcases/vim/test_vim.py index 5ea7077e..54325168 100644 --- a/systest/testcases/vim/test_vim.py +++ b/systest/testcases/vim/test_vim.py @@ -20,6 +20,7 @@ import time @pytest.mark.vim @pytest.mark.openstack +@pytest.mark.vmware class TestClass(object): def test_empty_vim(self,osm): @@ -48,3 +49,18 @@ class TestClass(object): assert resp['vim_tenants'][0]['vim_tenant_name'] == os_access['os-project-name'] assert not osm.get_api().vim.delete('pytest') + + @pytest.mark.vmware + def test_add_vim_account_vmware(self,osm,vmware,cleanup_test_add_vim_account): + os_access=vmware.get_access() + assert not osm.get_api().vim.create('pytest',os_access) + + 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 not osm.get_api().vim.delete('pytest')