Skip to content
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

tests: Add decrypt filter unit tests. #19772

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nordic-mik7
Copy link
Contributor

Implement unit tests for decryption stream filter in SUIT. As a result of tests implementation and run, minor changes to error handling were added to decryption filter implementation. Also, some parameter renamig was applied.

Ref: NCSDK-30925

@nordic-mik7 nordic-mik7 requested review from a team as code owners January 7, 2025 13:35
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Jan 7, 2025
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Jan 7, 2025

CI Information

To view the history of this post, clich the 'edited' button above
Build number: 9

Inputs:

Sources:

sdk-nrf: PR head: bf61227b8e5999bd0d3c99e82c97da2aa6e185d9

more details

sdk-nrf:

PR head: bf61227b8e5999bd0d3c99e82c97da2aa6e185d9
merge base: 741cb7aa25da073966de033ca9d79788e2fc6a0b
target head (main): 478cee112e8f3ac20ecf3a1156e76baa46ab3af3
Diff

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (9)
subsys
│  ├── suit
│  │  ├── stream
│  │  │  ├── stream_filters
│  │  │  │  ├── include
│  │  │  │  │  │ suit_decrypt_filter.h
│  │  │  │  ├── src
│  │  │  │  │  │ suit_decrypt_filter.c
tests
│  ├── subsys
│  │  ├── suit
│  │  │  ├── unit
│  │  │  │  ├── mocks
│  │  │  │  │  ├── include
│  │  │  │  │  │  ├── mock_suit_crypto.h
│  │  │  │  │  │  │ mock_suit_mci.h
│  │  │  │  ├── suit_decrypt_filter
│  │  │  │  │  ├── CMakeLists.txt
│  │  │  │  │  ├── Kconfig
│  │  │  │  │  ├── prj.conf
│  │  │  │  │  ├── src
│  │  │  │  │  │  │ main.c
│  │  │  │  │  │ testcase.yaml

Outputs:

Toolchain

Version: b77d8c1312
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:b77d8c1312_912848a074

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ✅ Build twister
    • sdk-nrf test count: 135
  • ✅ Integration tests
    • ✅ test-sdk-dfu
    • ⚠️ test-sdk-dfu
Disabled integration tests
    • desktop52_verification
    • doc-internal
    • test_ble_nrf_config
    • test-fw-nrfconnect-apps
    • test-fw-nrfconnect-ble_mesh
    • test-fw-nrfconnect-ble_samples
    • test-fw-nrfconnect-boot
    • test-fw-nrfconnect-chip
    • test-fw-nrfconnect-fem
    • test-fw-nrfconnect-nfc
    • test-fw-nrfconnect-nrf-iot_libmodem-nrf
    • test-fw-nrfconnect-nrf-iot_lwm2m
    • test-fw-nrfconnect-nrf-iot_mosh
    • test-fw-nrfconnect-nrf-iot_nrf_provisioning
    • test-fw-nrfconnect-nrf-iot_positioning
    • test-fw-nrfconnect-nrf-iot_samples
    • test-fw-nrfconnect-nrf-iot_serial_lte_modem
    • test-fw-nrfconnect-nrf-iot_thingy91
    • test-fw-nrfconnect-nrf-iot_zephyr_lwm2m
    • test-fw-nrfconnect-nrf_crypto
    • test-fw-nrfconnect-ps
    • test-fw-nrfconnect-rpc
    • test-fw-nrfconnect-rs
    • test-fw-nrfconnect-tfm
    • test-fw-nrfconnect-thread
    • test-fw-nrfconnect-zigbee
    • test-low-level
    • test-sdk-audio
    • test-sdk-find-my
    • test-sdk-mcuboot
    • test-sdk-pmic-samples
    • test-sdk-sidewalk
    • test-sdk-wifi
    • test-secdom-samples-public

Note: This message is automatically posted and updated by the CI

@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds.

Note: This comment is automatically posted by the Documentation Publish GitHub Action.

@nordic-mik7 nordic-mik7 force-pushed the dev/NCSKD-30925_squash branch 5 times, most recently from c2b2c2e to 0e168a1 Compare January 7, 2025 17:17
This commit implements unit tests for decryption stream filter in SUIT.
As a result of tests implementation and run, minor changes to error
handling were added to decryption filter implementation. Also, some
parameter renamig was applied.

Ref: NCSDK-30925

Signed-off-by: Michal Kozikowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants