cms-PdmV / cmsPdmV

CERN CMS McM repository
4 stars 10 forks source link

Include "end-to-end" injection test cases #1137

Closed ggonzr closed 3 months ago

ggonzr commented 3 months ago

Related to: #1124

This PR refactors the previous test cases into an isolated package using poetry. Also, it includes two more test cases to submit root requests from scratch to ReqMgr2 and a "complete" MC sample up to the NanoAOD data tier. These two new test cases are skipped by default as they have to be executed inside CERN internal nodes and the user executing them has to authenticate the McM client to send requests to the development instance.

After complying with these prerequisites and setting a venv as described in the README, you can execute the test cases via:

env REQMGR2_ENABLED=True ABLE_TO_ACCESS_INTERNAL_RESOURCES=True poetry run pytest -k 'test_full_injection' -s -vv

PS: We could discuss here which other test cases are relevant to have in mind to code and about the refactor of the latest test group created in previous iterations.