mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
NotSupported is specifically about key types
Rename NotSupported to KeyTypeNotSupported, because it's only about testing key management. For algorithms, not-supported is handled by OpFail. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -151,8 +151,8 @@ def test_case_for_key_type_not_supported(
|
|||||||
tc.set_arguments([key_type] + list(args))
|
tc.set_arguments([key_type] + list(args))
|
||||||
return tc
|
return tc
|
||||||
|
|
||||||
class NotSupported:
|
class KeyTypeNotSupported:
|
||||||
"""Generate test cases for when something is not supported."""
|
"""Generate test cases for when a key type is not supported."""
|
||||||
|
|
||||||
def __init__(self, info: Information) -> None:
|
def __init__(self, info: Information) -> None:
|
||||||
self.constructors = info.constructors
|
self.constructors = info.constructors
|
||||||
@ -900,7 +900,7 @@ class PSATestGenerator(test_data_generation.TestGenerator):
|
|||||||
'test_suite_psa_crypto_generate_key.generated':
|
'test_suite_psa_crypto_generate_key.generated':
|
||||||
lambda info: KeyGenerate(info).test_cases_for_key_generation(),
|
lambda info: KeyGenerate(info).test_cases_for_key_generation(),
|
||||||
'test_suite_psa_crypto_not_supported.generated':
|
'test_suite_psa_crypto_not_supported.generated':
|
||||||
lambda info: NotSupported(info).test_cases_for_not_supported(),
|
lambda info: KeyTypeNotSupported(info).test_cases_for_not_supported(),
|
||||||
'test_suite_psa_crypto_op_fail.generated':
|
'test_suite_psa_crypto_op_fail.generated':
|
||||||
lambda info: OpFail(info).all_test_cases(),
|
lambda info: OpFail(info).all_test_cases(),
|
||||||
'test_suite_psa_crypto_storage_format.current':
|
'test_suite_psa_crypto_storage_format.current':
|
||||||
|
Reference in New Issue
Block a user