Skip to content

Commit 337ddc9

Browse files
committed
Renamed test class
1 parent 2aaaefd commit 337ddc9

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

x-pack/plugin/logsdb/qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades/LogsdbIndexingRollingUpgradeIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
import java.util.Locale;
2929
import java.util.Map;
3030

31-
import static org.elasticsearch.upgrades.LogsIndexModeRollingUpgradeIT.enableLogsdbByDefault;
32-
import static org.elasticsearch.upgrades.LogsIndexModeRollingUpgradeIT.getWriteBackingIndex;
31+
import static org.elasticsearch.upgrades.StandardToLogsDbIndexModeRollingUpgradeIT.enableLogsdbByDefault;
32+
import static org.elasticsearch.upgrades.StandardToLogsDbIndexModeRollingUpgradeIT.getWriteBackingIndex;
3333
import static org.hamcrest.Matchers.containsString;
3434
import static org.hamcrest.Matchers.equalTo;
3535
import static org.hamcrest.Matchers.greaterThan;

x-pack/plugin/logsdb/qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades/MatchOnlyTextRollingUpgradeIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
import java.util.Locale;
2929
import java.util.Map;
3030

31-
import static org.elasticsearch.upgrades.LogsIndexModeRollingUpgradeIT.enableLogsdbByDefault;
32-
import static org.elasticsearch.upgrades.LogsIndexModeRollingUpgradeIT.getWriteBackingIndex;
31+
import static org.elasticsearch.upgrades.StandardToLogsDbIndexModeRollingUpgradeIT.enableLogsdbByDefault;
32+
import static org.elasticsearch.upgrades.StandardToLogsDbIndexModeRollingUpgradeIT.getWriteBackingIndex;
3333
import static org.hamcrest.Matchers.containsString;
3434
import static org.hamcrest.Matchers.equalTo;
3535
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
package org.elasticsearch.upgrades;
1111

1212
import com.carrotsearch.randomizedtesting.annotations.Name;
13+
1314
import org.elasticsearch.client.Request;
1415
import org.elasticsearch.client.Response;
1516
import org.elasticsearch.client.RestClient;
@@ -34,7 +35,7 @@
3435
/**
3536
* This test starts with LogsDB disabled, performs an upgrade, enables LogsDB and indexes some documents.
3637
*/
37-
public class LogsIndexModeRollingUpgradeIT extends AbstractRollingUpgradeWithSecurityTestCase {
38+
public class StandardToLogsDbIndexModeRollingUpgradeIT extends AbstractRollingUpgradeWithSecurityTestCase {
3839

3940
private static final String USER = "test_admin";
4041
private static final String PASS = "x-pack-test-password";
@@ -61,7 +62,7 @@ public class LogsIndexModeRollingUpgradeIT extends AbstractRollingUpgradeWithSec
6162
.setting("stack.templates.enabled", "false")
6263
.build();
6364

64-
public LogsIndexModeRollingUpgradeIT(@Name("upgradedNodes") int upgradedNodes) {
65+
public StandardToLogsDbIndexModeRollingUpgradeIT(@Name("upgradedNodes") int upgradedNodes) {
6566
super(upgradedNodes);
6667
}
6768

@@ -162,8 +163,10 @@ private String bulkIndexRequestBody() {
162163
final StringBuilder sb = new StringBuilder();
163164
for (int i = 0; i < randomIntBetween(10, 20); i++) {
164165
sb.append(
165-
BULK_INDEX_REQUEST_TEMPLATE
166-
.replace("$timestamp", DateFormatter.forPattern(FormatNames.DATE_TIME.getName()).format(Instant.now()))
166+
BULK_INDEX_REQUEST_TEMPLATE.replace(
167+
"$timestamp",
168+
DateFormatter.forPattern(FormatNames.DATE_TIME.getName()).format(Instant.now())
169+
)
167170
.replace("$hostname", randomFrom("potato.host", "tomato.host"))
168171
.replace("$method", randomFrom("PUT", "POST", "GET"))
169172
.replace("$ip", NetworkAddress.format(randomIp(randomBoolean())))

x-pack/plugin/logsdb/qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades/SyntheticSourceRollingUpgradeIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
import java.util.Map;
2323
import java.util.stream.Collectors;
2424

25-
import static org.elasticsearch.upgrades.LogsIndexModeRollingUpgradeIT.enableLogsdbByDefault;
26-
import static org.elasticsearch.upgrades.LogsIndexModeRollingUpgradeIT.getWriteBackingIndex;
2725
import static org.elasticsearch.upgrades.MatchOnlyTextRollingUpgradeIT.createTemplate;
2826
import static org.elasticsearch.upgrades.MatchOnlyTextRollingUpgradeIT.formatInstant;
2927
import static org.elasticsearch.upgrades.MatchOnlyTextRollingUpgradeIT.getIndexSettingsWithDefaults;
3028
import static org.elasticsearch.upgrades.MatchOnlyTextRollingUpgradeIT.startTrial;
29+
import static org.elasticsearch.upgrades.StandardToLogsDbIndexModeRollingUpgradeIT.enableLogsdbByDefault;
30+
import static org.elasticsearch.upgrades.StandardToLogsDbIndexModeRollingUpgradeIT.getWriteBackingIndex;
3131
import static org.hamcrest.Matchers.both;
3232
import static org.hamcrest.Matchers.emptyIterable;
3333
import static org.hamcrest.Matchers.equalTo;

0 commit comments

Comments
 (0)