quipucords / camayoc

Test automation framework that facilitates functional testing of quipucords.
https://camayoc.readthedocs.io/
GNU General Public License v3.0
5 stars 4 forks source link

Update error messages received during source creation #383

Closed mirekdlugosz closed 1 year ago

mirekdlugosz commented 1 year ago

Error messages received when trying to create source changed, causing tests to fail.

I update all messages in one go, as 2 of them are checked in one test, and another in next one. But since all are next to each other, I think it's cleaner this way.

$ RUN_SCANS=False pytest -v -s 'camayoc/tests/qpc/api/v1/sources/test_manager_sources.py::test_negative_create_multiple' 'camayoc/tests/qpc/api/v1/sources/test_sources_common.py::test_create_exclude_hosts_negative'
camayoc/tests/qpc/api/v1/sources/test_manager_sources.py::test_negative_create_multiple[vcenter-scan_host0] PASSED
camayoc/tests/qpc/api/v1/sources/test_manager_sources.py::test_negative_create_multiple[vcenter-scan_host1] PASSED
camayoc/tests/qpc/api/v1/sources/test_manager_sources.py::test_negative_create_multiple[satellite-scan_host0] PASSED
camayoc/tests/qpc/api/v1/sources/test_manager_sources.py::test_negative_create_multiple[satellite-scan_host1] PASSED
camayoc/tests/qpc/api/v1/sources/test_sources_common.py::test_create_exclude_hosts_negative[satellite-localhost] PASSED
camayoc/tests/qpc/api/v1/sources/test_sources_common.py::test_create_exclude_hosts_negative[satellite-127.0.0.1] PASSED
camayoc/tests/qpc/api/v1/sources/test_sources_common.py::test_create_exclude_hosts_negative[satellite-example.com] PASSED
camayoc/tests/qpc/api/v1/sources/test_sources_common.py::test_create_exclude_hosts_negative[vcenter-localhost] PASSED
camayoc/tests/qpc/api/v1/sources/test_sources_common.py::test_create_exclude_hosts_negative[vcenter-127.0.0.1] PASSED
camayoc/tests/qpc/api/v1/sources/test_sources_common.py::test_create_exclude_hosts_negative[vcenter-example.com] PASSED

============================================================================ 10 passed in 46.25s =============================================================================
codecov[bot] commented 1 year ago

Codecov Report

Merging #383 (945ded1) into master (d06972e) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #383   +/-   ##
=======================================
  Coverage   79.91%   79.91%           
=======================================
  Files           5        5           
  Lines         229      229           
=======================================
  Hits          183      183           
  Misses         46       46           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more