From 43567e1f53e756772316ea7f0850fdc1602f2f73 Mon Sep 17 00:00:00 2001 From: Jon Marius Venstad Date: Wed, 30 Mar 2022 14:42:10 +0200 Subject: Fix unit test --- .../java/com/yahoo/vespa/config/server/ApplicationRepositoryTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configserver') 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()); } -- cgit v1.2.3