You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by of...@apache.org on 2020/02/06 11:32:21 UTC
[incubator-dlab] branch DLAB-1476 created (now f92304d)
This is an automated email from the ASF dual-hosted git repository.
ofuks pushed a change to branch DLAB-1476
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git.
at f92304d Changed configs
This branch includes the following new commits:
new f92304d Changed configs
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org
[incubator-dlab] 01/01: Changed configs
Posted by of...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ofuks pushed a commit to branch DLAB-1476
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit f92304d147d00e9dc51fe5682316b965ca8426c8
Author: Oleh Fuks <ol...@gmail.com>
AuthorDate: Thu Feb 6 13:32:01 2020 +0200
Changed configs
---
.../java/com/epam/dlab/backendapi/modules/ProductionModule.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/modules/ProductionModule.java b/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/modules/ProductionModule.java
index 40744fa..5e4e07d 100644
--- a/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/modules/ProductionModule.java
+++ b/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/modules/ProductionModule.java
@@ -24,6 +24,7 @@ import com.epam.dlab.backendapi.ProvisioningServiceApplicationConfiguration;
import com.epam.dlab.backendapi.core.DockerWarmuper;
import com.epam.dlab.backendapi.core.MetadataHolder;
import com.epam.dlab.backendapi.core.commands.CommandExecutor;
+import com.epam.dlab.backendapi.core.commands.CommandExecutorMock;
import com.epam.dlab.backendapi.core.commands.ICommandExecutor;
import com.epam.dlab.backendapi.core.response.handlers.dao.CallbackHandlerDao;
import com.epam.dlab.backendapi.core.response.handlers.dao.FileSystemCallbackHandlerDao;
@@ -67,7 +68,11 @@ public class ProductionModule extends ModuleBase<ProvisioningServiceApplicationC
bind(RESTService.class).toInstance(configuration.getSelfFactory().build(environment, ServiceConsts
.SELF_SERVICE_NAME));
bind(MetadataHolder.class).to(DockerWarmuper.class);
- bind(ICommandExecutor.class).to(CommandExecutor.class).asEagerSingleton();
+ if (true) {
+ bind(ICommandExecutor.class).toInstance(new CommandExecutorMock(configuration.getCloudProvider()));
+ } else {
+ bind(ICommandExecutor.class).to(CommandExecutor.class).asEagerSingleton();
+ }
bind(ObjectMapper.class).toInstance(new ObjectMapper().configure(JsonParser.Feature.AUTO_CLOSE_SOURCE, true));
bind(CallbackHandlerDao.class).to(FileSystemCallbackHandlerDao.class);
bind(RestoreCallbackHandlerService.class).to(RestoreCallbackHandlerServiceImpl.class);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org