summaryrefslogtreecommitdiffstats
path: root/javatoscachecker/checker/src/test/resources/spec/examples/spec-example-7.3.3.1.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'javatoscachecker/checker/src/test/resources/spec/examples/spec-example-7.3.3.1.yaml')
-rw-r--r--javatoscachecker/checker/src/test/resources/spec/examples/spec-example-7.3.3.1.yaml39
1 files changed, 39 insertions, 0 deletions
diff --git a/javatoscachecker/checker/src/test/resources/spec/examples/spec-example-7.3.3.1.yaml b/javatoscachecker/checker/src/test/resources/spec/examples/spec-example-7.3.3.1.yaml
new file mode 100644
index 0000000..7e6e375
--- /dev/null
+++ b/javatoscachecker/checker/src/test/resources/spec/examples/spec-example-7.3.3.1.yaml
@@ -0,0 +1,39 @@
+tosca_definitions_version: tosca_simple_yaml_1_1
+
+#it fails because DBMS node type has no Backup interface defined
+
+metadata:
+ outcome: "fail"
+
+imports:
+ - examples: tosca/tosca-examples-types.yaml
+
+topology_template:
+ node_templates:
+ my_server:
+ type: tosca.nodes.Compute
+ mysql:
+ type: tosca.nodes.DBMS.MySQL
+ requirements:
+ - host: my_server
+ interfaces:
+ tosca.interfaces.nodes.custom.Backup:
+ backup: backup.sh
+ workflows:
+ backup:
+ description: Performs a snapshot of the MySQL data.
+ preconditions:
+ - target: my_server
+ condition:
+ - assert:
+ - state: [{equal: available}]
+ - target: mysql
+ condition:
+ - assert:
+ - state: [{valid_values: [started, available]}]
+ - my_attribute: [{equal: ready }]
+ steps:
+ my_step:
+ target: mysql
+ activities:
+ - call_operation: tosca.interfaces.nodes.custom.Backup.backup