diff options
author | Morten Tokle <mortent@verizonmedia.com> | 2021-12-14 08:35:52 +0100 |
---|---|---|
committer | Morten Tokle <mortent@verizonmedia.com> | 2021-12-14 08:36:53 +0100 |
commit | 59ae4058e6107f276bdb22bcd018f36927d9da4a (patch) | |
tree | ff3d1553c97541ddfcd23e9d485aed091bfca5e1 /cloud-tenant-cd/src | |
parent | f16f20804691546bba8c234c47fb713ab9db1a18 (diff) |
Provide feed client builder implementation
Diffstat (limited to 'cloud-tenant-cd/src')
-rw-r--r-- | cloud-tenant-cd/src/main/java/ai/vespa/hosted/cd/cloud/impl/VespaTestRuntime.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cloud-tenant-cd/src/main/java/ai/vespa/hosted/cd/cloud/impl/VespaTestRuntime.java b/cloud-tenant-cd/src/main/java/ai/vespa/hosted/cd/cloud/impl/VespaTestRuntime.java index db9072e6198..201ddcb3908 100644 --- a/cloud-tenant-cd/src/main/java/ai/vespa/hosted/cd/cloud/impl/VespaTestRuntime.java +++ b/cloud-tenant-cd/src/main/java/ai/vespa/hosted/cd/cloud/impl/VespaTestRuntime.java @@ -10,6 +10,7 @@ import ai.vespa.hosted.api.TestConfig; import ai.vespa.hosted.cd.Deployment; import ai.vespa.hosted.cd.TestRuntime; import ai.vespa.hosted.cd.commons.HttpDeployment; +import ai.vespa.hosted.cd.commons.FeedClientBuilder; import com.yahoo.config.provision.ApplicationId; import com.yahoo.config.provision.Environment; import com.yahoo.config.provision.zone.ZoneId; @@ -39,7 +40,10 @@ public class VespaTestRuntime implements TestRuntime { } private VespaTestRuntime(TestConfig config) { this.config = config; - this.deploymentToTest = new HttpDeployment(config.deployments().get(config.zone()), new DefaultEndpointAuthenticator(config.system())); + DefaultEndpointAuthenticator authenticator = new DefaultEndpointAuthenticator(config.system()); + this.deploymentToTest = new HttpDeployment(config.deployments().get(config.zone()), authenticator); + FeedClientBuilder.setEndpointAuthenticator(authenticator); + System.setProperty(ai.vespa.feed.client.FeedClientBuilder.PREFERRED_IMPLEMENTATION_PROPERTY, FeedClientBuilder.class.getName()); } @Override |