nfv/nfv/nfv-tests/nfv_unit_tests/tests
Igor Soares b732e56b43 Account for new Kubernetes upgrade statuses
Update the Kubernetes upgrade orchestration code to account for two new
statuses: upgrade-starting and upgrade-starting-failed.

The new statuses were introduced to support updating StarlingX
applications during the kube-upgrade-start step.

Test Plan:
PASS: build-pkgs -a && build-image
PASS: sw-manager kube-upgrade-strategy create --to-version v1.27.5
      sw-manager kube-upgrade-strategy apply
      Check if Kubernetes upgrade started and finished successfully.
      sw-manager kube-upgrade-strategy delete
PASS: sw-manager kube-upgrade-strategy create --to-version v1.27.5
      sw-manager kube-upgrade-strategy apply
      sw-manager kube-upgrade-strategy abort
      Check if Kubernetes upgrade was successfully aborted.
      sw-manager kube-upgrade-strategy delete
PASS: Fresh install AIO-SX
      Create a platform-integ-apps updated tarball without the
      metadata.yaml file and copy it over to
      /usr/local/share/applications/helm/.
      sw-manager kube-upgrade-strategy create --to-version v1.27.5
      sw-manager kube-upgrade-strategy apply
      Confirm that the Kubernetes upgrade failed
      Check if Kubernetes upgrade was successfully aborted.
      sw-manager kube-upgrade-strategy delete
PASS: Fresh install AIO-DX
      Create a platform-integ-apps updated tarball without the
      metadata.yaml file and copy it over to
      /usr/local/share/applications/helm/.
      sw-manager kube-upgrade-strategy create --to-version v1.27.5
      sw-manager kube-upgrade-strategy apply
      Confirm that the Kubernetes upgrade failed
      sw-manager kube-upgrade-strategy delete
      Copy a working platform-integ-apps tarball to
      /usr/local/share/applications/helm/.
      sw-manager kube-upgrade-strategy create --to-version v1.27.5
      sw-manager kube-upgrade-strategy apply
      Confirm that the Kubernetes upgrade was resumed and successfully
      finished.
PASS: Fresh install AIO-SX with Kubernetes 1.24.4
      sw-manager kube-upgrade-strategy create --to-version v1.27.5
      sw-manager kube-upgrade-strategy apply
      Check if Kubernetes upgrade started and finished successfully.

Story: 2010929
Task: 49461

Depends-on: https://review.opendev.org/c/starlingx/config/+/905005

Change-Id: I1a8b86c9ecf8cc21a9cb25ee57d6930944cef261
Signed-off-by: Igor Soares <Igor.PiresSoares@windriver.com>
2024-02-13 14:57:23 -03:00
..
__init__.py Convert NFV unit tests from nose to stestr 2018-09-18 12:56:44 -05:00
sw_update_testcase.py Combine multiple kube-upgrades into one strategy 2023-04-28 13:10:29 +00:00
test_database_upgrades.py Add support for SQLAlchemy 1.4 to NFV 2023-01-30 21:08:56 +00:00
test_debug_config.py Unsuppress pylint E1111 assignment-from-no-return 2023-02-11 11:45:31 -05:00
test_dhcp_network_rebalance_randomized.py Cleanup pep8 un-used variable warnings 2023-03-08 15:18:00 +00:00
test_exceptions.py Debian: python3 fix for OpenStackRestAPIExceptions 2023-02-14 15:21:13 +00:00
test_fw_update_strategy.py Cleanup pep8 un-used variable warnings 2023-03-08 15:18:00 +00:00
test_instance.py Fix relative imports in nfv 2023-01-24 22:16:39 +00:00
test_instance_director.py Fix relative imports in nfv 2023-01-24 22:16:39 +00:00
test_kube_rootca_update_strategy.py Fix relative imports in nfv 2023-01-24 22:16:39 +00:00
test_kube_upgrade_strategy.py Account for new Kubernetes upgrade statuses 2024-02-13 14:57:23 -03:00
test_network_rebalance.py Fix relative imports in nfv 2023-01-24 22:16:39 +00:00
test_network_rebalance_randomized.py Cleanup pep8 un-used variable warnings 2023-03-08 15:18:00 +00:00
test_nfv_client.py Implement system_config_update orchestration 2023-07-17 17:36:44 -04:00
test_nfvi_infrastructure_api.py Adding unit tests to improve nfvi infra coverage 2023-03-01 14:10:25 +00:00
test_plugin_kubernetes_client.py Implement system_config_update orchestration 2023-07-17 17:36:44 -04:00
test_sw_patch_strategy.py Ignore PTP alarm in vim strategies 2024-02-01 17:21:58 -05:00
test_sw_upgrade_strategy.py Ignore PTP alarm in vim strategies 2024-02-01 17:21:58 -05:00
test_system_config_update_strategy.py Implement system_config_update orchestration 2023-07-17 17:36:44 -04:00
testcase.py Convert NFV unit tests from nose to stestr 2018-09-18 12:56:44 -05:00
utils.py Neutron Network Rebalancing on DHCP Agents 2019-04-03 16:11:03 -04:00