You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As our library grows, we are going to need to have automated tests for our provisioners. This task is to prove that it can be done.
Requirements:
Brush up on how jest unit tests work
Manually set up a k8s cluster and set KUBECONFIG to point to the config file. Alternatively, the jest test can assume that a test-kubeconfig.yaml is at a predefined location.
The test itself will:
The test will call provisionerManager.perform(appResource, 'create', answers) so the test can run silently
Use kubeclient to wait for certain components (pods, services etc) to be created
Time out after a configurable amount of time (jest has built in timeouts)
Call provisionerManager.perform(appResource, 'remove', answers) to uninstall the app
Check that resources are removed
The text was updated successfully, but these errors were encountered:
Background:
As our library grows, we are going to need to have automated tests for our provisioners. This task is to prove that it can be done.
Requirements:
KUBECONFIG
to point to the config file. Alternatively, the jest test can assume that atest-kubeconfig.yaml
is at a predefined location.The test itself will:
provisionerManager.perform(appResource, 'create', answers)
so the test can run silentlyprovisionerManager.perform(appResource, 'remove', answers)
to uninstall the appThe text was updated successfully, but these errors were encountered: