summaryrefslogtreecommitdiff
path: root/gnu/packages/openstack.scm
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2022-07-20 21:49:40 +0200
committerHartmut Goebel <h.goebel@crazy-compilers.com>2022-08-10 09:38:58 +0200
commitb08a3554a4577f7fb1557f296aa189bc220e7138 (patch)
treea565bcf3920a247a013d927424709040d6e04260 /gnu/packages/openstack.scm
parent8a4faff132fddc4ff6f26778787cd60e9732d6b3 (diff)
gnu: Add python-tempest.
* gnu/packages/openstack.scm (python-tempest): New variable.
Diffstat (limited to 'gnu/packages/openstack.scm')
-rw-r--r--gnu/packages/openstack.scm58
1 files changed, 58 insertions, 0 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index e84c9ac7bcb..5bf5983541d 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -346,6 +346,64 @@ classes for implementing common patterns for using dynamically loaded
346extensions.") 346extensions.")
347 (license asl2.0))) 347 (license asl2.0)))
348 348
349(define-public python-tempest
350 (package
351 (name "python-tempest")
352 (version "31.1.0")
353 (source (origin
354 (method url-fetch)
355 (uri (pypi-uri "tempest" version))
356 (sha256
357 (base32
358 "1bh250n0cf68jm68jd7pcrgf7zbsv74cq590ar1n002sijfcb80i"))))
359 (build-system python-build-system)
360 (arguments
361 `(#:phases
362 (modify-phases %standard-phases
363 (add-after 'unpack 'relax-requirements
364 (lambda _
365 (substitute* "test-requirements.txt"
366 ;; unused, code-quality checks only
367 (("hacking[<>!=]" line) (string-append "# " line))
368 (("flake8-.*[<>!=]" line) (string-append "# " line))
369 (("pycodestyle[<>!=]" line) (string-append "# " line))
370 (("coverage[<>!=]" line) (string-append "# " line)))))
371 (add-before 'check 'setup-check
372 (lambda _
373 (substitute* "tempest/tests/lib/cli/test_execute.py"
374 (("cli_base.execute\\(\"env\",")
375 (string-append "cli_base.execute('" (which "env") "',")))))
376 (replace 'check
377 (lambda* (#:key tests? #:allow-other-keys)
378 (when tests?
379 (invoke "stestr" "--test-path" "./tempest/tests" "run")))))))
380 (propagated-inputs (list python-cliff
381 python-cryptography
382 python-debtcollector
383 python-fixtures
384 python-jsonschema
385 python-netaddr
386 python-oslo.concurrency
387 python-oslo.config
388 python-oslo.log
389 python-oslo.serialization
390 python-oslo.utils
391 python-paramiko
392 python-prettytable
393 python-pyyaml
394 python-stevedore
395 python-subunit
396 python-testtools
397 python-urllib3))
398 (native-inputs (list python-oslotest python-pbr python-stestr python-hacking))
399 (home-page "https://docs.openstack.org/tempest/latest/")
400 (synopsis "OpenStack Integration Testing")
401 (description "This is a set of integration tests to be run against a live
402OpenStack cluster. Tempest has batteries of tests for OpenStack API
403validation, scenarios, and other specific tests useful in validating an
404OpenStack deployment.")
405 (license asl2.0)))
406
349(define-public python-tempest-lib 407(define-public python-tempest-lib
350 (package 408 (package
351 (name "python-tempest-lib") 409 (name "python-tempest-lib")