Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GIlca committed Feb 16, 2023
1 parent 07600d1 commit 978faf2
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import io.cloudslang.lang.runtime.bindings.scripts.ScriptEvaluator;
import io.cloudslang.lang.runtime.services.ScriptsService;
import io.cloudslang.runtime.api.python.PythonExecutorConfigurationDataService;
import io.cloudslang.runtime.api.python.PythonExecutorLifecycleManagerService;
import io.cloudslang.runtime.api.python.PythonRuntimeService;
import io.cloudslang.runtime.api.python.entities.PythonExecutorDetails;
import io.cloudslang.runtime.impl.python.PythonExecutionCachedEngine;
Expand All @@ -31,6 +32,7 @@
import io.cloudslang.runtime.impl.python.PythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.executor.ExternalPythonExecutorServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorCommunicationServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorLifecycleManagerServiceImpl;
import io.cloudslang.runtime.impl.python.external.ExternalPythonExecutionEngine;
import io.cloudslang.runtime.impl.python.external.ExternalPythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.external.StatefulRestEasyClientsHolder;
Expand Down Expand Up @@ -473,6 +475,12 @@ public PythonExecutorCommunicationServiceImpl pythonExecutorCommunicationService
mock(StatefulRestEasyClientsHolder.class), mock(PythonExecutorConfigurationDataService.class));
}

@Bean(name = "pythonExecutorLifecycleManagerService")
public PythonExecutorLifecycleManagerService pythonExecutorLifecycleManagerService() {
return new PythonExecutorLifecycleManagerServiceImpl(pythonExecutorCommunicationService(),
pythonExecutorConfigurationDataService());
}

@Bean(name = "externalPythonExecutorService")
public PythonRuntimeService externalPythonExecutorService() {
return new ExternalPythonExecutorServiceImpl(new Semaphore(100), new Semaphore(50));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
import io.cloudslang.lang.runtime.bindings.scripts.ScriptEvaluator;
import io.cloudslang.lang.runtime.services.ScriptsService;
import io.cloudslang.runtime.api.python.PythonExecutorConfigurationDataService;
import io.cloudslang.runtime.api.python.PythonExecutorLifecycleManagerService;
import io.cloudslang.runtime.api.python.PythonRuntimeService;
import io.cloudslang.runtime.api.python.entities.PythonExecutorDetails;
import io.cloudslang.runtime.impl.python.PythonExecutionCachedEngine;
import io.cloudslang.runtime.impl.python.PythonExecutionEngine;
import io.cloudslang.runtime.impl.python.PythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.executor.ExternalPythonExecutorServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorCommunicationServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorLifecycleManagerServiceImpl;
import io.cloudslang.runtime.impl.python.external.ExternalPythonExecutionEngine;
import io.cloudslang.runtime.impl.python.external.ExternalPythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.external.StatefulRestEasyClientsHolder;
Expand Down Expand Up @@ -572,6 +574,12 @@ public PythonExecutorCommunicationServiceImpl pythonExecutorCommunicationService
mock(StatefulRestEasyClientsHolder.class), mock(PythonExecutorConfigurationDataService.class));
}

@Bean(name = "pythonExecutorLifecycleManagerService")
public PythonExecutorLifecycleManagerService pythonExecutorLifecycleManagerService() {
return new PythonExecutorLifecycleManagerServiceImpl(pythonExecutorCommunicationService(),
pythonExecutorConfigurationDataService());
}

