summaryrefslogtreecommitdiffstats
path: root/flags/src/test/java/com/yahoo
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2022-02-26 11:31:34 +0100
committerHarald Musum <musum@yahooinc.com>2022-02-26 11:31:34 +0100
commit0d000a2379d9e2833f1e7c26207fb36163fe2a2b (patch)
tree72ee3fa3bd03701d957adc254963326fb1b48b2c /flags/src/test/java/com/yahoo
parent484861ffd79e943ec9dcacd5b02aab8e6b91709d (diff)
Add support for architecture in HostResources
Diffstat (limited to 'flags/src/test/java/com/yahoo')
-rw-r--r--flags/src/test/java/com/yahoo/vespa/flags/PermanentFlagsTest.java9
-rw-r--r--flags/src/test/java/com/yahoo/vespa/flags/custom/SharedHostTest.java8
2 files changed, 10 insertions, 7 deletions
diff --git a/flags/src/test/java/com/yahoo/vespa/flags/PermanentFlagsTest.java b/flags/src/test/java/com/yahoo/vespa/flags/PermanentFlagsTest.java
index a4d8ecd0f29..8cac286be5e 100644
--- a/flags/src/test/java/com/yahoo/vespa/flags/PermanentFlagsTest.java
+++ b/flags/src/test/java/com/yahoo/vespa/flags/PermanentFlagsTest.java
@@ -15,11 +15,10 @@ import static com.yahoo.vespa.flags.FlagsTest.testGeneric;
class PermanentFlagsTest {
@Test
public void testSharedHostFlag() {
- SharedHost sharedHost = new SharedHost(List.of(new HostResources(
- 4.0, 16.0, 50.0, 0.3,
- "fast", "local", "admin",
- 10)),
- null);
+ SharedHost sharedHost = new SharedHost(List.of(new HostResources(4.0, 16.0, 50.0, 0.3,
+ "fast", "local", "admin",
+ 10, "x86_64")),
+ null);
testGeneric(PermanentFlags.SHARED_HOST, sharedHost);
}
diff --git a/flags/src/test/java/com/yahoo/vespa/flags/custom/SharedHostTest.java b/flags/src/test/java/com/yahoo/vespa/flags/custom/SharedHostTest.java
index 7bf39b884ef..852e1f9b7b1 100644
--- a/flags/src/test/java/com/yahoo/vespa/flags/custom/SharedHostTest.java
+++ b/flags/src/test/java/com/yahoo/vespa/flags/custom/SharedHostTest.java
@@ -12,8 +12,12 @@ import static org.junit.Assert.assertEquals;
public class SharedHostTest {
@Test
public void serialization() throws IOException {
- verifySerialization(new SharedHost(List.of(new HostResources(1.0, 2.0, 3.0, 4.0, "fast", "remote", "container", 5)), 6));
- verifySerialization(new SharedHost(List.of(new HostResources(1.0, 2.0, 3.0, 4.0, "fast", "remote", "admin", 5)), null));
+ verifySerialization(new SharedHost(List.of(
+ new HostResources(1.0, 2.0, 3.0, 4.0, "fast", "remote",
+ "container", 5, "x86_64")), 6));
+ verifySerialization(new SharedHost(List.of(
+ new HostResources(1.0, 2.0, 3.0, 4.0, "fast", "remote",
+ "admin", 5, "arm64")), null));
}
private void verifySerialization(SharedHost sharedHost) throws IOException {