-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
suit: Add tests for severable sequences
Add a test that verifies installation of manifests with severable sequences. Update suit-processor revision to make it possible. Ref: NCSDK-29653 Signed-off-by: Tomasz Chyrowicz <[email protected]>
- Loading branch information
Showing
11 changed files
with
1,244 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
214 changes: 214 additions & 0 deletions
214
tests/subsys/suit/orchestrator/manifest/sample_valid_root_severable.yaml
This file contains 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,214 @@ | ||
SUIT_Envelope_Tagged: | ||
suit-authentication-wrapper: | ||
SuitDigest: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-manifest: | ||
suit-manifest-version: 1 | ||
suit-manifest-sequence-number: 1 | ||
suit-common: | ||
suit-components: | ||
- - CAND_MFST | ||
- 0 | ||
- - INSTLD_MFST | ||
- RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: test_sample_app | ||
suit-shared-sequence: | ||
- suit-directive-set-component-index: 1 | ||
- suit-directive-override-parameters: | ||
suit-parameter-vendor-identifier: | ||
RFC4122_UUID: nordicsemi.com | ||
suit-parameter-class-identifier: | ||
RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: test_sample_root | ||
|
||
- suit-condition-vendor-identifier: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-condition-class-identifier: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
suit-dependencies: | ||
# Key is the index of suit-components that describe the dependency manifest | ||
"0": {} | ||
"1": {} | ||
|
||
suit-validate: | ||
- suit-directive-set-component-index: 1 | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
|
||
suit-invoke: | ||
- suit-directive-set-component-index: 1 | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
|
||
### | ||
# All SUIT_Severable_Members_Choice | ||
### | ||
suit-payload-fetch: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-install: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-text: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
|
||
### | ||
# All severable-manifest-members-choice-extensions | ||
### | ||
suit-dependency-resolution: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-candidate-verification: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
|
||
suit-manifest-component-id: | ||
- INSTLD_MFST | ||
- RFC4122_UUID: | ||
namespace: nordicsemi.com | ||
name: test_sample_root | ||
|
||
### | ||
# All SUIT_Severable_Manifest_Members | ||
### | ||
suit-payload-fetch: | ||
- suit-directive-set-component-index: 0 | ||
- suit-directive-override-parameters: | ||
suit-parameter-uri: '#app.suit' | ||
suit-parameter-image-digest: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-digest-bytes: | ||
envelope: sample_app_posix.suit | ||
- suit-directive-fetch: | ||
- suit-send-record-failure | ||
- suit-condition-image-match: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
|
||
suit-install: | ||
- suit-directive-set-component-index: 0 | ||
- suit-directive-override-parameters: | ||
suit-parameter-uri: '#app.suit' | ||
suit-parameter-image-digest: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-digest-bytes: | ||
envelope: sample_app_posix.suit | ||
- suit-directive-fetch: | ||
- suit-send-record-failure | ||
- suit-condition-image-match: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
# Manifest copied to I/APP s a result of sequence completion | ||
# Manifest copied to I/ROOT s a result of sequence completion | ||
|
||
suit-text: | ||
en: | ||
'["CAND_MFST", 0]': | ||
suit-text-vendor-name: Nordic Semiconductor ASA | ||
suit-text-model-name: test | ||
suit-text-vendor-domain: nordicsemi.com | ||
suit-text-model-info: The test root manifest | ||
suit-text-component-description: Sample root manifest | ||
suit-text-component-version: v1.0.0 | ||
|
||
### | ||
# All SUIT_severable-members-extensions | ||
### | ||
suit-dependency-resolution: | ||
- suit-directive-set-component-index: 0 | ||
- suit-directive-override-parameters: | ||
suit-parameter-uri: '#app.suit' | ||
suit-parameter-image-digest: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-digest-bytes: | ||
envelope: sample_app_posix.suit | ||
- suit-directive-fetch: | ||
- suit-send-record-failure | ||
- suit-condition-image-match: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
|
||
suit-candidate-verification: | ||
- suit-directive-set-component-index: 0 | ||
- suit-directive-override-parameters: | ||
suit-parameter-uri: '#app.suit' | ||
suit-parameter-image-digest: | ||
suit-digest-algorithm-id: cose-alg-sha-256 | ||
suit-digest-bytes: | ||
envelope: sample_app_posix.suit | ||
- suit-directive-fetch: | ||
- suit-send-record-failure | ||
- suit-condition-image-match: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-condition-dependency-integrity: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
- suit-directive-process-dependency: | ||
- suit-send-record-success | ||
- suit-send-record-failure | ||
- suit-send-sysinfo-success | ||
- suit-send-sysinfo-failure | ||
|
||
suit-integrated-dependencies: | ||
'#app.suit': sample_app_severable_posix.suit |
Oops, something went wrong.