github.com/SUSE/skuba@v1.4.17/ci/infra/testrunner/tests/test_upgrade_apply_from_previous.py (about)

     1  import pytest
     2  
     3  from tests.utils import node_is_ready, node_is_upgraded
     4  
     5  
     6  @pytest.mark.disruptive
     7  def test_upgrade_apply_from_previous(deployment, platform, skuba, kubectl):
     8      """
     9      Starting from an outdated cluster, check what node upgrade apply reports.
    10      """
    11  
    12      for role in ("master", "worker"):
    13          num_nodes = platform.get_num_nodes(role)
    14          for n in range(0, num_nodes):
    15              assert node_is_ready(platform, kubectl, role, n)
    16              result = skuba.node_upgrade("apply", role, n)
    17              assert result.find("successfully upgraded") != -1
    18              assert node_is_upgraded(kubectl, platform, role, n)