move plugins from from ccsdk to dcaegen2
[dcaegen2/platform/plugins.git] / helm / plugin / tests / blueprint / blueprint.yaml
1 # DSL version, should appear in the main blueprint.yaml
2 # and may appear in other imports. In such case, the versions must match
3 tosca_definitions_version: cloudify_dsl_1_3
4
5 imports:
6     # importing cloudify related types, plugins, workflow, etc...
7     # to speed things up, it is possible downloading this file,
8     # including it in the blueprint directory and importing it
9     # instead.
10     - http://www.getcloudify.org/spec/cloudify/4.1.1/types.yaml
11     # relative import of plugin.yaml that resides in the blueprint directory
12     - plugin/test_plugin.yaml
13
14 inputs:
15     # example input that could be injected by test
16     test_input:
17         description: an input for the test
18         default: default_test_input
19     tiller-server-ip:
20         default: 1.1.1.1
21     tiller-server-port:
22         default: 8888
23     namespace:
24         default: onap
25     chart-repo-url:
26         default: local
27     chart-version :
28         default: 2.0.0
29     jsonConfig:
30         default: ''
31     config-url:
32         default: ''
33     config-set:
34         default: ''
35     config-format:
36         default: 'json'
37     tls-enable:
38         type: boolean
39         default: false
40     config-dir:
41         type: string
42         default: './'
43     repo-user:
44         type: string
45         default: ''
46     repo-user-password:
47         type: string
48         default: ''
49     stable-repo-url:
50         type: string
51         default: 'http://0.0.0.0/stable'
52
53
54 node_templates:
55     # defining a single node template that will serve as our test node
56     test_node:
57         # using base cloudify type
58         type: onap.nodes.component
59         properties:
60             tiller_ip: { get_input: tiller-server-ip }
61             tiller_port: { get_input: tiller-server-port }
62             component_name: test_node
63             chart_repo_url: { get_input: chart-repo-url }
64             chart_version: { get_input: chart-version }
65             namespace: { get_input: namespace }
66             config: { get_input: jsonConfig}
67             config_set: { get_input: config-set}
68             config_url: { get_input: config-url}
69             repo_user: { get_input: repo-user}
70             repo_user_password: { get_input: repo-user-password}
71             config_format: { get_input: config-format}
72             tls_enable: { get_input: tls-enable}
73             ca: "result of get_secret ca_value"
74             cert: "result of get_secret cert_value"
75             key: "result of get_secret key_value"
76             config_dir: { get_input: config-dir}
77             stable_repo_url: { get_input: stable-repo-url}
78
79 outputs:
80     # example output the could be used to simplify assertions by test
81     test_output:
82         description: an output for the test
83         value: 
84             helm-value: { get_attribute: [test_node, current-helm-value] }
85             helm-history: { get_attribute: [test_node, helm-history] }