Skip to content

Commit

Permalink
Update upgrade lines
Browse files Browse the repository at this point in the history
  • Loading branch information
michalxo committed Sep 27, 2024
1 parent 6d4faff commit 20edaaf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ public abstract class UpgradeTests extends AbstractSystemTests {
protected static int messagesReceivedTotal = 0;
protected static int upgradeCount;

private static final String VERSION = "version";
private static final String ARTEMIS_VERSION = "artemisVersion";
private static final String ARTEMIS_ZIP_URL = "artemisZipUrl";

Stream<? extends Arguments> getUpgradePlanArguments() {
LOGGER.info("[UpgradeTestPlan] {}", getEnvironment().getTestUpgradePlanContent());
ArrayList<HashMap<String, String>> mapped = new Yaml().load(getEnvironment().getTestUpgradePlanContent());
messagesSentInitials = 2000 * (mapped.size() - 1);
messagesReceivePartial = messagesSentInitials / (mapped.size() - 1);
upgradeCount = mapped.size();
return mapped.stream().map(line ->
Arguments.of(line.get("version"), line.get("artemis_version"), line.get("artemis_zip_url"))
Arguments.of(line.get(VERSION), line.get(ARTEMIS_VERSION), line.get(ARTEMIS_ZIP_URL))
);
}

Expand Down

0 comments on commit 20edaaf

Please sign in to comment.