# limitations under the License.
import os
-from pathlib import Path
import yaml
from get_clouds_yaml_info import get_values_from_cloud, get_vim_values
-# VIM Configuration
-vim_account_type = "openstack"
-vim_name = "basic_08_vim_test"
+# Variables to be used by the testsuite
+VIM_ACCOUNT_TYPE = "openstack"
+VIM_NAME = "basic_08_vim_test"
+VIM_USER = ""
+VIM_PASSWORD = ""
+VIM_AUTH_URL = ""
+VIM_TENANT = ""
+VIM_CONFIG = ""
# Get credentials from Openstack clouds file
cloud, os_cloud = get_values_from_cloud()
(
- vim_user,
- vim_password,
- vim_auth_url,
- vim_tenant,
+ VIM_USER,
+ VIM_PASSWORD,
+ VIM_AUTH_URL,
+ VIM_TENANT,
vim_user_domain_name,
vim_project_domain_name,
vim_insecure,
vim_config_dict["insecure"] = True
vim_config_dict["disable_network_port_security"] = True
vim_config_dict["management_network_name"] = os.environ.get("VIM_MGMT_NET")
-vim_config = "'{}'".format(
+VIM_CONFIG = "'{}'".format(
yaml.safe_dump(vim_config_dict, default_flow_style=True, width=10000).rstrip("\r\n")
)
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = "hackfest_multivdu_vnf"
-nsd_pkg = "hackfest_multivdu_ns"
-# NS and VNF descriptor id
-vnfd_name = "hackfest_multivdu-vnf"
-nsd_name = "hackfest_multivdu-ns"
-# NS instance name
-ns_name = "basic_08_disable_port_security_network_level_test"
-# SSH keys to be used
-publickey = home + "/.ssh/id_rsa.pub"
-privatekey = home + "/.ssh/id_rsa"