Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conformance test descriptions #141

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/conformance/analytical-operators/count/test.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name: 'Operator "count"'
description: Assigns the value of the expression which is to count the given numbers using "count" function to the property "value" of the node "container".
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name: 'Operator "exponential_regression"'
description: Assigns the value of the expression which is to find the exponential regression of all the given numbers using "exponential_regression" function to the property "value" of the node "container".
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name: 'Operator "variance"'
name: 'Operator "linear_regression"'
description: Assigns the value of the expression which is to find the linear regression of all the given numbers using "linear_regression" function to the property "value" of the node "container".
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name: 'Operator "logarithmic_regression"'
description: Assigns the value of the expression which is to find the logarithmic regression of all the given numbers using "logarithmic_regression" function to the property "value" of the node "container".
1 change: 1 addition & 0 deletions tests/conformance/analytical-operators/max/test.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name: 'Operator "max"'
description: Assigns the value of the expression which is to find the Maximum number among all the given numbers using "max" function to the property "value" of the node "container".
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Maximum" to lowercase

1 change: 1 addition & 0 deletions tests/conformance/analytical-operators/mean/test.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name: 'Operator "mean"'
description: Assigns the value of the expression which is to find the Mean of all the given numbers using "mean" function to the property "value" of the node "container".
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Mean" to lowercase

1 change: 1 addition & 0 deletions tests/conformance/analytical-operators/median/test.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name: 'Operator "median"'
description: Assigns the value of the expression which is to find the Median of all the given numbers using "median" function to the property "value" of the node "container".
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Median" to lowercase

1 change: 1 addition & 0 deletions tests/conformance/analytical-operators/min/test.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name: 'Operator "min"'
description: Assigns the value of the expression which is to find the Minimum number among all the given numbers using "min" function to the property "value" of the node "container".
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Minimum" to lowercase

Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name: 'Operator "polynomial_regression"'
description: Assigns the value of the expression which is to find the polynomial regression of all the given numbers using "polynomial_regression" function to the property "value" of the node "container".
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name: 'Operator "standard_deviation"'
description: Assigns the value of the expression which is to find the Standard deviation of all the given numbers using "standard_deviation" function to the property "value" of the node "container".
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Standard" to lowercase

1 change: 1 addition & 0 deletions tests/conformance/analytical-operators/sum/test.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name: 'Operator "sum"'
description: Assigns the value of the expression which is to find the Sum of all the given numbers using "sum" function to the property "value" of the node "container".
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Sum" to lowercase

1 change: 1 addition & 0 deletions tests/conformance/analytical-operators/variance/test.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name: 'Operator "variance"'
description: Assigns the value of the expression which is to find the Variance of all the given numbers using "variance" function to the property "value" of the node "container".
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Variance" to lowercase

2 changes: 1 addition & 1 deletion tests/conformance/arithmetic-operators/add/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name: 'Operator "add"'
description: Assigns the value of the expression to the property "value" of the node "container".
description: Assigns the value of the expression which is to find the addition of all the given numbers using "add" function to the property "value" of the node "container".
2 changes: 1 addition & 1 deletion tests/conformance/arithmetic-operators/div/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name: 'Operator "div"'
description: Assigns the value of the expression to the property "value" of the node "container".
description: Assigns the value of the expression which is to find the division of given numbers using "div" function to the property "value" of the node "container".
2 changes: 1 addition & 1 deletion tests/conformance/arithmetic-operators/mod-even/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name: 'Operator "mod" (Even)'
description: Assigns the value of the expression to the property "value" of the node "container".
description: Assigns the value of the expression which is to find the mod of given numbers using "mod" function to the property "value" of the node "container".
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add "The result is even."

2 changes: 1 addition & 1 deletion tests/conformance/arithmetic-operators/mod-odd/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name: 'Operator "add" (Odd)'
description: Assigns the value of the expression to the property "value" of the node "container".
description: Assigns the value of the expression which is to find the mod of given numbers using "mod" function to the property "value" of the node "container".
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add "The result is odd."

