Skip to content

Commit 539e595

Browse files
authored
Merge branch 'main' into feature/enable-needimport
2 parents bac02bc + 3ff5415 commit 539e595

2 files changed

Lines changed: 23 additions & 5 deletions

File tree

src/extensions/score_metamodel/metamodel.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ needs_types:
812812
mitigation_issue: ^https://github.com/.*$
813813
mandatory_links:
814814
# req-Id: tool_req__docs_saf_attrs_violates
815-
violates: feat_arc_dyn
815+
violates: feat_arc_dyn, feat_arc_sta
816816
optional_links:
817817
# req-Id: tool_req__docs_saf_attrs_mitigated_by
818818
# (only mandatory once valid status == valid)
@@ -839,7 +839,7 @@ needs_types:
839839
mitigation_issue: ^https://github.com/.*$
840840
mandatory_links:
841841
# req-Id: tool_req__docs_saf_attrs_violates
842-
violates: comp_arc_dyn
842+
violates: comp_arc_dyn, comp_arc_sta
843843
optional_links:
844844
mitigated_by: comp_req, aou_req
845845
tags:

src/extensions/score_metamodel/tests/rst/options/test_options_options.rst

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,33 @@
190190
191191
192192
193+
--- feat_saf_fmea violates begin ---
194+
193195
.. Negative Test: Linked to a non-allowed requirement type.
194-
#EXPECT: feat_saf_fmea__child__26: references 'comp_req__child__ASIL_B' as 'violates', but it must reference Feature Sequence Diagram (feat_arc_dyn).
196+
#EXPECT: feat_saf_fmea__child__26: references 'comp_req__child__ASIL_B' as 'violates', but it must reference Feature Sequence Diagram (feat_arc_dyn) or Feature & Feature Package Diagram (feat_arc_sta).
195197

196198
.. feat_saf_fmea:: Child requirement 26
197199
:id: feat_saf_fmea__child__26
198-
:safety: ASIL_B
199-
:status: valid
200200
:violates: comp_req__child__ASIL_B
201201

202+
.. feat_saf_fmea can link either feat_arc_dyn or feat_arc_sta
203+
204+
Expect no errors related to "violates" field. We need to be generic for expect-not verifications.
205+
#EXPECT-NOT: violates
206+
207+
.. feat_saf_fmea:: This requirement links a feat_arc_dyn
208+
:id: feat_saf_fmea__violate__dyn
209+
:violates: feat_arc_dyn__test_good_1
210+
211+
212+
Expect no errors related to "violates" field. We need to be generic for expect-not verifications.
213+
#EXPECT-NOT: violates
214+
215+
.. feat_saf_fmea:: This requirement links a feat_arc_sta
216+
:id: feat_saf_fmea__violate__sta
217+
:violates: feat_arc_sta__test_good_1
218+
219+
--- feat_saf_fmea violates end ---
202220

203221

204222
.. Tests if the attribute `safety` follows the pattern `^(QM|ASIL_B)$`

0 commit comments

Comments
 (0)