Skip to content

Commit 52966b0

Browse files
committed
suit: Fix fetch test instabilities
Fetching into CAND_IMG does not allow to read back the decrypted contents. Ref: NCSDK-32472 Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
1 parent 2e87c51 commit 52966b0

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

scripts/quarantine.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,3 @@
4949
platforms:
5050
- nrf54l20pdk/nrf54l20/cpuapp
5151
comment: "https://nordicsemi.atlassian.net/browse/NRFX-7205"
52-
53-
- scenarios:
54-
- suit-platform.integration.fetch
55-
platforms:
56-
- native_sim/native
57-
comment: "https://nordicsemi.atlassian.net/browse/NCSDK-32472"

tests/subsys/suit/fetch/src/test_sdfw_mem.c

-16
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ ZTEST(fetch_tests, test_integrated_fetch_to_msink_encrypted_OK)
150150
ZTEST(fetch_tests, test_integrated_fetch_to_memptr_encrypted_NOK)
151151
{
152152
suit_component_t component_handle;
153-
memptr_storage_handle_t handle = NULL;
154153
struct zcbor_string source = {.value = decrypt_test_ciphertext_direct,
155154
.len = sizeof(decrypt_test_ciphertext_direct)};
156155

@@ -187,21 +186,6 @@ ZTEST(fetch_tests, test_integrated_fetch_to_memptr_encrypted_NOK)
187186
&enc_info);
188187
zassert_equal(ret, SUIT_SUCCESS, "suit_plat_fetch failed - error %i", ret);
189188

190-
ret = suit_plat_component_impl_data_get(component_handle, &handle);
191-
zassert_equal(ret, SUIT_SUCCESS, "suit_plat_component_impl_data_get failed - error %i",
192-
ret);
193-
194-
const uint8_t *payload;
195-
size_t payload_size = 0;
196-
197-
ret = suit_memptr_storage_ptr_get(handle, &payload, &payload_size);
198-
199-
zassert_equal(ret, SUIT_PLAT_SUCCESS, "storage.get failed - error %i", ret);
200-
zassert_not_equal(memcmp(decrypt_test_plaintext, payload, strlen(decrypt_test_plaintext)),
201-
0, "Retrieved decrypted payload should not mach decrypt_test_plaintext");
202-
zassert_equal(sizeof(decrypt_test_plaintext), payload_size,
203-
"Retrieved payload_size doesn't mach size of decrypt_test_plaintext");
204-
205189
ret = suit_plat_release_component_handle(component_handle);
206190
zassert_equal(ret, SUIT_SUCCESS, "Handle release failed - error %i", ret);
207191

0 commit comments

Comments
 (0)