config/sysinv/sysinv/sysinv/sysinv/tests/common
David Bastos fa5855845c Create unit tests for the metadata validation logic
These changes organize and add more unit tests to
the Validate_metadata_file function.

Improvements implemented:
  - A separate test file was created to be exclusive
    to the app_metadata.py file.
  - Data input was organized in external files.
  - Unit tests added individually to each key in the
    yaml file.

Test plan:
PASS: Run tox py39, pylint  and verify that they are
      all passing.
PASS: The output of the 'tox -e cover' was improved
      from 13% to 58%. Within the same file there are
      other functions to be tested that are not the
      scope of this demand.

Story: 2010929
Task: 49834

Change-Id: If4bdb734990582f302b1e0d20179e02c524de546
Signed-off-by: David Bastos <david.barbosabastos@windriver.com>
2024-04-12 11:47:30 -03:00
..
data Create unit tests for the metadata validation logic 2024-04-12 11:47:30 -03:00
__init__.py Adding support for displaying kubernetes versions 2019-10-23 14:10:10 -05:00
test_app_metadata.py Create unit tests for the metadata validation logic 2024-04-12 11:47:30 -03:00
test_etcd.py Remove k8s 1.27 deprecated command line argument from sysinv unit tests 2023-12-05 02:39:34 -05:00
test_health.py Remove PSP policy check for k8s v1.25+ 2023-09-22 07:12:42 -04:00
test_kubernetes.py Update system:node clusterrolebinding for new host 2024-02-26 21:34:11 +00:00
test_utils.py Move bootstrap endpoint reconfig from puppet to sysinv 2024-02-27 13:56:31 -03:00