-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Testcase Precondition:
- Kahu project installed in given name-space (test-kahu)
- All below pods should be up and running:
a. backup service
b. Meta service with nfs provider
c. nfs-server - Metadata location is created already
- Namespace test-ns is created and contains
some of the kubernetes resources
5.Namespace restore-ns is created
Testcase Steps:
- Check if Kahu project is installed in the given namespace (test-kahu)
- Check if the following pods are up and running: a. backup service b. Meta service with NFS provider c. NFS server
- Check if the metadata location is already created
- Create a few Kubernetes resources in the test-ns namespace for testing purposes
- Create a backup using the following command: kubectl backup create --include-resources=all --exclude-resources=pod,deployment --namespace=test-ns
- Verify that the backup was created successfully by checking the metadata location
- Delete the test-ns namespace using the following command: kubectl delete ns test-ns
- Verify that the test-ns namespace was deleted successfully by running the following command: kubectl get ns
- Create a new namespace called restore-ns using the following command: kubectl create ns restore-ns
- Restore the backup into the restore-ns namespace using the following command: kubectl backup restore --namespace=restore-ns
- Verify that the resources were restored successfully into the restore-ns namespace by running the following command: kubectl get all -n restore-ns
- Compare the restored resources with the original resources to ensure that the restore process was successful
Test Case Result:
The backup and restore process should be successful and all resources except pod and deployment should be restored to the restore-ns namespace. The restored resources should be the same as the original resources before the backup was taken.
Metadata
Metadata
Assignees
Labels
No labels