Commit Graph

365 Commits

Author SHA1 Message Date
sophie 6bf6f305b8 feat: add fieldoverrider
Signed-off-by: sophie <yl5357@columbia.edu>
2024-10-08 10:36:32 -04:00
changzhen 998c547414 fix occasional suspension case failed
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-09-11 17:28:14 +08:00
Mohamed Awnallah be87fd5e71 pkg+test: unify usage of policyv1alpha1 operators
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-09 22:56:47 +03:00
karmada-bot 350838dc22
Merge pull request #5029 from XiShanYongYe-Chang/remove-pp-name-length-limit
Remove pp/cpp name length limit
2024-08-31 11:28:48 +08:00
karmada-bot 6b6a16dac7
Merge pull request #5457 from zhzhuang-zju/toppod
Provide detailed error message when the  e2e test fails
2024-08-29 20:29:46 +08:00
karmada-bot bd483c141d
Merge pull request #5454 from whitewindmills/words-cleanup
Fix spelling errors
2024-08-29 19:43:46 +08:00
zhzhuang-zju a379359cf4 Provide detailed error message when the e2e test fails
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-08-29 17:31:28 +08:00
whitewindmills b4ad838227 Fix spelling errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-08-29 15:58:05 +08:00
hulizhe 1a34a70ef3 enhance top pod command
Signed-off-by: hulizhe <pompeii.hu@gmail.com>
2024-08-29 10:50:30 +08:00
zhzhuang-zju effc1474ac e2e: add a test case when the GracePeriodSeconds is reach out
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-08-26 10:22:26 +08:00
Mohamed Awnallah c325eee158 test/e2e/karmadactl_test.go: test apply command
In this commit, we add e2e tests for the `karmadactl apply`
command to ensure it handles various scenarios correctly.
The tests include:

- Applying configurations without propagating them into member clusters.
- Applying configurations with propagation into specific member clusters.
- Applying configurations and propagating them to all member clusters.
- Verifying that no resources were created during `--dry-run` mode.
- Ensuring the command returns an error for an invalid flag.
- Ensuring the command returns an error when the specified file does not exist.
- Applying configurations with the `--namespace` flag to ensure resources are created in the specified namespace.
- Applying configurations with the `--force-conflicts` flag to ensure conflicts are forcefully resolved during server-side apply.
- Applying configurations using the `--kustomize` flag to process a kustomization directory.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
Co-authored-by: zhzhuang-zju <m17799853869@163.com>
Co-authored-by: Chang <changzhen5@huawei.com>
2024-08-20 11:13:00 +00:00
karmada-bot 24de174b35
Merge pull request #5398 from hulizhe/karmadactlexec
enhance karmadactl exec command
2024-08-19 18:14:37 +08:00
hulizhe 914d57ca89 enhance karmadactl exec command
Signed-off-by: hulizhe <pompeii.hu@gmail.com>
2024-08-19 16:10:57 +08:00
hulizhe 6eae2b9ba9 karmadactl describe e2e test
Signed-off-by: hulizhe <pompeii.hu@gmail.com>
2024-08-19 15:38:18 +08:00
hulizhe 37a6dc93d2 karmadactl get e2e test
Signed-off-by: hulizhe <pompeii.hu@gmail.com>
2024-08-19 10:17:21 +08:00
karmada-bot c575d4f211
Merge pull request #5383 from a7i/remove-delete-tests
chore: remove e2e tests for delete when suspended
2024-08-16 11:09:35 +08:00
changzhen 911cc44974 remove pp/cpp name length limit
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-08-16 10:34:15 +08:00
Amir Alavi f2f10ca3e4
chore: remove e2e tests for delete when suspended
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-08-15 22:17:53 -04:00
chaosi-zju e7e06ceed8 fix pdb collection testing occasional failure
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-08-15 21:28:00 +08:00
Amir Alavi d909218748
e2e for work suspension resume
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-08-14 16:46:26 -04:00
karmada-bot 223e54e90d
Merge pull request #5258 from chaosi-zju/e2e-3
flake test: daemonSet status collection testing failed
2024-08-13 12:04:32 +08:00
karmada-bot b5b065da8a
Merge pull request #5332 from a7i/work-suspend-event
work suspension: emit event for work dispatch status
2024-08-12 13:57:31 +08:00
karmada-bot f5f53c33c8
Merge pull request #5141 from liangyuanpeng/fix_test_k8s1.30
Fix test for corev1.LoadBalancerIngress,add IP model to VIP when ip is setting.
2024-08-12 11:23:32 +08:00
Lan Liang c9ccf9a849 Fix test for corev1.LoadBalancerIngress,add IP model to VIP when ip is setting.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-08-09 10:23:06 +00:00
Amir Alavi 8f707f35b4
work suspension: emit event for work dispatch status
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>

fix lint

