diff options
author | Valerij Fredriksen <valerijf@oath.com> | 2018-06-21 13:01:40 +0200 |
---|---|---|
committer | Valerij Fredriksen <valerijf@oath.com> | 2018-06-21 13:01:40 +0200 |
commit | e1cbe911a69db50193aac0d38939570c281bda6a (patch) | |
tree | 070a213808a80915d12b84840b2ad3e7e271b953 /controller-api | |
parent | 802453961caed2330e6fa70ec3171d674c27e33e (diff) |
Move mock to stubs
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/stubs/MockLogStore.java | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/stubs/MockLogStore.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/stubs/MockLogStore.java new file mode 100644 index 00000000000..9ec547c2e0e --- /dev/null +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/stubs/MockLogStore.java @@ -0,0 +1,55 @@ +// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.vespa.hosted.controller.api.integration.stubs; + +import com.yahoo.config.provision.ApplicationId; +import com.yahoo.vespa.hosted.controller.api.application.v4.model.configserverbindings.ConfigChangeActions; +import com.yahoo.vespa.hosted.controller.api.identifiers.TenantId; +import com.yahoo.vespa.hosted.controller.api.integration.LogStore; +import com.yahoo.vespa.hosted.controller.api.integration.configserver.PrepareResponse; +import com.yahoo.vespa.hosted.controller.api.integration.deployment.JobType; + +import java.util.Collections; + +/** + * @author freva + */ +public class MockLogStore implements LogStore { + @Override + public String getTestLog(ApplicationId applicationId, JobType jobType, long buildId) { + return "SUCCESS"; + } + + @Override + public void setTestLog(ApplicationId applicationId, JobType jobType, long buildId, String testLog) { + + } + + @Override + public String getConvergenceLog(ApplicationId applicationId, JobType jobType, long buildId) { + return "SUCCESS"; + } + + @Override + public void setConvergenceLog(ApplicationId applicationId, JobType jobType, long buildId, String convergenceLog) { + + } + + @Override + public PrepareResponse getPrepareResponse(ApplicationId applicationId, JobType jobType, long buildId) { + PrepareResponse prepareResponse = new PrepareResponse(); + prepareResponse.message = "foo"; + prepareResponse.configChangeActions = new ConfigChangeActions(Collections.emptyList(), + Collections.emptyList()); + prepareResponse.tenant = new TenantId("tenant"); + return prepareResponse; } + + @Override + public void setPrepareResponse(ApplicationId applicationId, JobType jobType, long buildId, PrepareResponse prepareResponse) { + + } + + @Override + public void deleteTestData(ApplicationId applicationId, JobType jobType, long buildId) { + + } +} |