Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 5 additions & 4 deletions docs/internals/requirements/requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,16 @@ Versioning
:id: tool_req__docs_doc_generic_mandatory
:tags: Documents
:implemented: PARTIAL
:version: 1
:version: 2
:satisfies:
gd_req__doc_attributes_manual,
gd_req__change_attr_impact_safety
gd_req__change_attr_impact_safety,
gd_req__doc_attr_status,
:parent_covered: YES

Docs-as-Code shall enforce that each Generic Document ``doc__*`` has the following attributes:
Enforce that each Generic Document ``doc__*`` has the following attributes:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Docs-as-code needs to stay here, as we need an actor in the description.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is there some styleguide on this? We should then undo the other three of these changes in that case.

I find it rather annoying because this is rather clear implicitly for all the requirements here.


* status
* status (one of: valid, draft, invalid)
* security
* safety
* realizes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,25 @@
:safety: ASIL_B


.. Tests if the attribute `status` follows the pattern `^(valid|draft|invalid)$`
#EXPECT-NOT[+2]: does not follow pattern

.. document:: This is a test document
:id: doc__test_good_3
:status: draft
:safety: QM


#EXPECT[+4]: doc__test_bad_status_1.status (active): does not follow pattern `^(valid|draft|invalid)$`.
#EXPECT[+3]: doc__test_bad_status_1: is missing required attribute: `security`.
#EXPECT[+2]: doc__test_bad_status_1: is missing required link: `realizes`.

.. document:: This is a test document
:id: doc__test_bad_status_1
:status: active
:safety: QM


#EXPECT-NOT[+2]: does not follow pattern

.. stkh_req:: This is a test
Expand Down
Loading