File tree Expand file tree Collapse file tree
docs/internals/requirements
src/extensions/score_metamodel/tests/rst/options Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -304,15 +304,16 @@ Versioning
304304 :id: tool_req__docs_doc_generic_mandatory
305305 :tags: Documents
306306 :implemented: PARTIAL
307- :version: 1
307+ :version: 2
308308 :satisfies:
309309 gd_req__doc_attributes_manual,
310- gd_req__change_attr_impact_safety
310+ gd_req__change_attr_impact_safety,
311+ gd_req__doc_attr_status,
311312 :parent_covered: YES
312313
313- Docs-as-Code shall enforce that each Generic Document ``doc__* `` has the following attributes:
314+ Enforce that each Generic Document ``doc__* `` has the following attributes:
314315
315- * status
316+ * status (one of: valid, draft, invalid)
316317 * security
317318 * safety
318319 * realizes
Original file line number Diff line number Diff line change 233233 :safety: ASIL_B
234234
235235
236+ .. Tests if the attribute `status` follows the pattern `^(valid|draft|invalid)$`
237+ #EXPECT-NOT[+2]: does not follow pattern
238+
239+ .. document :: This is a test document
240+ :id: doc__test_good_3
241+ :status: draft
242+ :safety: QM
243+
244+
245+ #EXPECT[+4]: doc__test_bad_status_1.status (active): does not follow pattern `^(valid|draft|invalid)$ `.
246+ #EXPECT[+3]: doc__test_bad_status_1: is missing required attribute: `security `.
247+ #EXPECT[+2]: doc__test_bad_status_1: is missing required link: `realizes `.
248+
249+ .. document :: This is a test document
250+ :id: doc__test_bad_status_1
251+ :status: active
252+ :safety: QM
253+
254+
236255#EXPECT-NOT[+2]: does not follow pattern
237256
238257.. stkh_req :: This is a test
You can’t perform that action at this time.
0 commit comments