2021-09-13 22:09:20 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, pbr
|
|
|
|
, cliff
|
|
|
|
, jsonschema
|
|
|
|
, testtools
|
|
|
|
, paramiko
|
|
|
|
, netaddr
|
|
|
|
, oslo-concurrency
|
|
|
|
, oslo-config
|
|
|
|
, oslo-log
|
|
|
|
, stestr
|
|
|
|
, oslo-serialization
|
|
|
|
, oslo-utils
|
|
|
|
, fixtures
|
|
|
|
, pyyaml
|
|
|
|
, subunit
|
|
|
|
, stevedore
|
|
|
|
, prettytable
|
|
|
|
, urllib3
|
|
|
|
, debtcollector
|
|
|
|
, unittest2
|
|
|
|
, hacking
|
|
|
|
, oslotest
|
|
|
|
, bash
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "tempest";
|
2021-11-15 11:07:08 +01:00
|
|
|
version = "29.2.0";
|
2021-09-13 22:09:20 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-15 11:07:08 +01:00
|
|
|
sha256 = "0521d3042360c0fb469b16f99174a9abddbae8a2d2a81268cfc664f1ccfdd0f9";
|
2021-09-13 22:09:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pbr
|
|
|
|
cliff
|
|
|
|
jsonschema
|
|
|
|
testtools
|
|
|
|
paramiko
|
|
|
|
netaddr
|
|
|
|
oslo-concurrency
|
|
|
|
oslo-config
|
|
|
|
oslo-log
|
|
|
|
stestr
|
|
|
|
oslo-serialization
|
|
|
|
oslo-utils
|
|
|
|
fixtures
|
|
|
|
pyyaml
|
|
|
|
subunit
|
|
|
|
stevedore
|
|
|
|
prettytable
|
|
|
|
urllib3
|
|
|
|
debtcollector
|
|
|
|
unittest2
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
stestr
|
|
|
|
hacking
|
|
|
|
oslotest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
# Tests expect these applications available as such.
|
|
|
|
mkdir -p bin
|
|
|
|
export PATH="$PWD/bin:$PATH"
|
|
|
|
printf '#!${bash}/bin/bash\nexec ${python3.interpreter} -m tempest.cmd.main "$@"\n' > bin/tempest
|
|
|
|
printf '#!${bash}/bin/bash\nexec ${python3.interpreter} -m tempest.cmd.subunit_describe_calls "$@"\n' > bin/subunit-describe-calls
|
|
|
|
chmod +x bin/*
|
|
|
|
|
|
|
|
stestr --test-path tempest/tests run -e <(echo "
|
|
|
|
tempest.tests.lib.cli.test_execute.TestExecute.test_execute_with_prefix
|
|
|
|
")
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "tempest" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An OpenStack integration test suite that runs against live OpenStack cluster and validates an OpenStack deployment";
|
|
|
|
homepage = "https://github.com/openstack/tempest";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|