2 changes: 1 addition & 1 deletion tests/conformance/arithmetic-operators/mul/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name: 'Operator "mul"'
description: Assigns the value of the expression to the property "value" of the node "container".
description: Assigns the value of the expression which is to find the multiplication of given numbers using "mul" function to the property "value" of the node "container".
2 changes: 1 addition & 1 deletion tests/conformance/arithmetic-operators/sub/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name: 'Operator "sub"'
description: Assigns the value of the expression to the property "value" of the node "container".
description: Assigns the value of the expression which is to find the subtraction of given numbers using "sub" function to the property "value" of the node "container".
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: |
- type default condition of nodes is enabled.
- under the "conditions" the "artifact_presence" function checks if artifact is present or not.
- "artifact_one" is absent since false is assigned as condition.
- Thus "artifact_one" is not present.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: |
- type default condition of nodes is enabled
- under the "conditions" the "artifact_presence" function checks if artifact is present or not.
- "artifact_one" is present since true is assigned as condition.
- Thus "artifact_one" is present.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: |
- type default condition of nodes is enabled
- under the "conditions" the "artifact_presence" function checks if artifact named "artifact_one" is present or not .
- "artifact_one" is absent since false is assigned as condition.
- Thus "artifact_one" is not present.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: |
- type default condition of nodes is enabled
- under the "conditions" the "artifact_presence" function checks if artifact named "artifact_one" is present or not .
- "artifact_one" is present since true is assigned as condition.
- Thus "artifact_one" is present.
11 changes: 11 additions & 0 deletions tests/conformance/artifacts/conditional/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: |
- type default condition of nodes is enabled
- In "node_one" there are two artifacts named "artifact_one_one" with type "artifact_a" and "artifact_b".
- In "node_two" there is one artifacts named "artifact_two_one" with type "artifact".
- In "node_three" there is one artifact named "artifact_three_one" with type "artifact".
- In "node_four" there is one artifact named "artifact_three_one" with type "artifact".
- In node_one, "artifact_a" is present since true is assigned as condition.
- In node_one, "artifact_b" is absent since false is assigned as condition.
- In node_two, "artifact" is present since true is assigned as condition.
- In node_three, "artifact" is present since true is assigned as default condition.
- In node_four, "artifact" is absent since false is assigned as condition.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description: |
- type default condition of nodes is enabled
- In the artifact "artifact_one" the function "container_presence" checks if container is present or not.
- container is absent since false is assigned as condition.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description: |
- type default condition of nodes is enabled
- In the artifact "artifact_one" the function "container_presence" checks if container is present or not.
- container is present since default condition true is assigned.
10 changes: 10 additions & 0 deletions tests/conformance/artifacts/default-alternative-false/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: |
- In "node_one" there are two artifacts named "artifact_one_one" with type "artifact_a" and "artifact_b".
- In "node_two" there is one artifacts named "artifact_two_one" with type "artifact".
- In "node_three" there is one artifact named "artifact_three_one" with type "artifact".
- In "node_four" there is one artifact named "artifact_three_one" with type "artifact".
- In node_one, "artifact_a" is absent since false is assigned using function "default_alternative".
- In node_one, "artifact_b" is absent since false is assigned as condition.
- In node_two, "artifact" is present since true is assigned as condition.
- In node_three, "artifact" is present since true is assigned as default condition.
- In node_four, "artifact" is absent since false is assigned as condition.
10 changes: 10 additions & 0 deletions tests/conformance/artifacts/default-alternative/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: |
- In "node_one" there are two artifacts named "artifact_one_one" with type "artifact_a" and "artifact_b".
- In "node_two" there is one artifacts named "artifact_two_one" with type "artifact".
- In "node_three" there is one artifact named "artifact_three_one" with type "artifact".
- In "node_four" there is one artifact named "artifact_three_one" with type "artifact".
- In node_one, "artifact_a" is present since true is assigned using function "default_alternative".
- In node_one, "artifact_b" is absent since false is assigned as condition.
- In node_two, "artifact" is present since true is assigned as condition.
- In node_three, "artifact" is present since true is assigned as default condition.
- In node_four, "artifact" is absent since false is assigned as condition.
7 changes: 7 additions & 0 deletions tests/conformance/artifacts/default-condition/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
description: |
- type default condition of nodes is enabled.
- artifact_default_condition is enabled as true.
- In "node_one" there is one artifact named "artifact_two_one" with type "artifact".
- In "node_two" there is no artifact present.
- In node_one, "artifact_two_one" is absent since false is assigned as condition.
- "node_two" is present since node default condition is true.
7 changes: 7 additions & 0 deletions tests/conformance/artifacts/prune/test.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
name: Artifact Pruning
description: |
- type default condition of nodes is enabled.
- artifact pruning is enabled as true.
- In "node_one" there is one artifact named "artifact_two_one" with type "artifact".
- In "node_two" there is no artifact present.
- In node_one, "artifact_two_one" is absent since false is assigned as condition of this node.
- "node_two" is present since node default condition is true.
5 changes: 4 additions & 1 deletion tests/conformance/boolean-operators/and-empty/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "and" Evaluates to "True" (Empty)'
description: Assigns "true" to the property "value" of the node "container" since the expression evaluates to "true".
description: |
- type default condition of nodes is enabled.
- The fuction "and" evaluates the condition which is an empty list.
- The node "container" is present since the condition evaluates to true.
5 changes: 4 additions & 1 deletion tests/conformance/boolean-operators/and-false/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "and" Evaluates to "false"'
description: Assigns "false" to the property "value" of the node "container" since the expression evaluates to "false".
description: |
- type default condition of nodes is enabled.
- The fuction "and" evaluates the condition which is a list containing [true, false, true, true].
- The node "container" is absent since the condition evaluates to false.
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
name: 'Operator "and" Evaluates to "false" (Nested)'
description: Assigns "false" to the property "value" of the node "container" since the expression evaluates to "false".
description: |
- type default condition of nodes is enabled.
- There is nested fuction "and" evaluating the condition such as-
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo "fuction"; should be "function". This also occurs in other files. Please check everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sentence ends with "as-"? This also occurs in other files. Please check everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"There is a nested". This also occurs in other files. Please check everywhere.

