Skip to content

Commit

Permalink
Add skeleton for test_do_not_react_to_brief_kubelet_restart
Browse files Browse the repository at this point in the history
Longhorn 7302

Signed-off-by: Eric Weber <eric.weber@suse.com>
  • Loading branch information
ejweber authored and David Ko committed Dec 29, 2023
1 parent 779fe89 commit 668ddb7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions manager/integration/tests/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -2806,3 +2806,17 @@ def test_auto_detach_volume_when_node_is_cordoned(client, core_api, volume_name)

volumes = client.list_volume().data
assert len(volumes) == 0

@pytest.mark.skip(reason="TODO") # NOQA
def test_do_not_react_to_brief_kubelet_restart():
"""
Test the node controller ignores Ready == False due to KubeletNotReady for
ten seconds before reacting.
Repeat the following five times:
1. Verify status.conditions[type == Ready] == True for the Longhorn node we
are running on.
2. Kill the kubelet process (e.g. `pkill kubelet`).
3. Verify status.conditions[type == Ready] != False for the Longhorn node
we are running on at any point for at least ten seconds.
"""

0 comments on commit 668ddb7

Please sign in to comment.