Skip to content

Commit 6e8e0ec

Browse files
valeriosettinashif
authored andcommitted
test: subsys: jwt: fix testing of the features
- Some files (PEM/DER files, jwt-test-cert.c, user-tls-conf.h) were removed because they are not used or no longer necessary. Private keys used in the test are now in the jwt-test-private.c file as arrays. - testcase.yaml has been improved in order to test all possible use cases: ECDSA with TC, ECDSA with PSA, RSA; - unnecessary Kconfigs were removed from prj.conf. Signed-off-by: Valerio Setti <[email protected]>
1 parent ec3dea2 commit 6e8e0ec

File tree

9 files changed

+153
-326
lines changed

9 files changed

+153
-326
lines changed

tests/subsys/jwt/jwt-test-cert.pem

Lines changed: 0 additions & 18 deletions
This file was deleted.
-1.19 KB
Binary file not shown.

tests/subsys/jwt/jwt-test-private.pem

Lines changed: 0 additions & 28 deletions
This file was deleted.

tests/subsys/jwt/prj.conf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,10 @@ CONFIG_BASE64=y
22
CONFIG_JSON_LIBRARY=y
33
CONFIG_JWT=y
44
CONFIG_ZTEST=y
5-
# CONFIG_ZTEST_STACK_SIZE=2048
65
CONFIG_ZTEST_STACK_SIZE=8192
76

87
# Enable CSPRNG
98
CONFIG_ENTROPY_GENERATOR=y
109
CONFIG_ENTROPY_DEVICE_RANDOM_GENERATOR=y
1110

12-
# Enable MBEDTLS
13-
CONFIG_MBEDTLS=y
14-
CONFIG_MBEDTLS_BUILTIN=y
15-
CONFIG_MBEDTLS_ENABLE_HEAP=y
16-
CONFIG_MBEDTLS_HEAP_SIZE=32700
17-
CONFIG_MBEDTLS_USER_CONFIG_ENABLE=y
18-
CONFIG_MBEDTLS_USER_CONFIG_FILE="user-tls-conf.h"
19-
20-
CONFIG_NET_SOCKETS=y
21-
2211
CONFIG_REQUIRES_FULL_LIBC=y

tests/subsys/jwt/src/jwt-test-cert.c

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)