summaryrefslogtreecommitdiffstats
path: root/helm/plugin/tests/blueprint/blueprint.yaml
blob: 9636991053f6143e4868594b74d8a42eecc57b27 (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
# DSL version, should appear in the main blueprint.yaml
# and may appear in other imports. In such case, the versions must match
tosca_definitions_version: cloudify_dsl_1_3

imports:
    # importing cloudify related types, plugins, workflow, etc...
    # to speed things up, it is possible downloading this file,
    # including it in the blueprint directory and importing it
    # instead.
    - http://www.getcloudify.org/spec/cloudify/4.1.1/types.yaml
    # relative import of plugin.yaml that resides in the blueprint directory
    - plugin/test_plugin.yaml

inputs:
    # example input that could be injected by test
    test_input:
        description: an input for the test
        default: default_test_input
    tiller-server-ip:
        default: 1.1.1.1
    tiller-server-port:
        default: 8888
    namespace:
        default: onap
    chart-repo-url:
        default: local
    chart-version :
        default: 2.0.0
    jsonConfig:
        default: ''
    config-url:
        default: ''
    config-format:
        default: 'json'
    tls-enable:
        type: boolean
        default: false
    config-dir:
        type: string
        default: './'
    stable-repo-url:
        type: string
        default: 'http://0.0.0.0/stable'


node_templates:
    # defining a single node template that will serve as our test node
    test_node:
        # using base cloudify type
        type: onap.nodes.component
        properties:
            tiller-server-ip: { get_input: tiller-server-ip }
            tiller-server-port: { get_input: tiller-server-port }
            component-name: test_node
            chart-repo-url: { get_input: chart-repo-url }
            chart-version: { get_input: chart-version }
            namespace: { get_input: namespace }
            config: { get_input: jsonConfig}
            config-url: { get_input: config-url}
            config-format: { get_input: config-format}
            tls-enable: { get_input: tls-enable}
            ca: { get_secret: ca_value}
            cert: { get_secret: cert_value}
            key: { get_secret: key_value}
            config-dir: { get_input: config-dir}
            stable-repo-url: { get_input: stable-repo-url}

outputs:
    # example output the could be used to simplify assertions by test
    test_output:
        description: an output for the test
        value: 
            helm-value: { get_attribute: [test_node, current-helm-value] }
            helm-history: { get_attribute: [test_node, helm-history] }