diff --git a/manager/integration/tests/test_scheduling.py b/manager/integration/tests/test_scheduling.py index 5b801b703f..4cde8e212c 100644 --- a/manager/integration/tests/test_scheduling.py +++ b/manager/integration/tests/test_scheduling.py @@ -1725,6 +1725,38 @@ def finalizer(): @pytest.mark.skip(reason="TODO") +def test_allow_empty_node_selector_volume_setting(): # NOQA + """ + Test the global setting allow-empty-node-selector-volume + + If true, a replica of the volume without node selector + can be scheduled on node with tags. + + If false, a replica of the volume without node selector + can not be scheduled on node with tags. + + Setup + - Prepare 3 nodes + - Add `AVAIL` tag to nodes + - Set allow-empty-node-selector-volume to `false` + + When + - Create a Volume with 3 replicas without tag + + Then + - All replicas can not be scheduled to the nodes + + When + - Remove `AVAIL` tag from one of the node + - Set allow-empty-node-selector-volume to `true` + + Then + - Wait for a while for controller to resync the volume, + all replicas can be scheduled to the nodes + """ + pass + + def test_global_disk_soft_anti_affinity(): # NOQA """ 1. When Replica Disk Soft Anti-Affinity is false, it should be impossible @@ -1775,6 +1807,38 @@ def test_global_disk_soft_anti_affinity(): # NOQA @pytest.mark.skip(reason="TODO") +def test_allow_empty_disk_selector_volume_setting(): # NOQA + """ + Test the global setting allow-empty-disk-selector-volume + + If true, a replica of the volume without disk selector + can be scheduled on disk with tags. + + If false, a replica of the volume without disk selector + can not be scheduled on disk with tags. + + Setup + - Prepare 3 nodes each with one disk + - Add `AVAIL` tag to every disk + - Set allow-empty-disk-selector-volume to `false` + + When + - Create a Volume with 3 replicas without tag + + Then + - All replicas can not be scheduled to the disks on the nodes + + When + - Remove `AVAIL` tag from one of the node + - Set allow-empty-disk-selector-volume to `true` + + Then + - Wait for a while for controller to resync the volume, + all replicas can be scheduled to the disks on the nodes + """ + pass + + def test_volume_disk_soft_anti_affinity(): # NOQA """ 1. When Replica Disk Soft Anti-Affinity is disabled, it should be