Skip to content

groups-default-condition-nothing

Description

Group "group_three" is not removed since its conditions are "true".

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:
            type_default_condition: true
            expected_incoming_relation_check: false
    groups:
        group_one:
            type: variability.groups.ConditionalMembers
            members:
                - magic
                - - magic
                  - 0
                - - application
                  - magic
            conditions: false
        group_two:
            type: tosca.groups.Root
            members:
                - container
                - magic
        group_three:
            type: tosca.groups.Root
            members:
                - magic
            conditions: true
    node_templates:
        application:
            type: docker.container.application
            requirements:
                - host: container
                - magic: magic
                - more: another_application
        container:
            type: docker.container
            requirements:
                - host: engine
        engine:
            type: docker.engine
            requirements:
                - host: vm
        another_application:
            type: another.application
            requirements:
                - host: another_runtime
        another_runtime:
            type: another.runtime
            requirements:
                - host: vm
        vm:
            type: openstack.vm
        magic:
            type: magic
            requirements:
                - magic: application

Variability-Resolved Service Template

The following variability-resolved service template is expected.

tosca_definitions_version: tosca_simple_yaml_1_3
topology_template:
    groups:
        group_two:
            type: tosca.groups.Root
            members:
                - container
        group_three:
            type: tosca.groups.Root
            members: []
    node_templates:
        application:
            type: docker.container.application
            requirements:
                - host: container
                - more: another_application
        container:
            type: docker.container
            requirements:
                - host: engine
        engine:
            type: docker.engine
            requirements:
                - host: vm
        another_application:
            type: another.application
            requirements:
                - host: another_runtime
        another_runtime:
            type: another.runtime
            requirements:
                - host: vm
        vm:
            type: openstack.vm

Last update: October 14, 2024