aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/modules/services/execution-service/src
diff options
context:
space:
mode:
authorSteve Siani <alphonse.steve.siani.djissitchi@ibm.com>2019-04-02 23:01:50 -0400
committerSteve Siani <alphonse.steve.siani.djissitchi@ibm.com>2019-04-02 23:04:03 -0400
commita2a21cd7a80c3ff3b754d7a4e47fc48f45ff2312 (patch)
treedfa9ddb1068e2d1c946175f62c3fb7da446a20c8 /ms/blueprintsprocessor/modules/services/execution-service/src
parentc111f2a1399bb88754184739d296783828beeb7a (diff)
Fix: Complementary JUnit tests in BlueprintProcessor
Change-Id: I4fdad443f46e674d7cf61604105c7797e2889e11 Issue-ID: CCSDK-1187 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com>
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/BlueprintJythonServiceTest.kt10
1 files changed, 3 insertions, 7 deletions
diff --git a/ms/blueprintsprocessor/modules/services/execution-service/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/scripts/BlueprintJythonServiceTest.kt b/ms/blueprintsprocessor/modules/services/execution-service/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/scripts/BlueprintJythonServiceTest.kt
index ceb824d13..5c9ae9933 100644
--- a/ms/blueprintsprocessor/modules/services/execution-service/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/scripts/BlueprintJythonServiceTest.kt
+++ b/ms/blueprintsprocessor/modules/services/execution-service/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/services/execution/scripts/BlueprintJythonServiceTest.kt
@@ -18,9 +18,9 @@ package org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts
import io.mockk.every
import io.mockk.mockk
+import org.junit.Ignore
import org.junit.Test
import org.junit.runner.RunWith
-import org.onap.ccsdk.cds.blueprintsprocessor.core.api.data.ExecutionServiceInput
import org.onap.ccsdk.cds.blueprintsprocessor.services.execution.AbstractComponentFunction
import org.onap.ccsdk.cds.controllerblueprints.core.normalizedPathName
import org.onap.ccsdk.cds.controllerblueprints.core.service.BluePrintContext
@@ -51,7 +51,6 @@ class BlueprintJythonServiceTest {
@Test
fun testGetAbstractPythonPlugin() {
-
val content = JacksonUtils.getClassPathFileContent("scripts/SamplePythonComponentNode.py")
val dependencies: MutableMap<String, Any> = hashMapOf()
@@ -60,18 +59,15 @@ class BlueprintJythonServiceTest {
content, dependencies)
assertNotNull(abstractPythonPlugin, "failed to get python component")
-
- abstractPythonPlugin.process(ExecutionServiceInput())
-
}
-
+
@Test
fun testGetAbstractJythonComponent() {
-
val scriptInstance = "test-classes/scripts/SamplePythonComponentNode.py"
val abstractJythonComponent = blueprintJythonService.jythonComponentInstance(blueprintContext, scriptInstance)
assertNotNull(abstractJythonComponent, "failed to get Jython component")
+
}
} \ No newline at end of file