X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=systest%2Flib%2Fvmware%2Ffixtures.py;fp=systest%2Flib%2Fvmware%2Ffixtures.py;h=0000000000000000000000000000000000000000;hb=e5245336823411b71968e72c32b3bf33cc07638f;hp=cb6cc7b5189f4f0d006d181b2a6c37539c1de191;hpb=84fe31f632166d2fbf566968bd25aa9545e96fdc;p=osm%2Fdevops.git diff --git a/systest/lib/vmware/fixtures.py b/systest/lib/vmware/fixtures.py deleted file mode 100644 index cb6cc7b5..00000000 --- a/systest/lib/vmware/fixtures.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- - -## -# Copyright 2016-2017 VMware Inc. -# This file is part of ETSI OSM -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -# For those usages not covered by the Apache License, Version 2.0 please -# contact: osslegalrouting@vmware.com -## - -import pytest -import json - - -def vmware_add_options(parser): - parser.addoption("--vcd-url", default="", help="VMware vCloud identity url") - 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("--vcd-org", default="", help="VMware vCloud Organization name") - -@pytest.fixture -def vmware(request): - from lib.vmware import vmware - access = {} - 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['vcd-org'] = request.config.getoption("--vcd-org") - access['config'] = request.config.getoption("--vim-config") - access['vim-type'] = 'vmware' - access['description'] = 'pytest system test' - - return vmware.Vmware(access)