Skip to content

Commit

Permalink
Add more test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Chun-Hung Tseng <[email protected]>
  • Loading branch information
Chun-Hung Tseng committed Jan 29, 2025
1 parent 01690d8 commit 25dd631
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/e2e/cluster_downgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,22 @@ func TestDowngradeCancellationAfterDowngrading2InClusterOf3(t *testing.T) {
testDowngradeUpgrade(t, 2, 3, false, cancelAfterDowngrading)
}

func TestDowngradeCancellationAfterDowngrading1InClusterOf5(t *testing.T) {
testDowngradeUpgrade(t, 1, 5, false, cancelAfterDowngrading)
}

func TestDowngradeCancellationAfterDowngrading2InClusterOf5(t *testing.T) {
testDowngradeUpgrade(t, 2, 5, false, cancelAfterDowngrading)
}

func TestDowngradeCancellationAfterDowngrading3InClusterOf5(t *testing.T) {
testDowngradeUpgrade(t, 3, 5, false, cancelAfterDowngrading)
}

func TestDowngradeCancellationAfterDowngrading4InClusterOf5(t *testing.T) {
testDowngradeUpgrade(t, 4, 5, false, cancelAfterDowngrading)
}

func testDowngradeUpgrade(t *testing.T, numberOfMembersToDowngrade int, clusterSize int, triggerSnapshot bool, triggerCancellation CancellationState) {
currentEtcdBinary := e2e.BinPath.Etcd
lastReleaseBinary := e2e.BinPath.EtcdLastRelease
Expand Down

0 comments on commit 25dd631

Please sign in to comment.