robottelo
robottelo copied to clipboard
[6.13.z] Remove nailgun.entities imports in pytest_fixtures
Cherrypick of PR: https://github.com/SatelliteQE/robottelo/pull/15084
Problem Statement
SAT-22530
Uses of nailgun.entities.${ENTITY}
should be replaced with ${SATELLITE_INSTANCE}.api.${ENTITY}
.
Solution
All fixtures under pytest_fixtures/
now use nailgun through the satellite instance's api
attribute, and imports of nailgun.entities
have been removed.
Test results are the same before and after these changes.
with PR changes:
PRT job #6979:
18:53:58 =========================== short test summary info ============================
18:53:58 FAILED tests/foreman/api/test_host.py::test_positive_create_and_update_with_user [...]
18:53:58 FAILED tests/foreman/ui/test_ldap_authentication.py::test_verify_group_permissions [...]
18:53:58 ERROR tests/foreman/api/test_oscappolicy.py::TestOscapPolicy::test_positive_crud_scap_policy [...]
18:53:58 = 2 failed, 13 passed, 1 skipped, 617 warnings, 1 error in 3674.62s (1:01:14) ==
master:
PRT job #6996:
16:30:58 =========================== short test summary info ============================
16:30:58 FAILED tests/foreman/api/test_host.py::test_positive_create_and_update_with_user [...]
16:30:58 FAILED tests/foreman/ui/test_ldap_authentication.py::test_verify_group_permissions [...]
16:30:58 ERROR tests/foreman/api/test_oscappolicy.py::TestOscapPolicy::test_positive_crud_scap_policy [...]
16:30:58 = 2 failed, 13 passed, 1 skipped, 610 warnings, 1 error in 3667.19s (1:01:07) ==