karmada/test
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
..
e2e test/e2e/karmadactl_test.go: test apply command 2024-08-20 11:13:00 +00:00
helper fix pdb collection testing occasional failure 2024-08-15 21:28:00 +08:00
OWNERS nominate e2e code owners 2023-12-25 16:36:12 +08:00