blob: af2277add8d1c33145902f92ba4afa9125871ae8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
DESCRIPTION = "The OpenStack Integration Test Suite"
HOMEPAGE = "https://launchpad.net/tempest"
SECTION = "devel/python"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
PR = "r0"
SRCNAME = "tempest"
inherit setuptools identity hosts
SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
file://tempest.conf \
file://logging.conf \
"
SRCREV="6273339e2da725b01560b6a2db11a3bf7a6659d7"
PV="2013.2+git${SRCPV}"
S = "${WORKDIR}/git"
do_install_append() {
TEMPLATE_CONF_DIR=${S}${sysconfdir}/
TEMPEST_CONF_DIR=${D}${sysconfdir}/${SRCNAME}
sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" -i ${WORKDIR}/tempest.conf
sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/tempest.conf
sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" -i ${WORKDIR}/tempest.conf
sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/tempest.conf
sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/tempest.conf
sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${WORKDIR}/tempest.conf
sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${WORKDIR}/tempest.conf
sed -e "s:%COMPUTE_IP%:${COMPUTE_IP}:g" -i ${WORKDIR}/tempest.conf
sed -e "s:%COMPUTE_HOST%:${COMPUTE_HOST}:g" -i ${WORKDIR}/tempest.conf
sed -e "s:%ADMIN_PASSWORD%:${ADMIN_PASSWORD}:g" -i ${WORKDIR}/tempest.conf
sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" -i ${WORKDIR}/tempest.conf
install -d ${TEMPEST_CONF_DIR}
install -d ${TEMPEST_CONF_DIR}/tests
install -m 600 ${WORKDIR}/tempest.conf ${TEMPEST_CONF_DIR}
install -m 600 ${WORKDIR}/logging.conf ${TEMPEST_CONF_DIR}
install -m 600 ${TEMPLATE_CONF_DIR}/*.yaml ${TEMPEST_CONF_DIR}
# relocate tests to somewhere less cryptic, which means we pull them out of
# site-packages and put them in /etc/tempest/tests/
for t in api cli scenario stress thirdparty; do
ln -s ${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/$t ${TEMPEST_CONF_DIR}/tests/
done
}
PACKAGES =+ "${SRCNAME}-tests"
FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/tests/*"
FILES_${PN} = "${libdir}/* \
${sysconfdir}/* \
"
RDEPENDS_${PN} += " \
${SRCNAME}-tests \
python-mox \
python-mock \
python-hp3parclient \
python-oauth2 \
python-testrepository \
python-fixtures \
python-keyring \
python-glanceclient \
python-keystoneclient \
python-swiftclient \
python-novaclient \
python-cinderclient \
python-heatclient \
python-pbr \
python-anyjson \
python-nose \
python-httplib2 \
python-jsonschema \
python-testtools \
python-lxml \
python-boto \
python-paramiko \
python-netaddr \
python-testresources \
python-oslo.config \
python-eventlet \
python-six \
python-iso8601 \
python-mimeparse \
python-flake8 \
"
|