- the inner "and" evaluates list [true, false] to "false".
- the outer "and" evaluates the result of 1) and "true" to false.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"result of 1)"

What is "1)"? This also occurs in other files. Please check everywhere.

- The node "container" is absent since the condition finally evaluates to false.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ topology_template:
node_templates:
container:
type: container
conditions: {and: [true, true, true, true]}
conditions: {and: [{and: [true, true]}, true]}
9 changes: 7 additions & 2 deletions tests/conformance/boolean-operators/and-nested-true/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
name: 'Operator "and" Evaluates to "true"'
description: Assigns "true" to the property "value" of the node "container" since the expression evaluates to "true".
name: 'Operator "and" Evaluates to "true" (Nested)'
description: |
- type default condition of nodes is enabled.
- There is nested fuction "and" evaluating the condition such as-
- the inner "and" evaluates list [true, true] to "true".
- the outer "and" evaluates the result of 1) and "true" to true.
- The node "container" is present since the condition finally evaluates to true.
2 changes: 1 addition & 1 deletion tests/conformance/boolean-operators/and-true/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ topology_template:
node_templates:
container:
type: container
conditions: {and: [{and: [true, true]}, true]}
conditions: {and: [true, true, true, true]}
7 changes: 5 additions & 2 deletions tests/conformance/boolean-operators/and-true/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "and" Evaluates to "true" (Nested)'
description: Assigns "true" to the property "value" of the node "container" since the expression evaluates to "true".
name: 'Operator "and" Evaluates to "true"'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Evaluates" to lowercase. This also occurs in other files. Please check everywhere.