@Bean(name = "externalPythonExecutorService")
public PythonRuntimeService externalPythonExecutorService() {
return new ExternalPythonExecutorServiceImpl(new Semaphore(100), new Semaphore(50));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
import io.cloudslang.lang.runtime.services.ScriptsService;
import io.cloudslang.lang.runtime.steps.ReadOnlyContextAccessor;
import io.cloudslang.runtime.api.python.PythonExecutorConfigurationDataService;
import io.cloudslang.runtime.api.python.PythonExecutorLifecycleManagerService;
import io.cloudslang.runtime.api.python.PythonRuntimeService;
import io.cloudslang.runtime.api.python.entities.PythonExecutorDetails;
import io.cloudslang.runtime.impl.python.PythonExecutionCachedEngine;
import io.cloudslang.runtime.impl.python.PythonExecutionEngine;
import io.cloudslang.runtime.impl.python.PythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.executor.ExternalPythonExecutorServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorCommunicationServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorLifecycleManagerServiceImpl;
import io.cloudslang.runtime.impl.python.external.ExternalPythonExecutionEngine;
import io.cloudslang.runtime.impl.python.external.ExternalPythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.external.StatefulRestEasyClientsHolder;
Expand Down Expand Up @@ -280,6 +282,12 @@ public PythonExecutorCommunicationServiceImpl pythonExecutorCommunicationService
mock(StatefulRestEasyClientsHolder.class), mock(PythonExecutorConfigurationDataService.class));
}

@Bean(name = "pythonExecutorLifecycleManagerService")
public PythonExecutorLifecycleManagerService pythonExecutorLifecycleManagerService() {
return new PythonExecutorLifecycleManagerServiceImpl(pythonExecutorCommunicationService(),
pythonExecutorConfigurationDataService());
}

@Bean(name = "externalPythonExecutorService")
public PythonRuntimeService externalPythonExecutorService() {
return new ExternalPythonExecutorServiceImpl(new Semaphore(100), new Semaphore(50));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
import io.cloudslang.lang.runtime.bindings.scripts.ScriptEvaluator;
import io.cloudslang.lang.runtime.services.ScriptsService;
import io.cloudslang.runtime.api.python.PythonExecutorConfigurationDataService;
import io.cloudslang.runtime.api.python.PythonExecutorLifecycleManagerService;
import io.cloudslang.runtime.api.python.PythonRuntimeService;
import io.cloudslang.runtime.api.python.entities.PythonExecutorDetails;
import io.cloudslang.runtime.impl.python.PythonExecutionCachedEngine;
import io.cloudslang.runtime.impl.python.PythonExecutionEngine;
import io.cloudslang.runtime.impl.python.PythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.executor.ExternalPythonExecutorServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorCommunicationServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorLifecycleManagerServiceImpl;
import io.cloudslang.runtime.impl.python.external.ExternalPythonExecutionEngine;
import io.cloudslang.runtime.impl.python.external.ExternalPythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.external.StatefulRestEasyClientsHolder;
Expand Down Expand Up @@ -257,6 +259,12 @@ public PythonExecutorCommunicationServiceImpl pythonExecutorCommunicationService
mock(StatefulRestEasyClientsHolder.class), mock(PythonExecutorConfigurationDataService.class));
}

@Bean(name = "pythonExecutorLifecycleManagerService")
public PythonExecutorLifecycleManagerService pythonExecutorLifecycleManagerService() {
return new PythonExecutorLifecycleManagerServiceImpl(pythonExecutorCommunicationService(),
pythonExecutorConfigurationDataService());
}

@Bean(name = "externalPythonExecutorService")
public PythonRuntimeService externalPythonExecutorService() {
return new ExternalPythonExecutorServiceImpl(new Semaphore(100), new Semaphore(50));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
import io.cloudslang.lang.runtime.services.ScriptsService;
import io.cloudslang.runtime.api.python.PythonEvaluationResult;
import io.cloudslang.runtime.api.python.PythonExecutorConfigurationDataService;
import io.cloudslang.runtime.api.python.PythonExecutorLifecycleManagerService;
import io.cloudslang.runtime.api.python.PythonRuntimeService;
import io.cloudslang.runtime.api.python.entities.PythonExecutorDetails;
import io.cloudslang.runtime.impl.python.PythonExecutionCachedEngine;
import io.cloudslang.runtime.impl.python.PythonExecutionEngine;
import io.cloudslang.runtime.impl.python.PythonExecutor;
import io.cloudslang.runtime.impl.python.executor.ExternalPythonExecutorServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorCommunicationServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorLifecycleManagerServiceImpl;
import io.cloudslang.runtime.impl.python.external.ExternalPythonExecutionEngine;
import io.cloudslang.runtime.impl.python.external.ExternalPythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.external.StatefulRestEasyClientsHolder;
Expand Down Expand Up @@ -223,6 +225,12 @@ public PythonExecutorCommunicationServiceImpl pythonExecutorCommunicationService
mock(StatefulRestEasyClientsHolder.class), mock(PythonExecutorConfigurationDataService.class));
}

