diff options
author | Eliezio Oliveira <eliezio.oliveira@est.tech> | 2019-06-06 15:23:28 +0100 |
---|---|---|
committer | Eliezio Oliveira <eliezio.oliveira@est.tech> | 2019-07-08 11:27:20 +0100 |
commit | 1af982d83253ba2ebcc00f4471f2246469d20935 (patch) | |
tree | d8c8035f25bd933c5a5d94b3308fc95fa8fd2902 /ms/blueprintsprocessor/modules/services/execution-service/src | |
parent | 11133da337c493fbef734e1961d800f4d2ae1aaf (diff) |
Removed redundant Jython interpreter instantiation test
Change-Id: I5f446dcff85d0c2b0395e32bbbdcbb7b8ebe9708
Issue-ID: CCSDK-1454
Signed-off-by: Eliezio Oliveira <eliezio.oliveira@est.tech>
Diffstat (limited to 'ms/blueprintsprocessor/modules/services/execution-service/src')
-rw-r--r-- | ms/blueprintsprocessor/modules/services/execution-service/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/scripts/BlueprintPythonInterpreterProxyTest.kt | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/ms/blueprintsprocessor/modules/services/execution-service/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/scripts/BlueprintPythonInterpreterProxyTest.kt b/ms/blueprintsprocessor/modules/services/execution-service/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/scripts/BlueprintPythonInterpreterProxyTest.kt deleted file mode 100644 index 12ef9733a..000000000 --- a/ms/blueprintsprocessor/modules/services/execution-service/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/scripts/BlueprintPythonInterpreterProxyTest.kt +++ /dev/null @@ -1,48 +0,0 @@ -package org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts - -import org.junit.Test -import org.junit.runner.RunWith -import org.onap.ccsdk.cds.controllerblueprints.core.utils.JacksonUtils - -import kotlin.test.assertNotNull -import org.springframework.beans.factory.annotation.Autowired -import org.springframework.test.context.ContextConfiguration -import org.springframework.test.context.TestPropertySource -import org.springframework.test.context.junit4.SpringRunner -import kotlin.test.BeforeTest - -@RunWith(SpringRunner::class) -@ContextConfiguration(classes = [BluePrintPython::class, PythonExecutorProperty::class, String::class]) -@TestPropertySource(properties = -["blueprints.processor.functions.python.executor.modulePaths=./../../../../../components/scripts/python/ccsdk_blueprints", - "blueprints.processor.functions.python.executor.executionPath=./../../../../../components/scripts/python/ccsdk_blueprints"]) -class BlueprintPythonInterpreterProxyTest { - - lateinit var blueprintPythonInterpreterProxy: BlueprintPythonInterpreterProxy - - @Autowired - lateinit var pythonExecutorProperty: PythonExecutorProperty - - @BeforeTest - fun init() { - val blueprintBasePath = "./../../../../../components/model-catalog/blueprint-model/test-blueprint/baseconfiguration" - val pythonPath: MutableList<String> = arrayListOf() - pythonPath.add(blueprintBasePath) - pythonPath.addAll(pythonExecutorProperty.modulePaths) - val pythonClassName = "PythonTestScript" - val content = JacksonUtils.getContent("./src/test/resources/PythonTestScript.py") - - val blueprintPython = BluePrintPython(pythonExecutorProperty.executionPath, pythonPath, arrayListOf()) - blueprintPython.content = content - blueprintPython.pythonClassName = pythonClassName - blueprintPython.moduleName = "Unit test - Blueprint Python Script [Class Name = $pythonClassName]" - - blueprintPythonInterpreterProxy = BlueprintPythonInterpreterProxy(blueprintPython) - } - - @Test - fun getPythonInterpreter() { - val pythonObject = blueprintPythonInterpreterProxy.getPythonInstance(hashMapOf()) - assertNotNull(pythonObject, "failed to get python interpreter") - } -}
\ No newline at end of file |