description: |
- type default condition of nodes is enabled.
- The fuction "and" evaluates the condition which is a list containing [true, true, true, true].
- The node "container" is present since the condition evaluates to true.
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "implies": false false -> true'
description: Assigns "true" to the property "value" of the node "container" since the expression evaluates to "true".
description: |
- type default condition of nodes is enabled.
- The fuction "implies" evaluates the condition which is a list containing [false, false].
- The node "container" is present since the condition evaluates to true.
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "implies": false true -> true'
description: Assigns "true" to the property "value" of the node "container" since the expression evaluates to "true".
description: |
- type default condition of nodes is enabled.
- The fuction "implies" evaluates the condition which is a list containing [false, true].
- The node "container" is present since the condition evaluates to true.
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "implies": true false -> false'
description: Assigns "false" to the property "value" of the node "container" since the expression evaluates to "false".
description: |
- type default condition of nodes is enabled.
- The fuction "implies" evaluates the condition which is a list containing [true, false].
- The node "container" is absent since the condition evaluates to false.
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "implies": true true -> true'
description: Assigns "true" to the property "value" of the node "container" since the expression evaluates to "true".
description: |
- type default condition of nodes is enabled.
- The fuction "implies" evaluates the condition which is a list containing [true, true].
- The node "container" is present since the condition evaluates to true.
5 changes: 4 additions & 1 deletion tests/conformance/boolean-operators/not-false/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "not" Evaluates to "false"'
description: Assigns "false" to the property "value" of the node "container" since the expression evaluates to "false".
description: |
- type default condition of nodes is enabled.
- The fuction "not" evaluates the condition which is complement of "true".
- The node "container" is absent since the condition evaluates to false.
5 changes: 4 additions & 1 deletion tests/conformance/boolean-operators/not-true/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "not" Evaluates to "true"'
description: Assigns "true" to the property "value" of the node "container" since the expression evaluates to "true".
description: |
- type default condition of nodes is enabled.
- The fuction "not" evaluates the condition which is complement of "false".
- The node "container" is present since the condition evaluates to true.
5 changes: 4 additions & 1 deletion tests/conformance/boolean-operators/or-empty/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "or" Evaluates to "False" (Empty)'
description: Assigns "false" to the property "value" of the node "container" since the expression evaluates to "false".
description: |
- type default condition of nodes is enabled.
- The fuction "or" evaluates the condition which is an empty list.
- The node "container" is absent since the condition evaluates to false.
5 changes: 4 additions & 1 deletion tests/conformance/boolean-operators/or-false/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "or" Evaluates to "False"'
description: Assigns "false" to the property "value" of the node "container" since the expression evaluates to "false".
description: |
- type default condition of nodes is enabled.
- The fuction "or" evaluates the condition which is a list containing [false, false, false, false].
- The node "container" is absent since the condition evaluates to false.
5 changes: 4 additions & 1 deletion tests/conformance/boolean-operators/or-true-all/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "or" Evaluates to "true" (All "true")'
description: Assigns "true" to the property "value" of the node "container" since the expression evaluates to "true".
description: |
- type default condition of nodes is enabled.
- The fuction "or" evaluates the condition which is a list containing [true, true, true, true].
- The node "container" is present since the condition evaluates to true.
5 changes: 4 additions & 1 deletion tests/conformance/boolean-operators/or-true/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "or" Evaluates to "true"'
description: Assigns "true" to the property "value" of the node "container" since the expression evaluates to "true".
description: |
- type default condition of nodes is enabled.
- The fuction "or" evaluates the condition which is a list containing [false, true, false, false].
- The node "container" is present since the condition evaluates to true.
5 changes: 4 additions & 1 deletion tests/conformance/boolean-operators/xor-false-all/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "xor": all false -> false'
description: Assigns "false" to the property "value" of the node "container" since the expression evaluates to "false".
description: |
- type default condition of nodes is enabled.
- The fuction "xor" evaluates the condition which is a list containing [false, false, false, false].
- The node "container" is absent since the condition evaluates to false.
5 changes: 4 additions & 1 deletion tests/conformance/boolean-operators/xor-true-all/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "xor": all true -> false'
description: Assigns "false" to the property "value" of the node "container" since the expression evaluates to "false".
description: |
- type default condition of nodes is enabled.
- The fuction "xor" evaluates the condition which is a list containing [true, true, true, true].
- The node "container" is absent since the condition evaluates to false.
5 changes: 4 additions & 1 deletion tests/conformance/boolean-operators/xor-true/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name: 'Operator "xor": One ture -> true'
description: Assigns "true" to the property "value" of the node "container" since the expression evaluates to "true".
description: |
- type default condition of nodes is enabled.
- The fuction "xor" evaluates the condition which is a list containing [true,false, false, false].
- The node "container" is present since the condition evaluates to true.
4 changes: 3 additions & 1 deletion tests/conformance/constraint-operators/equal-false/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
name: 'Operator "equal" Evaluates to "false"'
description: Assigns "false" to the property "value" of the node "container" since not all parameters are equal.
description: |
- The "equal" operator evaluates the expression.
- Assigns "false" to the property "value" of the node "container" since not all parameters are equal.
4 changes: 3 additions & 1 deletion tests/conformance/constraint-operators/equal-true/test.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
name: 'Operator "equal" Evaluates to "true"'
description: Assigns "true" to the property "value" of the node "container" since all parameters are equal.
description: |
- The "equal" operator evaluates the expression.
- Assigns "true" to the property "value" of the node "container" since all parameters are equal.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ topology_template:
type: container
properties:
- value:
expression: {greater_or_equal: [2, 1]}
expression: {greater_or_equal: [1, 1]}
Loading