Commit Graph

6090 Commits

Author SHA1 Message Date
Anuj Agrawal 5124c2d164 Added unit tests for pkg/util/lifted/podtemplate.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-12 17:20:11 +05:30
Mohamed Awnallah 085148bfc6 operator/pkg/util/apiclient: unit test wait
In this commit, we unit test the API client on waiting for API server,
API service, all pods constraint, some pods constraint, and the exponential
backoff utility.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-12 10:46:22 +03:00
Mohamed Awnallah 04d073c12d operator/pkg/tasks: unit test wait init task
In this commit, we unit test wait init task on waiting for Karmada APIServer
and Karmada Control Plane components.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-12 10:42:01 +03:00
karmada-bot 201409c98c
Merge pull request #5643 from mohamedawnallah/unitTestCertDeInitTaskOperatorPkg
operator/pkg/tasks/deinit: unit test cert
2024-10-12 15:07:24 +08:00
karmada-bot 23bcebc82c
Merge pull request #5624 from mohamedawnallah/unitTestAPIServerTaskInitOperatorPKG
operator/pkg/tasks: unit test apiserver
2024-10-12 14:16:23 +08:00
Mohamed Awnallah fddfb29a85 operator/pkg/tasks/deinit: unit test component
In this commit, we unit test component deinit task in the karmada
operator package on removing component subtasks and etcd component.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-12 08:41:50 +03:00
Mohamed Awnallah 2c7aea5f9e operator/pkg/tasks: test cert deinit task
In this commit, we unit test the cert deinit task on the
clean up operations.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-12 07:23:20 +03:00
karmada-bot 0f26e6e95c
Merge pull request #5590 from mohamedawnallah/unitTestKarmadaControlPlaneOperatorPkg
operator/pkg/controlplane: unit test controlplane
2024-10-12 11:49:23 +08:00
karmada-bot 3e0516fb96
Merge pull request #5588 from mohamedawnallah/unitTestKarmadaWebhook
operator/pkg/controlplane: unit test karmada webhook
2024-10-12 11:23:23 +08:00
karmada-bot 839737dc1b
Merge pull request #5644 from anujagrawal699/addedTests-scheduler/metrics-scheduler/framework
Added tests for metrics and framework package of pkg/scheduler
2024-10-12 10:54:23 +08:00
karmada-bot b52775f926
Merge pull request #5671 from chaunceyjiang/fieldoverrider_validate
feat: validate fieldOverrider operation
2024-10-12 10:10:23 +08:00
Mohamed Awnallah cbeb308cdf operator/pkg/tasks/deinit: unit test kubeconfig
In this commit, we unit test kubeconfig deinit task in the operator
package on cleaning up the secret if it has the given labels.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-11 21:11:26 +03:00
karmada-bot d295576a5e
Merge pull request #5646 from anujagrawal699/addedTests-pkg/scheduler/core/common.go
Added tests pkg/scheduler/core/common.go
2024-10-11 18:28:23 +08:00
Mohamed Awnallah 11bd90ecf8 operator/pkg/workflow: test job
In this commit, we unit test the job workflow in the operator
package on initializing the running data runtime interface and
running tasks and subtasks recursively.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-11 12:57:49 +03:00
Anuj Agrawal 5dc2355172 Added tests for pkg/scheduler/core/common.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for pkg/scheduler/core/common.go

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-11 15:04:47 +05:30
karmada-bot 21467f88e5
Merge pull request #5665 from mohamedawnallah/unitTestKubeConfigUtilOperatorPKG
operator/pkg/util: unit test kubeconfig
2024-10-11 15:13:23 +08:00
karmada-bot 2bebd4c045
Merge pull request #5670 from RainbowMango/pr_update_line_terminators
Update file line terminators to LF
2024-10-11 15:12:22 +08:00
chaunceyjiang f45aedb716 feat: validate fieldOverrider operation
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2024-10-11 14:59:04 +08:00
RainbowMango e9e3c62db8 Update file line terminators to LF
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-10-11 11:05:13 +08:00
Mohamed Awnallah 95ba0cdee9 operator/pkg/util: unit test kubeconfig
In this commit, we unit test kubeconfig utility in the karmada
operator package on building client from secret reference and checking
whether the given cluster is local or remote.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
Co-authored-by: zhzhuang-zju <m17799853869@163.com>
2024-10-11 05:29:56 +03:00
karmada-bot 6e41d9b930
Merge pull request #5666 from mohamedawnallah/unitTestNamingUtil
operator/pkg/util: unit test naming
2024-10-11 10:08:22 +08:00
karmada-bot cadb9461a8
Merge pull request #5667 from mohamedawnallah/unitTestTemplateUtil
operator/pkg/util: unit test template
2024-10-11 10:05:22 +08:00
Mohamed Awnallah 56bdcc4fed operator/pkg/util: unit test template
In this commit, we unit test template on parsing template functionality
on parsing and executing html templates with passed args.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-10 17:22:35 +03:00
Mohamed Awnallah 32a85f0df3 operator/pkg/util: unit test naming
In this commit, we unit test naming `generateResourceName` utility
on given karmada component name and suffix.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-10 16:49:33 +03:00
karmada-bot 5dd4ab80ad
Merge pull request #5663 from anujagrawal699/addedTests-pkg/util/lifted/validatingfhpa.go
Added unit tests for FederatedHPA validation
2024-10-10 20:21:22 +08:00
karmada-bot 4a77d619fe
Merge pull request #5649 from anujagrawal699/addedTests-pkg/descheduler/core
Added new tests and refractored old in pkg/descheduler/core
2024-10-10 17:57:21 +08:00
karmada-bot f32780f9f8
Merge pull request #5637 from anujagrawal699/addedTests-pkg/scheduler/cache
Added tests for scheduler/cache
2024-10-10 17:27:23 +08:00
karmada-bot 84a1c654be
Merge pull request #5661 from mohamedawnallah/unitTestEndpointUtil
operator/pkg/util: unit test endpoint
2024-10-10 16:48:21 +08:00
Anuj Agrawal e9f4e7a6ca Added unit tests for FederatedHPA validation
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-10 13:55:15 +05:30
Mohamed Awnallah 9afcc155a2 operator/pkg/util: unit test endpoint
In this commit, we unit test endpoint on getting control plane
endpoint and API Service IP.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-10 10:47:17 +03:00
Mohamed Awnallah ecdc909505 operator/pkg/tasks: unit test apiserver
In this commit, we introduce unit tests for the apiserver init
task in the operator pkg by testing the running and waiting operations
on Karmada API Server and Karmada Aggregated API Server.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-10 07:54:54 +03:00
karmada-bot 5692e289a8
Merge pull request #5319 from zhzhuang-zju/poliyMarks
skip cleanup when the poliy claim metadata changed
2024-10-10 11:46:22 +08:00
Anuj Agrawal 4a0fb95945 Added tests for scheduler/cache
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for pkg/scheduler/cache

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-10 08:19:55 +05:30
zhzhuang-zju 08026dc483 skip cleanup when the poliy claim metadata changed
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-10-10 10:39:59 +08:00
karmada-bot 11d5c971fe
Merge pull request #5563 from zhzhuang-zju/preemption
Clean up the residual annotations when resources are preempted by pp from cpp
2024-10-09 12:13:20 +08:00
karmada-bot c16e52a3ec
Merge pull request #5630 from mohamedawnallah/addTestInitOperatorPKGHelpers
operator/pkg: add test helpers
2024-10-09 11:58:20 +08:00
karmada-bot 376d20376c
Merge pull request #5542 from mohamedawnallah/unitTestInterpreter
pkg/webhook: unit test Interpreter
2024-10-09 11:52:20 +08:00
karmada-bot 33cb56d9de
Merge pull request #5642 from anujagrawal699/addedTests-pkg/scheduler/framework/plugins
Added tests for scheduler plugins
2024-10-09 11:32:20 +08:00
karmada-bot c5a5c84323
Merge pull request #5653 from anujagrawal699/addedTests-pkg/descheduler/descheduler.go
Added tests for pkg/descheduler/descheduler.go
2024-10-09 10:49:21 +08:00
zhzhuang-zju 69a07ed3a0 Clean up the residual annotations when resources are preempted by pp from cpp
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-10-09 10:37:09 +08:00
Mohamed Awnallah c571cfb39a pkg/webhook: test Interpreter
In this commit, we introduce unit tests for the `Interpreter` webhook
across `Decoder`, `HTTP`, `Injection`, `Response`, and `Webhook` components.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-09 05:26:27 +03:00
Mohamed Awnallah fdf7b53586 operator/pkg: add test helpers
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-10-09 04:57:48 +03:00
karmada-bot c6f3de1ce9
Merge pull request #5641 from anujagrawal699/addedTests-pkg/scheduler/event_handler.go
Added tests for pkg/scheduler/event_handler.go
2024-10-09 09:48:20 +08:00
karmada-bot 2a78e2b2f6
Merge pull request #5591 from sophiefeifeifeiya/feat-fieldoverrider
feat: add fieldoverrider
2024-10-09 09:43:21 +08:00
Anuj Agrawal c493e04c6f Added tests for pkg/descheduler/descheduler.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-08 21:37:48 +05:30
sophie 6bf6f305b8 feat: add fieldoverrider
Signed-off-by: sophie <yl5357@columbia.edu>
2024-10-08 10:36:32 -04:00
karmada-bot f656d9a2a0
Merge pull request #5530 from a7i/skip-interpret-health
skip interpret health of resources without a hook
2024-10-08 16:41:20 +08:00
karmada-bot 52a5b4cdf1
Merge pull request #5277 from tiansuo114/doc
docs: add proposal of karmadactl init support config file
2024-10-08 12:12:20 +08:00
karmada-bot ba960f18c4
Merge pull request #5648 from karmada-io/dependabot/github_actions/sigstore/cosign-installer-3.7.0
build(deps): bump sigstore/cosign-installer from 3.6.0 to 3.7.0
2024-10-08 10:46:20 +08:00
Anuj Agrawal fc8b905aaa Added new tests and refractored old in pkg/descheduler/core
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-10-07 20:33:29 +05:30