Skip to content

implications-naive-naive-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:
        worker:
            type: worker
            persistent: true
            requirements:
                - host:
                      node: dev_host
                - host:
                      node: prod_host
        dev_host:
            type: dev_host
        prod_host:
            type: prod_host

Expected Error

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

Could not solve

Last update: December 13, 2024