aboutsummaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2022-03-30 14:42:10 +0200
committerJon Marius Venstad <venstad@gmail.com>2022-03-30 14:42:10 +0200
commit43567e1f53e756772316ea7f0850fdc1602f2f73 (patch)
tree9174ab532736e7d8cfc2207612824f3fbeeec632 /configserver
parent06f6b985addf8c8ef5e60a1c3202b4002fdfd959 (diff)
Fix unit test
Diffstat (limited to 'configserver')
-rw-r--r--configserver/src/test/java/com/yahoo/vespa/config/server/ApplicationRepositoryTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/ApplicationRepositoryTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/ApplicationRepositoryTest.java
index 5804fcb8ad5..2586911891f 100644
--- a/configserver/src/test/java/com/yahoo/vespa/config/server/ApplicationRepositoryTest.java
+++ b/configserver/src/test/java/com/yahoo/vespa/config/server/ApplicationRepositoryTest.java
@@ -1,6 +1,7 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server;
+import ai.vespa.validation.Hostname;
import com.yahoo.cloud.config.ConfigserverConfig;
import com.yahoo.component.Version;
import com.yahoo.config.ConfigInstance;
@@ -253,7 +254,7 @@ public class ApplicationRepositoryTest {
public void getLogsForHostname() {
ApplicationId applicationId = ApplicationId.from("hosted-vespa", "tenant-host", "default");
deployApp(testAppLogServerWithContainer, new PrepareParams.Builder().applicationId(applicationId).build());
- HttpResponse response = applicationRepository.getLogs(applicationId, Optional.of("localhost"), "");
+ HttpResponse response = applicationRepository.getLogs(applicationId, Optional.of(Hostname.localhost), "");
assertEquals(200, response.getStatus());
}