Skip to content

Commit c388d63

Browse files
committed
add skeleton rolling upgrade test
1 parent 520a950 commit c388d63

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
package org.elasticsearch.upgrades;
11+
12+
import com.carrotsearch.randomizedtesting.annotations.Name;
13+
14+
public class TVBackportRollingUpgradeIT extends AbstractRollingUpgradeTestCase {
15+
16+
public TVBackportRollingUpgradeIT(@Name("upgradedNodes") int upgradedNodes) {
17+
super(upgradedNodes);
18+
}
19+
20+
public void testTVBackport() {
21+
if (isOldCluster()) {
22+
// TODO: Implement the test for old cluster
23+
} else if (isMixedCluster()) {
24+
// TODO: Test mixed cluster behavior
25+
} else if (isUpgradedCluster()) {
26+
// TODO: Test upgraded cluster behavior
27+
} else {
28+
fail("Unknown cluster state");
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)