Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk upgrade test case #1230

Open
Tracked by #683
devdattakulkarni opened this issue Apr 22, 2024 · 2 comments
Open
Tracked by #683

Bulk upgrade test case #1230

devdattakulkarni opened this issue Apr 22, 2024 · 2 comments

Comments

@devdattakulkarni
Copy link
Contributor

Application upgrade feature works as follows:
When the Helm chart in a ResourceComposition is updated, all the running application instances get updated.
We should add a test case for this scenario

@devdattakulkarni
Copy link
Contributor Author

@devdattakulkarni devdattakulkarni mentioned this issue May 14, 2024
16 tasks
@devdattakulkarni
Copy link
Contributor Author

High-level steps:

  1. Follow the structure of https://github.com/cloud-ark/kubeplus/blob/master/tests/tests.py#L80 for creating the test.
    Use relative paths to refer to the ResourceComposition file and tenant yaml.
  2. Name the test "test_application_upgrage"
  3. You can assume that kubectl plugins are installed and PATH is updated appropriately.
  4. Add a check to see if the CRD is installed, before creating the tenant instance. Currently, this check is missing in the example steps.
  5. In the test, we won't be able to perform manual verification. For port-forward, we will have to use Python Kubernetes client. See
    https://github.com/kubernetes-client/python/blob/release-9.0/kubernetes/docs/CoreV1Api.md#connect_get_namespaced_pod_portforward
  6. For curl, use Python requests module to make REST API calls.

In order to use Kubernetes Python client, add requirements.txt to the tests folder. Update the README to document the step of running pip install before executing the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant