You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Peter Bacsko (Jira)" <ji...@apache.org> on 2023/11/14 06:03:00 UTC
[jira] [Created] (YUNIKORN-2149) Simplify handler test cases by using the mock event system
Peter Bacsko created YUNIKORN-2149:
--------------------------------------
Summary: Simplify handler test cases by using the mock event system
Key: YUNIKORN-2149
URL: https://issues.apache.org/jira/browse/YUNIKORN-2149
Project: Apache YuniKorn
Issue Type: Sub-task
Components: core - scheduler
Reporter: Peter Bacsko
Currently, we directly use the event system to test the web service handler functions.
This is not ideal because it results in a more complicated test code. For example, in order to test {{EventSystem.IsEventTrackingEnabled()}}, we need to modify and restore the configmap.
Solution: don't directly call {{eventSystem.GetEventSystem()}}, instead, use a function variable that can be replaced by the tests. This greatly simplifies testing.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org