Repository navigation
test: fully verify more #885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1030061
test: fully verify more requirements
a-zw 714ab8a
test: adapt test properties
a-zw cecadcc
test: fully verify arch-link requirements
a-zw 8df51c0
fix: align parse_milestone with metamodel.yaml
a-zw 773ad68
fix: review comments
a-zw 5ce456b
fix: pr checks
a-zw e78c7f9
Merge branch 'main' into fully-verify
AlexanderLanin 1eaba2a
fix: review comments
a-zw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
189 changes: 189 additions & 0 deletions
189
src/extensions/score_metamodel/tests/rst/architecture/test_arch_link_fulfils.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,189 @@ | ||
| .. | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| .. test_metadata:: | ||
| :id: test_metadata__arch_link_fulfils | ||
| :fully_verifies_list: tool_req__docs_arch_link_fulfils[version==3] | ||
| :test_type: requirements_based | ||
| :derivation_technique: requirements_based | ||
|
|
||
| Checks the allowed ``fulfils`` target type for each architecture source type. | ||
| Each permitted source-target combination is accepted, and mismatched feature | ||
| and component requirement targets are rejected. | ||
|
|
||
|
|
||
| .. feat:: Feature | ||
| :id: feat__arch_fulfils__feature | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
|
|
||
|
|
||
| .. comp:: Component | ||
| :id: comp__arch_fulfils__component | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :belongs_to: feat__arch_fulfils__feature | ||
|
|
||
|
|
||
| .. logic_arc_int:: Logical interface | ||
| :id: logic_arc_int__arch_fulfils__interface | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :included_by: feat__arch_fulfils__feature | ||
|
|
||
|
|
||
| .. feat_req:: Feature requirement | ||
| :id: feat_req__arch_fulfils__feature__good | ||
| :reqtype: Functional | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :valid_from: v1.0 | ||
| :satisfied_by: feat__arch_fulfils__feature | ||
|
|
||
| A feature requirement target. | ||
|
|
||
|
|
||
| .. comp_req:: Component requirement | ||
| :id: comp_req__arch_fulfils__component__good | ||
| :reqtype: Functional | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :satisfied_by: comp__arch_fulfils__component | ||
|
|
||
| A component requirement target. | ||
|
|
||
|
|
||
| .. feat_arc_sta:: Feature static view fulfils feature requirement | ||
| :id: feat_arc_sta__arch_fulfils__good | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :belongs_to: feat__arch_fulfils__feature | ||
| :includes: logic_arc_int__arch_fulfils__interface | ||
| :fulfils: feat_req__arch_fulfils__feature__good | ||
| :expect_not: but it must reference | ||
|
|
||
|
|
||
| .. feat_arc_dyn:: Feature dynamic view fulfils feature requirement | ||
| :id: feat_arc_dyn__arch_fulfils__good | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :belongs_to: feat__arch_fulfils__feature | ||
| :fulfils: feat_req__arch_fulfils__feature__good | ||
| :expect_not: but it must reference | ||
|
|
||
|
|
||
| .. logic_arc_int:: Logical interface fulfils feature requirement | ||
| :id: logic_arc_int__arch_fulfils__fulfils_good | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :fulfils: feat_req__arch_fulfils__feature__good | ||
| :expect_not: but it must reference | ||
|
|
||
|
|
||
| .. comp_arc_sta:: Component static view fulfils component requirement | ||
| :id: comp_arc_sta__arch_fulfils__good | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :belongs_to: comp__arch_fulfils__component | ||
| :fulfils: comp_req__arch_fulfils__component__good | ||
| :expect_not: but it must reference | ||
|
|
||
|
|
||
| .. comp_arc_dyn:: Component dynamic view fulfils component requirement | ||
| :id: comp_arc_dyn__arch_fulfils__good | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :belongs_to: comp__arch_fulfils__component | ||
| :fulfils: comp_req__arch_fulfils__component__good | ||
| :expect_not: but it must reference | ||
|
|
||
|
|
||
| .. real_arc_int:: Real interface fulfils component requirement | ||
| :id: real_arc_int__arch_fulfils__good | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :language: cpp | ||
| :fulfils: comp_req__arch_fulfils__component__good | ||
| :expect_not: but it must reference | ||
|
|
||
|
|
||
| .. feat_arc_sta:: Feature static view rejects component requirement | ||
| :id: feat_arc_sta__arch_fulfils__bad | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :belongs_to: feat__arch_fulfils__feature | ||
| :includes: logic_arc_int__arch_fulfils__interface | ||
| :fulfils: comp_req__arch_fulfils__component__good | ||
| :expect: but it must reference Feature Requirement (feat_req) | ||
|
|
||
|
|
||
| .. comp_arc_sta:: Component static view rejects feature requirement | ||
| :id: comp_arc_sta__arch_fulfils__bad | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :belongs_to: comp__arch_fulfils__component | ||
| :fulfils: feat_req__arch_fulfils__feature__good | ||
| :expect: but it must reference Component Requirement (comp_req) | ||
|
|
||
|
|
||
| .. feat_arc_dyn:: Feature dynamic view rejects component requirement | ||
| :id: feat_arc_dyn__arch_fulfils__bad | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :belongs_to: feat__arch_fulfils__feature | ||
| :fulfils: comp_req__arch_fulfils__component__good | ||
| :expect: but it must reference Feature Requirement (feat_req) | ||
|
|
||
|
|
||
| .. logic_arc_int:: Logical interface rejects component requirement | ||
| :id: logic_arc_int__arch_fulfils__bad | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :fulfils: comp_req__arch_fulfils__component__good | ||
| :expect: but it must reference Feature Requirement (feat_req) | ||
|
|
||
|
|
||
| .. comp_arc_dyn:: Component dynamic view rejects feature requirement | ||
| :id: comp_arc_dyn__arch_fulfils__bad | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :belongs_to: comp__arch_fulfils__component | ||
| :fulfils: feat_req__arch_fulfils__feature__good | ||
| :expect: but it must reference Component Requirement (comp_req) | ||
|
|
||
|
|
||
| .. real_arc_int:: Real interface rejects feature requirement | ||
| :id: real_arc_int__arch_fulfils__bad | ||
| :security: NO | ||
| :safety: QM | ||
| :status: valid | ||
| :language: cpp | ||
| :fulfils: feat_req__arch_fulfils__feature__good | ||
| :expect: but it must reference Component Requirement (comp_req) |
153 changes: 153 additions & 0 deletions
153
...xtensions/score_metamodel/tests/rst/attributes/test_common_attr_description.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,153 @@ | ||
| .. | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
|
|
||
| .. test_metadata:: Common description attribute | ||
| :id: test_metadata__common_attr_description | ||
| :partially_verifies_list: tool_req__docs_common_attr_description | ||
| :test_type: requirements_based | ||
| :derivation_technique: requirements_based | ||
|
|
||
| Checks that requirement types accept non-empty descriptions and reject a | ||
| missing description. | ||
|
|
||
|
|
||
| .. feat:: Feature target | ||
| :id: feat__description_target | ||
| :version: 1 | ||
| :status: valid | ||
| :safety: QM | ||
| :security: NO | ||
|
|
||
|
|
||
| .. comp:: Component target | ||
| :id: comp__description_target | ||
| :version: 1 | ||
| :status: valid | ||
| :safety: QM | ||
| :security: NO | ||
| :belongs_to: feat__description_target | ||
|
|
||
|
|
||
| .. stkh_req:: Requirement used as a tool requirement target | ||
| :id: stkh_req__description__abcd | ||
| :version: 1 | ||
| :reqtype: Functional | ||
| :safety: QM | ||
| :security: NO | ||
| :status: valid | ||
| :rationale: fixture target | ||
| :valid_from: v1.0 | ||
|
|
||
|
|
||
| .. feat_req:: Feature requirement with a description | ||
| :id: feat_req__description__aaaa | ||
| :version: 1 | ||
| :reqtype: Functional | ||
| :safety: QM | ||
| :security: NO | ||
| :status: valid | ||
| :valid_from: v1.0 | ||
| :satisfied_by: feat__description_target | ||
| :expect_not: is missing required attribute: `content` | ||
|
|
||
| This feature requirement has useful content. | ||
|
|
||
|
|
||
| .. feat_req:: Feature requirement without a description | ||
| :id: feat_req__description__aaab | ||
| :version: 1 | ||
| :reqtype: Functional | ||
| :safety: QM | ||
| :security: NO | ||
| :status: valid | ||
| :valid_from: v1.0 | ||
| :satisfied_by: feat__description_target | ||
| :expect: is missing required attribute: `content` | ||
|
|
||
|
|
||
| .. comp_req:: Component requirement with a description | ||
| :id: comp_req__description__aaaa | ||
| :version: 1 | ||
| :reqtype: Functional | ||
| :safety: QM | ||
| :security: NO | ||
| :status: valid | ||
| :satisfied_by: comp__description_target | ||
| :expect_not: is missing required attribute: `content` | ||
|
|
||
| This component requirement has useful content. | ||
|
|
||
|
|
||
| .. comp_req:: Component requirement without a description | ||
| :id: comp_req__description__aaab | ||
| :version: 1 | ||
| :reqtype: Functional | ||
| :safety: QM | ||
| :security: NO | ||
| :status: valid | ||
| :satisfied_by: comp__description_target | ||
| :expect: is missing required attribute: `content` | ||
|
|
||
|
|
||
| .. aou_req:: Assumption with a description | ||
| :id: aou_req__description__aaaa | ||
| :version: 1 | ||
| :reqtype: Functional | ||
| :safety: QM | ||
| :security: NO | ||
| :status: valid | ||
| :expect_not: is missing required attribute: `content` | ||
|
|
||
| This assumption has useful content. | ||
|
|
||
|
|
||
| .. aou_req:: Assumption without a description | ||
| :id: aou_req__description__aaab | ||
| :version: 1 | ||
| :reqtype: Functional | ||
| :safety: QM | ||
| :security: NO | ||
| :status: valid | ||
| :expect: is missing required attribute: `content` | ||
|
|
||
|
|
||
| .. tool_req:: Tool requirement with a description | ||
| :id: tool_req__description_valid | ||
| :version: 1 | ||
| :satisfies: stkh_req__description__abcd | ||
| :expect_not: is missing required attribute: `content` | ||
|
|
||
| This tool requirement has useful content. | ||
|
|
||
|
|
||
| .. tool_req:: Tool requirement without a description | ||
| :id: tool_req__description_missing | ||
| :version: 1 | ||
| :satisfies: stkh_req__description__abcd | ||
| :expect: is missing required attribute: `content` | ||
|
|
||
|
|
||
| .. gd_req:: Process requirement with a description | ||
| :id: gd_req__description_with | ||
| :version: 1 | ||
| :expect_not: is missing required attribute: `content` | ||
|
|
||
| This process requirement has useful content. | ||
|
|
||
|
|
||
| .. gd_req:: Process requirement without a description | ||
| :id: gd_req__description_missing | ||
| :version: 1 | ||
| :expect: is missing required attribute: `content` |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.