6ad6bc56aa8b0089d7fd9609595b9faf9a9ae38b
[ccsdk/cds.git] /
1 /*
2  *  Copyright © 2019 IBM.
3  *
4  *  Licensed under the Apache License, Version 2.0 (the "License");
5  *  you may not use this file except in compliance with the License.
6  *  You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *  Unless required by applicable law or agreed to in writing, software
11  *  distributed under the License is distributed on an "AS IS" BASIS,
12  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *  See the License for the specific language governing permissions and
14  *  limitations under the License.
15  */
16
17 package org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution
18
19 import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintTypes
20 import kotlin.test.Test
21 import kotlin.test.assertNotNull
22
23 class ResourceSourceDSLTest {
24
25     @Test
26     fun testNodeTypeSourceInput() {
27         val nodeTemplate = BluePrintTypes.nodeTypeSourceInput()
28         //println(nodeTemplate.asJsonString(true))
29         assertNotNull(nodeTemplate, "failed to generate nodeTypeSourceInput")
30     }
31
32     @Test
33     fun testNodeTypeSourceDefault() {
34         val nodeTemplate = BluePrintTypes.nodeTypeSourceDefault()
35         //println(nodeTemplate.asJsonString(true))
36         assertNotNull(nodeTemplate, "failed to generate nodeTypeSourceDefault")
37     }
38
39     @Test
40     fun testNodeTypeSourceDb() {
41         val nodeTemplate = BluePrintTypes.nodeTypeSourceDb()
42         //println(nodeTemplate.asJsonString(true))
43         assertNotNull(nodeTemplate, "failed to generate nodeTypeSourceDb")
44     }
45
46     @Test
47     fun testNodeTypeSourceRest() {
48         val nodeTemplate = BluePrintTypes.nodeTypeSourceRest()
49         //println(nodeTemplate.asJsonString(true))
50         assertNotNull(nodeTemplate, "failed to generate nodeTypeSourceRest")
51     }
52
53     @Test
54     fun testNodeTypeSourceCapability() {
55         val nodeTemplate = BluePrintTypes.nodeTypeSourceCapability()
56         //println(nodeTemplate.asJsonString(true))
57         assertNotNull(nodeTemplate, "failed to generate nodeTypeSourceCapability")
58     }
59 }