@Bean(name = "pythonExecutorLifecycleManagerService")
public PythonExecutorLifecycleManagerService pythonExecutorLifecycleManagerService() {
return new PythonExecutorLifecycleManagerServiceImpl(pythonExecutorCommunicationService(),
pythonExecutorConfigurationDataService());
}

@Bean(name = "externalPythonExecutorService")
public PythonRuntimeService externalPythonExecutorService() {
return new ExternalPythonExecutorServiceImpl(new Semaphore(100), new Semaphore(50));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import io.cloudslang.lang.runtime.services.ScriptsService;
import io.cloudslang.runtime.api.python.PythonExecutionResult;
import io.cloudslang.runtime.api.python.PythonExecutorConfigurationDataService;
import io.cloudslang.runtime.api.python.PythonExecutorLifecycleManagerService;
import io.cloudslang.runtime.api.python.PythonRuntimeService;
import io.cloudslang.runtime.api.python.entities.PythonExecutorDetails;
import io.cloudslang.runtime.impl.python.PythonExecutionCachedEngine;
Expand All @@ -26,6 +27,7 @@
import io.cloudslang.runtime.impl.python.PythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.executor.ExternalPythonExecutorServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorCommunicationServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorLifecycleManagerServiceImpl;
import io.cloudslang.runtime.impl.python.external.ExternalPythonExecutionEngine;
import io.cloudslang.runtime.impl.python.external.ExternalPythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.external.StatefulRestEasyClientsHolder;
Expand Down Expand Up @@ -213,6 +215,12 @@ public PythonExecutorCommunicationServiceImpl pythonExecutorCommunicationService
mock(StatefulRestEasyClientsHolder.class), mock(PythonExecutorConfigurationDataService.class));
}

@Bean(name = "pythonExecutorLifecycleManagerService")
public PythonExecutorLifecycleManagerService pythonExecutorLifecycleManagerService() {
return new PythonExecutorLifecycleManagerServiceImpl(pythonExecutorCommunicationService(),
pythonExecutorConfigurationDataService());
}

@Bean(name = "externalPythonExecutorService")
public PythonRuntimeService externalPythonExecutorService() {
return new ExternalPythonExecutorServiceImpl(new Semaphore(100), new Semaphore(50));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@
import io.cloudslang.lang.runtime.events.LanguageEventData;
import io.cloudslang.lang.runtime.services.ScriptsService;
import io.cloudslang.runtime.api.python.PythonExecutorConfigurationDataService;
import io.cloudslang.runtime.api.python.PythonExecutorLifecycleManagerService;
import io.cloudslang.runtime.api.python.PythonRuntimeService;
import io.cloudslang.runtime.api.python.entities.PythonExecutorDetails;
import io.cloudslang.runtime.impl.python.PythonExecutionCachedEngine;
import io.cloudslang.runtime.impl.python.PythonExecutionEngine;
import io.cloudslang.runtime.impl.python.PythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.executor.ExternalPythonExecutorServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorCommunicationServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorLifecycleManagerServiceImpl;
import io.cloudslang.runtime.impl.python.external.ExternalPythonExecutionEngine;
import io.cloudslang.runtime.impl.python.external.ExternalPythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.external.StatefulRestEasyClientsHolder;
Expand Down Expand Up @@ -529,6 +531,12 @@ public PythonRuntimeService externalPythonExecutorService() {
return new ExternalPythonExecutorServiceImpl(new Semaphore(100), new Semaphore(50));
}

@Bean(name = "pythonExecutorLifecycleManagerService")
public PythonExecutorLifecycleManagerService pythonExecutorLifecycleManagerService() {
return new PythonExecutorLifecycleManagerServiceImpl(pythonExecutorCommunicationService(),
pythonExecutorConfigurationDataService());
}

@Bean(name = "externalPythonRuntimeService")
public PythonRuntimeService externalPythonRuntimeService() {
return new ExternalPythonRuntimeServiceImpl(new Semaphore(100), new Semaphore(50));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@
import io.cloudslang.lang.runtime.events.LanguageEventData;
import io.cloudslang.lang.runtime.services.ScriptsService;
import io.cloudslang.runtime.api.python.PythonExecutorConfigurationDataService;
import io.cloudslang.runtime.api.python.PythonExecutorLifecycleManagerService;
import io.cloudslang.runtime.api.python.PythonRuntimeService;
import io.cloudslang.runtime.api.python.entities.PythonExecutorDetails;
import io.cloudslang.runtime.impl.python.PythonExecutionCachedEngine;
import io.cloudslang.runtime.impl.python.PythonExecutionEngine;
import io.cloudslang.runtime.impl.python.PythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.executor.ExternalPythonExecutorServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorCommunicationServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorLifecycleManagerServiceImpl;
import io.cloudslang.runtime.impl.python.external.ExternalPythonExecutionEngine;
import io.cloudslang.runtime.impl.python.external.StatefulRestEasyClientsHolder;
import io.cloudslang.score.api.EndBranchDataContainer;
Expand Down Expand Up @@ -620,6 +622,12 @@ public PythonExecutorCommunicationServiceImpl pythonExecutorCommunicationService
mock(StatefulRestEasyClientsHolder.class), mock(PythonExecutorConfigurationDataService.class));
}

