Prerequisite: Description: Parser SHOULD be failing if tosca_definitions_version is not valid. a tosca template that has an invalid tosca_definitions_version value equals to Target: 'not_tosca_simple_yaml_1_0' Predicate: When parsing the template assert raises the 'InvalidTOSCAVersion' Prescription level: mandatory Conformance target: Parser-Validator Id: 3.1.2-tosca_definitions_version-04-missing Prerequisite: Description: Parsing a document without tosca definition version MUST fail. Target: a tosca template that does not define tosca_definitions_version Predicate: When parsing the template assert raises the error 'MissingTOSCAVersion' Prescription level: mandatory Conformance target: Parser-Validator Id: 3.1.2-tosca_definitions_version-05-not_first_line Prerequisite: Description: Parsing a document where tosca definition is not the first line version SHOULD fail. Target: a tosca template where description is defined before tosca_definitions_version Predicate: When parsing the template assert raises the 'TOSCAVersionMustBeFirstLine' Prescription level: mandatory Conformance target: Parser-Validator
Prerequisite: Description: Parser SHOULD be failing if tosca_definitions_version is not valid. Target: a tosca template that has an invalid tosca_definitions_version value equals to 'not_tosca_simple_yaml_1_0' Predicate: When parsing the template assert raises the 'InvalidTOSCAVersion' Prescription level: mandatory Conformance target: Parser-Validator Id: 3.1.2-tosca_definitions_version-04-missing Prerequisite: Description: Parsing a document without tosca definition version MUST fail. Target: a tosca template that does not define tosca_definitions_version Predicate: When parsing the template assert raises the error 'MissingTOSCAVersion' Prescription level: mandatory Conformance target: Parser-Validator Id: 3.1.2-tosca_definitions_version-05-not_first_line Prerequisite: Description: Parsing a document where tosca definition is not the first line version SHOULD fail. Target: a tosca template where description is defined before tosca_definitions_version Predicate: When parsing the template assert raises the 'TOSCAVersionMustBeFirstLine' Prescription level: mandatory Conformance target: Parser-Validator