Skip to content

Commit

Permalink
test: subsys: jwt: fix testing of the features
Browse files Browse the repository at this point in the history
- 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 <vsetti@baylibre.com>
  • Loading branch information
valeriosetti committed Sep 12, 2024
1 parent 9cdff36 commit 7e409ee
Show file tree
Hide file tree
Showing 9 changed files with 153 additions and 326 deletions.
18 changes: 0 additions & 18 deletions tests/subsys/jwt/jwt-test-cert.pem

This file was deleted.

Binary file removed tests/subsys/jwt/jwt-test-private.der
Binary file not shown.
28 changes: 0 additions & 28 deletions tests/subsys/jwt/jwt-test-private.pem

This file was deleted.

11 changes: 0 additions & 11 deletions tests/subsys/jwt/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,10 @@ CONFIG_BASE64=y
CONFIG_JSON_LIBRARY=y
CONFIG_JWT=y
CONFIG_ZTEST=y
# CONFIG_ZTEST_STACK_SIZE=2048
CONFIG_ZTEST_STACK_SIZE=8192

# Enable CSPRNG
CONFIG_ENTROPY_GENERATOR=y
CONFIG_ENTROPY_DEVICE_RANDOM_GENERATOR=y

# Enable MBEDTLS
CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_BUILTIN=y
CONFIG_MBEDTLS_ENABLE_HEAP=y
CONFIG_MBEDTLS_HEAP_SIZE=32700
CONFIG_MBEDTLS_USER_CONFIG_ENABLE=y
CONFIG_MBEDTLS_USER_CONFIG_FILE="user-tls-conf.h"

CONFIG_NET_SOCKETS=y

CONFIG_REQUIRES_FULL_LIBC=y
148 changes: 0 additions & 148 deletions tests/subsys/jwt/src/jwt-test-cert.c

This file was deleted.

Loading

0 comments on commit 7e409ee

Please sign in to comment.