centos:
disk_file:
/home/opnfv/functest/images/CentOS-7-x86_64-GenericCloud.qcow2
- # netconf_override:
- # network_type: vlan
- # physical_network: physnet2
- # segmentation_id: 2366
+# netconf_override:
+# network_type: vlan
+# physical_network: physnet2
+# segmentation_id: 2366
# All of these values are optional and will override the values retrieved
# by the RC file
import logging
import time
+import uuid
import functest.core.testcase as base
from functest.utils.constants import CONST
snaps_creds,
UserConfig(
name=self.tenant_name,
- password=self.tenant_name,
+ password=str(uuid.uuid4()),
roles={'admin': self.tenant_name}))
user_creator.create()
self.snaps_creds, 'identity')
self.__logger.info("Set creds for cloudify manager")
- cfy_creds = dict(keystone_username=self.tenant_name,
- keystone_password=self.tenant_name,
- keystone_tenant_name=self.tenant_name,
+ cfy_creds = dict(keystone_username=self.snaps_creds.username,
+ keystone_password=self.snaps_creds.password,
+ keystone_tenant_name=self.snaps_creds.project_name,
keystone_url=public_auth_url)
cfy_client = CloudifyClient(host=manager_creator.get_floating_ip().ip,
self.snaps_creds, 'identity')
self.creds = {
- "tenant": self.tenant_name,
- "username": self.tenant_name,
- "password": self.tenant_name,
+ "tenant": self.snaps_creds.project_name,
+ "username": self.snaps_creds.username,
+ "password": self.snaps_creds.password,
"auth_url": public_auth_url
}
self.prepare_images()
self.logger.info("Additional pre-configuration steps")
self.creds = {
- "tenant": self.tenant_name,
- "username": self.tenant_name,
- "password": self.tenant_name,
+ "tenant": self.snaps_creds.project_name,
+ "username": self.snaps_creds.username,
+ "password": self.snaps_creds.password,
"auth_url": public_auth_url
}
self.prepare_images()
functest/ci
functest/opnfv_tests/vnf
commands =
- yamllint {[testenv:yamllint]files}
+ yamllint -s {[testenv:yamllint]files}
[testenv:py35]
dirs =