@Bean(name = "pythonExecutorLifecycleManagerService")
public PythonExecutorLifecycleManagerService pythonExecutorLifecycleManagerService() {
return new PythonExecutorLifecycleManagerServiceImpl(pythonExecutorCommunicationService(),
pythonExecutorConfigurationDataService());
}

@Bean(name = "externalPythonRuntimeService")
public PythonRuntimeService externalPythonRuntimeService() {
return new PythonRuntimeServiceImpl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@
import io.cloudslang.lang.runtime.events.LanguageEventData;
import io.cloudslang.lang.runtime.services.ScriptsService;
import io.cloudslang.runtime.api.python.PythonExecutorConfigurationDataService;
import io.cloudslang.runtime.api.python.PythonExecutorLifecycleManagerService;
import io.cloudslang.runtime.api.python.PythonRuntimeService;
import io.cloudslang.runtime.api.python.entities.PythonExecutorDetails;
import io.cloudslang.runtime.impl.python.PythonExecutionCachedEngine;
import io.cloudslang.runtime.impl.python.PythonExecutionEngine;
import io.cloudslang.runtime.impl.python.PythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.executor.ExternalPythonExecutorServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorCommunicationServiceImpl;
import io.cloudslang.runtime.impl.python.executor.PythonExecutorLifecycleManagerServiceImpl;
import io.cloudslang.runtime.impl.python.external.ExternalPythonExecutionEngine;
import io.cloudslang.runtime.impl.python.external.ExternalPythonRuntimeServiceImpl;
import io.cloudslang.runtime.impl.python.external.StatefulRestEasyClientsHolder;
Expand Down Expand Up @@ -656,6 +658,12 @@ public PythonExecutorCommunicationServiceImpl pythonExecutorCommunicationService
mock(StatefulRestEasyClientsHolder.class), mock(PythonExecutorConfigurationDataService.class));
}

@Bean(name = "pythonExecutorLifecycleManagerService")
public PythonExecutorLifecycleManagerService pythonExecutorLifecycleManagerService() {
return new PythonExecutorLifecycleManagerServiceImpl(pythonExecutorCommunicationService(),
pythonExecutorConfigurationDataService());
}

@Bean(name = "externalPythonExecutorService")
public PythonRuntimeService externalPythonExecutorService() {
return new ExternalPythonExecutorServiceImpl(new Semaphore(100), new Semaphore(50));
Expand Down

0 comments on commit 978faf2

Please sign in to comment.