fix lint
2024-08-09 06:15:05 -04:00
Mohamed Awnallah f59ea2dea6 test/e2e: unfiy random string length generation
In this commit, we unify the generation of random string
length by utilizing `RandomStrLength` global constant.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-08-09 07:56:59 +00:00
karmada-bot 052b06ecc2
Merge pull request #5333 from a7i/duplicate-import
chore: remove duplicate imports
2024-08-09 14:52:29 +08:00
Amir Alavi 010d38954e
chore: remove duplicate imports
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-08-08 23:22:37 -04:00
chaosi-zju 10f118d551 flake test: daemonSet status collection testing failed
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-08-08 15:07:05 +08:00
Amir Alavi 1d8e0a029e
work suspension: work status conditions
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-08-07 22:25:05 -04:00
xovoxy 38ee277de7 optimize: used unified context in controller
Signed-off-by: xovoxy <xilovele@gmail.com>
2024-08-06 11:44:20 +08:00
karmada-bot 920baceafd
Merge pull request #4838 from a7i/work-suspend
feat: cluster-level resource propagation pause and resume capabilities
2024-08-06 09:38:27 +08:00
karmada-bot 8b4e006f03
Merge pull request #5244 from mohamedawnallah/testKarmadactlTaintCommand
test/e2e/karmadactl_test.go: test taint command
2024-08-05 17:23:26 +08:00
Mohamed Awnallah 37af811de6 test/e2e/karmadactl_test.go: test taint command
In this commit, we add e2e tests for the `karmadactl taint`
command to ensure it handles various scenarios correctly.
The tests include:

- Applying taints with different effects (NoSchedule, NoExecute) to a cluster.
- Reapplying taints without the `--overwrite` flag to ensure an error is returned.
- Overwriting existing taints using the `--overwrite` flag.
- Removing taints from a cluster.
- Running the taint command in `--dry-run` mode to ensure no actual changes are made.
- Verifying that taints were not applied during `--dry-run` mode.
- Ensuring the command returns an error for an invalid flag.
- Ensuring the command returns an error when attempting to taint a non-existent cluster.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
Co-authored-by: zhzhuang-zju <m17799853869@163.com>
2024-08-05 03:48:17 +00:00
zhzhuang-zju 978ea81937 cleanup: Remove redundant e2e testing steps
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-08-03 11:17:11 +08:00
whitewindmills 575931523c Fix incorrect error code judgment in e2e tests
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-07-30 17:05:10 +08:00
Amir Alavi 58dbd6b56e
feat: cluster-level resource propagation pause and resume capabilities
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-07-29 19:03:52 -04:00
karmada-bot 8a86cd02af
Merge pull request #5263 from chaosi-zju/e2e-2
print all binding and related objects to log file after each e2e failure case
2024-07-29 17:12:20 +08:00
chaosi-zju 081681b27d print all binding and related objects to log file after each failure e2e case
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-07-29 15:34:59 +08:00
zhzhuang-zju 903648a9de fix unexpected interference between different e2e use cases
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-07-27 17:08:11 +08:00
karmada-bot 195c371fea
Merge pull request #5261 from a7i/e2e-clusterresourcebinding-annotation
e2e: clusterresourcebinding permanent-id label
2024-07-27 15:43:18 +08:00
chaosi-zju 459864d3b1 fix unexpected interference between different e2e use cases
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-07-27 09:30:47 +08:00
Amir Alavi b1ce2f1cdc
e2e: clusterresourcebinding permanent-id label
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-07-26 19:05:32 -04:00
karmada-bot c5d182b908
Merge pull request #5239 from mohamedawnallah/unifyAccessToClusterMembersinE2E
test: unify access to cluster members utilizing `framework.ClusterMembers()` as input parameter
2024-07-24 10:20:16 +08:00
karmada-bot 39e8587649
Merge pull request #4575 from zhzhuang-zju/cpp
complete the e2e test case scenarios for clusterpp
2024-07-24 10:08:15 +08:00
Mohamed Awnallah f71bc13963 test: unify access to cluster members
In this commit, we unify access to cluster members
in `test/helper/NewFederatedResourceQuota()` by passing
`clusterNames` as an input parameter. This commit is also
a follow-up of this PR #5226.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-07-23 17:46:54 +00:00
zhzhuang-zju d43a119c0a complete the e2e test case scenarios for clusterpp
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-07-23 16:11:09 +08:00
Mohamed Awnallah cb43384155 test/e2e/karmadactl_test.go: test options command
In this commit, we test `karmadactl options` on listing
all available global options successfully and returning
an error for invalid flag in options.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-07-19 09:02:56 +00:00
karmada-bot 5e3e5ad513
Merge pull request #5210 from mohamedawnallah/testKarmadactlTokenCommand
test/e2e/karmadactl_test.go: test token command
2024-07-19 16:33:11 +08:00
Mohamed Awnallah 9c65d4e142 test/e2e/karmadactl_test.go: test token command
In this commit, we add tests for the `karmadactl token`
command. These include creating, deleting, listing, and
validating bootstrap tokens. We test scenarios such as
successful token creation and deletion, error handling
for invalid flag, and ensuring the correct format for
tokens. The utility functions `extractTokenIDAndSecret`
and `validateTokenFormat` are used to validate token
format and extract token components.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
Co-authored-by: zhzhuang-zju <m17799853869@163.com>
2024-07-19 07:41:15 +00:00