Skip to content

Commit

Permalink
Remove migration system
Browse files Browse the repository at this point in the history
  • Loading branch information
tokle committed Aug 5, 2024
1 parent d4cf558 commit 5a55d61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public enum SystemName {

/** Continuous deployment system for testing the Public system */
PublicCd(true, true),
PublicCdMigration(true, true),

/** Local development system */
dev(false, false);
Expand All @@ -49,7 +48,6 @@ public static SystemName from(String value) {
case "main": return main;
case "public": return Public;
case "publiccd": return PublicCd;
case "publiccdmigration": return PublicCdMigration;
default: throw new IllegalArgumentException(String.format("'%s' is not a valid system", value));
}
}
Expand All @@ -61,7 +59,6 @@ public String value() {
case main: return "main";
case Public: return "public";
case PublicCd: return "publiccd";
case PublicCdMigration: return "publiccdmigration";
default : throw new IllegalStateException();
}
}
Expand All @@ -78,6 +75,6 @@ public static Set<SystemName> allOf(Predicate<SystemName> predicate) {
return Stream.of(values()).filter(predicate).collect(Collectors.toUnmodifiableSet());
}

public static Set<SystemName> hostedVespa() { return EnumSet.of(main, cd, Public, PublicCd, PublicCdMigration); }
public static Set<SystemName> hostedVespa() { return EnumSet.of(main, cd, Public, PublicCd); }

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void test() {

@Test
void allOf() {
assertEquals(Set.of(SystemName.cd, SystemName.PublicCd, SystemName.PublicCdMigration), SystemName.allOf(SystemName::isCd));
assertEquals(Set.of(SystemName.PublicCd, SystemName.Public, SystemName.PublicCdMigration), SystemName.allOf(SystemName::isPublic));
assertEquals(Set.of(SystemName.cd, SystemName.PublicCd), SystemName.allOf(SystemName::isCd));
assertEquals(Set.of(SystemName.PublicCd, SystemName.Public), SystemName.allOf(SystemName::isPublic));
}
}

0 comments on commit 5a55d61

Please sign in to comment.