summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/cba/resource-resolution/Definitions/resource-resolution.json
blob: af804a2d798791d669249301050bc57d82e5eb8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
  "metadata": {
    "template_author": "Selffish",
    "author-email": "test@bell.ca",
    "template_name": "RT-resource-resolution",
    "template_version": "1.0.0",
    "template_tags": "Bell, CBA, test"
  },
  "dsl_definitions": {
    "rest-endpoint": {
      "type": "token-auth",
      "url": "http://cds-regression-mockserver",
      "token": "NoTokenRequired"
    },
    "db-endpoint": {
      "type": "maria-db",
      "url": "jdbc:mysql://cds-db:3306/sdnctl",
      "username": "sdnctl",
      "password": "sdnctl"
    }
  },
  "topology_template": {
    "workflows": {
      "resource-resolution": {
        "steps": {
          "helloworld": {
            "description": "Component resource resolution regression test",
            "target": "resource-resolution"
          }
        },
        "inputs": {
          "resolution-key": {
            "required": true,
            "type": "string"
          },
          "template-prefix": {
            "required": true,
            "type": "list",
            "entry_schema": {
              "type": "string"
            }
          }
        },
        "outputs": {
          "meshed-template": {
            "type": "json",
            "value": {
              "get_attribute": [
                "resource-resolution",
                "assignment-params"
              ]
            }
          }
        }
      }
    },
    "node_templates": {
      "resource-resolution": {
        "type": "component-resource-resolution",
        "interfaces": {
          "ResourceResolutionComponent": {
            "operations": {
              "process": {
                "inputs": {
                  "artifact-prefix-names": {
                    "get_input": "template-prefix"
                  },
                  "store-result": true,
                  "force-resolution": true,
                  "resolution-key": {
                    "get_input": "resolution-key"
                  }
                }
              }
            }
          }
        },
        "artifacts": {
          "helloworld-velocity-template": {
            "type": "artifact-template-velocity",
            "file": "Templates/hello-world-template.vtl"
          },
          "helloworld-velocity-mapping": {
            "type": "artifact-mapping-resource",
            "file": "Templates/hello-world-velocity-mapping.json"
          },
          "helloworld-jinja-template": {
            "type": "artifact-template-jinja",
            "file": "Templates/hello-world-template.jinja"
          },
          "helloworld-jinja-mapping": {
            "type": "artifact-mapping-resource",
            "file": "Templates/hello-world-jinja-mapping.json"
          }
        }
      }
    }
  }
}