Commit Graph

7 Commits

Author SHA1 Message Date
Mohamed Awnallah 627b464489 pkg/search/controllers_test: wait for cache sync
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-12-11 07:06:43 +02:00
karmada-bot 6f4d69cf8b
Merge pull request #5875 from mohamedawnallah/addressSearchControllerFlakeTest
pkg/search/controllers_test: address flaky test
2024-11-28 19:23:03 +08:00
chaosi-zju 13c28a00b2 fix code typo errors
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-28 11:01:54 +08:00
Mohamed Awnallah fcfbf700cd pkg/search/controllers_test: address flake test
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-27 16:26:41 +02:00
changzhen 7da64235a1 add group/values for resources
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-22 14:35:08 +08:00
changzhen 7f7879dfd3 fix flake test of TestUpdateClusterEventHandler
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-22 12:00:56 +08:00
Mohamed Awnallah dc2eea8710 pkg/search: unit test controller
In this commit, we unit test karmada search controller
on creating new controller and handling the following events
watched by the shared informer: `addCluster`, `updateCluster`,
`deleteCluster`, `addResourceRegistry`, `updateResourceRegistry`,
and `deleteResourceRegistry` making sure those handled and cached
correctly to the indexer.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-13 01:33:34 +02:00