-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0be47a
commit fe62a27
Showing
19 changed files
with
230 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tests/conformance/pruning/outgoing-relation-absent/expected.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
tosca_definitions_version: tosca_simple_yaml_1_3 | ||
|
||
topology_template: | ||
node_templates: | ||
target: | ||
type: target |
22 changes: 22 additions & 0 deletions
22
tests/conformance/pruning/outgoing-relation-absent/template.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
tosca_definitions_version: tosca_variability_1_0 | ||
|
||
topology_template: | ||
variability: | ||
options: | ||
node_default_condition: true | ||
node_default_condition_mode: outgoing | ||
|
||
relation_default_condition: true | ||
relation_default_condition_mode: source-target | ||
|
||
type_default_condition: true | ||
node_templates: | ||
source: | ||
type: source | ||
requirements: | ||
- relation: | ||
node: target | ||
conditions: false | ||
|
||
target: | ||
type: target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
description: | | ||
- The node "source" has an outgoing relation "relation" to node "target". | ||
- The node default condition mode "outgoing" is used. | ||
- Thus, there is no cycle. | ||
- "relation" is absent | ||
- Thus, "source" is absent | ||
- "target" is always present |
12 changes: 12 additions & 0 deletions
12
tests/conformance/pruning/outgoing-relation-present/expected.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
tosca_definitions_version: tosca_simple_yaml_1_3 | ||
|
||
topology_template: | ||
node_templates: | ||
source: | ||
type: source | ||
requirements: | ||
- relation: | ||
node: target | ||
|
||
target: | ||
type: target |
22 changes: 22 additions & 0 deletions
22
tests/conformance/pruning/outgoing-relation-present/template.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
tosca_definitions_version: tosca_variability_1_0 | ||
|
||
topology_template: | ||
variability: | ||
options: | ||
node_default_condition: true | ||
node_default_condition_mode: outgoing | ||
|
||
relation_default_condition: true | ||
relation_default_condition_mode: source-target | ||
|
||
type_default_condition: true | ||
node_templates: | ||
source: | ||
type: source | ||
requirements: | ||
- relation: | ||
node: target | ||
conditions: true | ||
|
||
target: | ||
type: target |
8 changes: 8 additions & 0 deletions
8
tests/conformance/pruning/outgoing-relation-present/test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
description: | | ||
- The node "source" has an outgoing relation "relation" to node "target". | ||
- The node default condition mode "outgoing" is used. | ||
- Thus, there is no cycle. | ||
- "relation" is present | ||
- Thus, "source" is present | ||
- "target" is always present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tosca_definitions_version: tosca_simple_yaml_1_3 |
22 changes: 22 additions & 0 deletions
22
tests/conformance/pruning/outgoing-target-absent/template.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
tosca_definitions_version: tosca_variability_1_0 | ||
|
||
topology_template: | ||
variability: | ||
options: | ||
node_default_condition: true | ||
node_default_condition_mode: outgoing | ||
|
||
relation_default_condition: true | ||
relation_default_condition_mode: source-target | ||
|
||
type_default_condition: true | ||
node_templates: | ||
source: | ||
type: source | ||
requirements: | ||
- relation: | ||
node: target | ||
|
||
target: | ||
type: target | ||
conditions: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
description: | | ||
- The node "source" has an outgoing relation "relation" to node "target". | ||
- The node default condition mode "outgoing" is used. | ||
- Thus, there is no cycle. | ||
- "target" is absent | ||
- Thus, "relation" is absent | ||
- Thus, "source" is absent |
12 changes: 12 additions & 0 deletions
12
tests/conformance/pruning/outgoing-target-present/expected.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
tosca_definitions_version: tosca_simple_yaml_1_3 | ||
|
||
topology_template: | ||
node_templates: | ||
source: | ||
type: source | ||
requirements: | ||
- relation: | ||
node: target | ||
|
||
target: | ||
type: target |
21 changes: 21 additions & 0 deletions
21
tests/conformance/pruning/outgoing-target-present/template.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
tosca_definitions_version: tosca_variability_1_0 | ||
|
||
topology_template: | ||
variability: | ||
options: | ||
node_default_condition: true | ||
node_default_condition_mode: outgoing | ||
|
||
relation_default_condition: true | ||
relation_default_condition_mode: source-target | ||
|
||
type_default_condition: true | ||
node_templates: | ||
source: | ||
type: source | ||
requirements: | ||
- relation: | ||
node: target | ||
|
||
target: | ||
type: target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
description: | | ||
- The node "source" has an outgoing relation "relation" to node "target". | ||
- The node default condition mode "outgoing" is used. | ||
- Thus, there is no cycle. | ||
- Nothing is removed. |
6 changes: 6 additions & 0 deletions
6
tests/conformance/pruning/outgoingnaive-target-present/expected.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
tosca_definitions_version: tosca_simple_yaml_1_3 | ||
|
||
topology_template: | ||
node_templates: | ||
target: | ||
type: target |
21 changes: 21 additions & 0 deletions
21
tests/conformance/pruning/outgoingnaive-target-present/template.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
tosca_definitions_version: tosca_variability_1_0 | ||
|
||
topology_template: | ||
variability: | ||
options: | ||
node_default_condition: true | ||
node_default_condition_mode: outgoingnaive | ||
|
||
relation_default_condition: true | ||
relation_default_condition_mode: source-target | ||
|
||
type_default_condition: true | ||
node_templates: | ||
source: | ||
type: source | ||
requirements: | ||
- relation: | ||
node: target | ||
|
||
target: | ||
type: target |
6 changes: 6 additions & 0 deletions
6
tests/conformance/pruning/outgoingnaive-target-present/test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
description: | | ||
- The node "source" has an outgoing relation "relation" to node "target". | ||
- The node default condition mode "outgoingnaive" is used. | ||
- Thus, there is a cycle: "source" checks if "relation" is present and "relation" checks if "source" is present. | ||
- Thus, "source" and "relation" can be removed. | ||
- "target" is present since it has no default condition assigned. |