behave_tests: refactor TestAPI DB lookup 98/73598/2
authorGwenael Lambrouin <gwenael.lambrouin@orange.com>
Fri, 3 Jun 2022 15:54:16 +0000 (17:54 +0200)
committerGwenael Lambrouin <gwenael.lambrouin@orange.com>
Thu, 27 Oct 2022 13:52:22 +0000 (15:52 +0200)
commit87d88eab6fe50101abc607857f13af9273aef80a
tree3cbe2963b8998b949b95ce8bea7a76378732dccf
parente2faa91512043386aa3a11ca44792bd3c009db76
behave_tests: refactor TestAPI DB lookup

- use testapi.TestapiClient everywhere
- relax search constraints: match only project name (nfvbench), test
  case name (characterization or non-regression), scenario tag
  (throughput or latency) and user_label (test chain identifier:
  identifies, among other things, the platform, the compute class under
  test, ...)
- add unit tests for some of the related behave steps

Change-Id: I26763f845c2286601cb958b326525b29320a1627
Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
behave_tests/features/steps/steps.py
behave_tests/features/steps/testapi.py
test/ut_behave_tests/test_data/project=nfvbench&case=non-regression&criteria=PASS&page=1.json [new file with mode: 0644]
test/ut_behave_tests/test_steps.py [new file with mode: 0644]
test/ut_behave_tests/test_testapi.py