Use new path for compile version
@@ -132,7 +132,7 @@ public abstract class ControllerHttpClient {
/** Returns the Vespa version to compile against, for a hosted Vespa application. This is its lowest runtime version. */
public String compileVersion(ApplicationId id) {
- return toInspector(send(request(HttpRequest.newBuilder(applicationPath(id.tenant(), id.application()))
+ return toInspector(send(request(HttpRequest.newBuilder(compileVersionPath(id.tenant(), id.application()))
.timeout(Duration.ofSeconds(20)),
GET)))
.field("compileVersion").asString();
@@ -212,6 +212,10 @@ public abstract class ControllerHttpClient {
return concatenated(tenantPath(tenant), "application", application.value());
}
+ private URI compileVersionPath(TenantName tenant, ApplicationName application) {
+ return concatenated(applicationPath(tenant, application), "compile-version");
+ }
+
private URI instancePath(ApplicationId id) {
return concatenated(applicationPath(id.tenant(), id.application()), "instance", id.instance().value());
}
