Skip to content

implications-naive-naive-another-not

Variable Service Template

The variability of the following variable service template shall be resolved.

tosca_definitions_version: tosca_variability_1_0
topology_template:
    variability:
        options:
            node_default_condition: true
            node_default_condition_mode: incoming-host
            relation_default_condition: true
            relation_default_condition_mode: source-target
            type_default_condition: true
            hosting_stack_constraint: true
            optimization_topology: true
            optimization_topology_unique: true
    node_templates:
        app:
            type: app
            persistent: true
            requirements:
                - database:
                      node: database
                      implied: true
                - host:
                      node: static
                - host:
                      node: elastic
        database:
            type: database
            requirements:
                - host:
                      node: static
        static:
            type: static
        elastic:
            type: elastic

Expected Error

The following error is expected to be thrown, when resolving variability.

Could not solve

Last update: November 18, 2024