Class ZCL_LLM_AUTH_DISABLED
AI Generated documentation.
Overview
The zcl_llm_auth_disabled class is a test class designed to verify the authorization functionality of the zcl_llm_auth class. It provides a set of test methods to check the behavior of the zcl_llm_auth class without raising any exceptions.
Dependencies
The class depends on the zcl_llm_auth class, which is the class being tested. It also uses the BADI ZLLM_DEFAULTS to implement custom versions of the check_decrypt, check_encrypt, check_get_client, and check_provider_maintenance methods.
Details
The class has four test methods:
zif_llm_auth~check_decrypt: Verifies that thecheck_decryptmethod ofzcl_llm_authdoes not raise an exception.zif_llm_auth~check_encrypt: Verifies that thecheck_encryptmethod ofzcl_llm_authdoes not raise an exception.zif_llm_auth~check_get_client: Verifies that thecheck_get_clientmethod ofzcl_llm_authdoes not raise an exception.zif_llm_auth~check_provider_maintenance: Verifies that thecheck_provider_maintenancemethod ofzcl_llm_authdoes not raise an exception.
The class uses a custom implementation of the check_decrypt, check_encrypt, check_get_client, and check_provider_maintenance methods to avoid raising exceptions. These methods are registered in the BADI ZLLM_DEFAULTS to ensure that the custom implementation is used.
graph LR
class zcl_llm_auth_disabled as Test Class
setup -->|Create instance| zcl_llm_auth_disabled
zcl_llm_auth -->|Check decrypt| zcl_llm_auth~check_decrypt
zcl_llm_auth -->|Check encrypt| zcl_llm_auth~check_encrypt
zcl_llm_auth -->|Check get client| zcl_llm_auth~check_get_client
zcl_llm_auth -->|Check provider maintenance| zcl_llm_auth~check_provider_maintenance
The class provides a way to test the authorization functionality of the zcl_llm_auth class without raising exceptions, allowing for a more comprehensive test suite.