diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-03-12 16:12:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-03-17 18:35:11 +0100 |
commit | 6a703f753f899446934616d0b66a7c0ffc8ca410 (patch) | |
tree | d8b6ac0087fdf4458d15aeeeca38bc1a16e480f0 /spec | |
parent | validation: Shorten variable name (diff) | |
download | rtems-central-6a703f753f899446934616d0b66a7c0ffc8ca410.tar.bz2 |
validation: Allow N/A for post-condition states
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/requirement-action-transition-post-state.yml | 21 | ||||
-rw-r--r-- | spec/spec/requirement-action-transition-post.yml | 4 |
2 files changed, 23 insertions, 2 deletions
diff --git a/spec/spec/requirement-action-transition-post-state.yml b/spec/spec/requirement-action-transition-post-state.yml new file mode 100644 index 00000000..0b310629 --- /dev/null +++ b/spec/spec/requirement-action-transition-post-state.yml @@ -0,0 +1,21 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: spec-member + uid: root +spec-description: null +spec-example: null +spec-info: + str: + assert: + or: + - re: ^[A-Z][a-zA-Z0-9]+$ + - eq: N/A + description: | + It shall be the name of a state of the corresponding post-condition or + ``N/A`` if the post-condition is not applicable. +spec-name: Action Requirement Transition Post-Condition State +spec-type: requirement-action-transition-post-state +type: spec diff --git a/spec/spec/requirement-action-transition-post.yml b/spec/spec/requirement-action-transition-post.yml index 935484e3..fd8b9f10 100644 --- a/spec/spec/requirement-action-transition-post.yml +++ b/spec/spec/requirement-action-transition-post.yml @@ -18,9 +18,9 @@ spec-info: There shall be exactly one generic attribute key for each post-condition. The key name shall be the post-condition name. The value of each generic attribute shall be the state of the - post-condition. + post-condition or ``N/A`` if the post-condition is not applicable. key-spec-type: requirement-action-name - value-spec-type: requirement-action-name + value-spec-type: requirement-action-transition-post-state mandatory-attributes: all str: assert: |