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

Added testcase Ids as labels for each testcase in E2E test #149

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var _ = BeforeSuite(func() {
if err != nil {
log.Errorf("not able to create namespace %v bez %v\n", kahu.RestoreNameSpace, err)
}
log.Info("********Created namespaces************\n")
log.Info("Created backup and restore namespaces \n")
})

var _ = AfterSuite(func() {
Expand All @@ -62,5 +62,5 @@ var _ = AfterSuite(func() {
if err != nil {
log.Errorf("not able to delete namespace %v bez %v\n", restoreNs, err)
}
log.Info("********Deleted namespaces************\n")
log.Info("Deleted backup and restore namespaces\n")
})
2 changes: 1 addition & 1 deletion test/e2e/k8sresources/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
)

//testcase for E2E deployment backup and restore
var _ = Describe("ConfigMapBackup", Label("configmap"), func() {
var _ = Describe("ConfigMapBackup", Label("configmap", "testcase01"), func() {
Context("Create backup of configmap and restore", func() {
It("configmap", func() {
kubeClient, kahuClient := kahu.Clients()
Expand Down
10 changes: 5 additions & 5 deletions test/e2e/k8sresources/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
//testcase for E2E deployment backup and restore
var _ = Describe("DaemonsetBackup", Label("Daemonset"), func() {
Context("Create backup of Daemonset and restore", func() {
It("Daemonset", Label("Basic"), func() {
It("Daemonset", Label("Basic", "testcase02"), func() {

kubeClient, kahuClient := kahu.Clients()
//Create Daemonset to test
Expand Down Expand Up @@ -95,7 +95,7 @@ var _ = Describe("DaemonsetBackup", Label("Daemonset"), func() {
log.Infof("backup of %v is deleted\n", name)
})

It("daemonfulset with configmap envFrom", Label("configmap", "envfrom"), func() {
It("daemonfulset with configmap envFrom", Label("configmap", "envfrom", "testcase03"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create daemonfulset to test
ns := kahu.BackupNameSpace
Expand Down Expand Up @@ -169,7 +169,7 @@ var _ = Describe("DaemonsetBackup", Label("Daemonset"), func() {
log.Infof("backup of %v is deleted\n", name)
})

It("daemonset with secret envFrom", Label("secret", "envfrom"), func() {
It("daemonset with secret envFrom", Label("secret", "envfrom", "testcase04"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create daemonset to test
ns := kahu.BackupNameSpace
Expand Down Expand Up @@ -243,7 +243,7 @@ var _ = Describe("DaemonsetBackup", Label("Daemonset"), func() {
log.Infof("backup of %v is deleted\n", name)
})

It("daemonset with configmap envVal", Label("configmap", "environment-variable"), func() {
It("daemonset with configmap envVal", Label("configmap", "environment-variable", "testcase05"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create daemonset to test
ns := kahu.BackupNameSpace
Expand Down Expand Up @@ -317,7 +317,7 @@ var _ = Describe("DaemonsetBackup", Label("Daemonset"), func() {
log.Infof("backup of %v is deleted\n", name)
})

It("daemonset with secret envVal", Label("secret", "environment-variable"), func() {
It("daemonset with secret envVal", Label("secret", "environment-variable", "testcase06"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create daemonset to test
ns := kahu.BackupNameSpace
Expand Down
10 changes: 5 additions & 5 deletions test/e2e/k8sresources/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
//testcase for E2E deployment backup and restore
var _ = Describe("DeploymentBackup", Label("deployment"), func() {
Context("Create backup of deployment and restore", func() {
It("deployment with replicas and pods", Label("replicas"), func() {
It("deployment with replicas and pods", Label("replicas", "testcase27"), func() {

kubeClient, kahuClient := kahu.Clients()
//Create deployment to test
Expand Down Expand Up @@ -89,7 +89,7 @@ var _ = Describe("DeploymentBackup", Label("deployment"), func() {

})

It("deployment with configmap EnvFrom replicas and pods", Label("configmap", "envfrom"), func() {
It("deployment with configmap EnvFrom replicas and pods", Label("configmap", "envfrom", "testcase07"), func() {

kubeClient, kahuClient := kahu.Clients()
//Create deployment to test
Expand Down Expand Up @@ -164,7 +164,7 @@ var _ = Describe("DeploymentBackup", Label("deployment"), func() {

})

It("deployment with secret EnvFrom replicas and pods", Label("secret", "envfrom"), func() {
It("deployment with secret EnvFrom replicas and pods", Label("secret", "envfrom", "testcase08"), func() {

kubeClient, kahuClient := kahu.Clients()
//Create deployment to test
Expand Down Expand Up @@ -239,7 +239,7 @@ var _ = Describe("DeploymentBackup", Label("deployment"), func() {

})

It("deployment with configmap EnvVal replicas and pods", Label("configmap", "environment-variable"), func() {
It("deployment with configmap EnvVal replicas and pods", Label("configmap", "environment-variable", "testcase09"), func() {

kubeClient, kahuClient := kahu.Clients()
//Create deployment to test
Expand Down Expand Up @@ -314,7 +314,7 @@ var _ = Describe("DeploymentBackup", Label("deployment"), func() {

})

It("deployment with secret EnvVal replicas and pods", Label("secret", "environment-variable"), func() {
It("deployment with secret EnvVal replicas and pods", Label("secret", "environment-variable", "testcase10"), func() {

kubeClient, kahuClient := kahu.Clients()
//Create deployment to test
Expand Down
12 changes: 6 additions & 6 deletions test/e2e/k8sresources/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
var _ = Describe("PodBackup", Label("pod"), func() {
Context("Create backup of pod and restore", func() {

It("pod associated with env value configmap ", Label("configmap", "environment-variable"), func() {
It("pod associated with env value configmap ", Label("configmap", "environment-variable", "testcase11"), func() {
kubeClient, kahuClient := kahu.Clients()

//Create pod to test
Expand Down Expand Up @@ -104,7 +104,7 @@ var _ = Describe("PodBackup", Label("pod"), func() {
log.Infof("backup of pod %v is deleted\n", name)
})

It("pod associated with env value secret ", Label("secret", "environment-variable"), func() {
It("pod associated with env value secret ", Label("secret", "environment-variable", "testcase12"), func() {
kubeClient, kahuClient := kahu.Clients()

//Create pod to test
Expand Down Expand Up @@ -176,7 +176,7 @@ var _ = Describe("PodBackup", Label("pod"), func() {
log.Infof("backup of pod %v is deleted\n", name)
})

It("pod associated with envFrom secret", Label("secret", "envfrom"), func() {
It("pod associated with envFrom secret", Label("secret", "envfrom", "testcase13"), func() {
kubeClient, kahuClient := kahu.Clients()

//Create pod to test
Expand Down Expand Up @@ -262,7 +262,7 @@ var _ = Describe("PodBackup", Label("pod"), func() {
Expect(err).To(BeNil())
})

It("pod associated with envFrom configmap", Label("configmap", "envfrom"), func() {
It("pod associated with envFrom configmap", Label("configmap", "envfrom", "testcase14"), func() {
kubeClient, kahuClient := kahu.Clients()

//Create pod to test
Expand Down Expand Up @@ -349,7 +349,7 @@ var _ = Describe("PodBackup", Label("pod"), func() {
Expect(err).To(BeNil())
})

It("pod", func() {
It("pod", Label("pod", "testcase15"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create pod to test
ns := kahu.BackupNameSpace
Expand Down Expand Up @@ -404,7 +404,7 @@ var _ = Describe("PodBackup", Label("pod"), func() {
log.Infof("backup of pod %v is deleted\n", name)
})

It("pod with restore resourcePrefix", Label("resourcePrefix"), func() {
It("pod with restore resourcePrefix", Label("resourcePrefix", "testcase16"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create pod to test
ns := kahu.BackupNameSpace
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/k8sresources/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
//testcase for E2E deployment backup and restore
var _ = Describe("rbacBackup", Label("rbac"), func() {
Context("Create backup of rbac and restore", func() {
It("rbac", func() {
It("rbac", Label("testcase17"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create rbac to test
ns := kahu.BackupNameSpace
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/k8sresources/roleBinding.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
//testcase for E2E deployment backup and restore
var _ = Describe("roleBackup", Label("role"), func() {
Context("Create backup of role and restore", func() {
It("role", func() {
It("role", Label("testcase18"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create role to test
ns := kahu.BackupNameSpace
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/k8sresources/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
//testcase for E2E secret backup and restore
var _ = Describe("SecretBackup", Label("secret"), func() {
Context("Create backup of secret and restore", func() {
It("secret with replicas and pods", func() {
It("secret with replicas and pods", Label("testcase19"), func() {

kubeClient, kahuClient := kahu.Clients()
//Create secret to test
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/k8sresources/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
//testcase for E2E service backup and restore
var _ = Describe("ServiceBackup", Label("service"), func() {
Context("Create backup of service and restore", func() {
It("service", func() {
It("service", Label("testcase20"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create service to test
ns := kahu.BackupNameSpace
Expand Down
10 changes: 5 additions & 5 deletions test/e2e/k8sresources/statefulsets.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
//testcase for E2E deployment backup and restore
var _ = Describe("statefulsetBackup", Label("statefulset"), func() {
Context("Create backup of statefulset and restore", func() {
It("statefulset with replicas", Label("replicas"), func() {
It("statefulset with replicas", Label("replicas", "testcase21"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create statefulset to test
ns := kahu.BackupNameSpace
Expand Down Expand Up @@ -89,7 +89,7 @@ var _ = Describe("statefulsetBackup", Label("statefulset"), func() {
log.Infof("backup of %v is deleted\n", name)
})

It("statefulset with configmap envFrom", Label("configmap", "envfrom"), func() {
It("statefulset with configmap envFrom", Label("configmap", "envfrom", "testcase22"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create statefulset to test
ns := kahu.BackupNameSpace
Expand Down Expand Up @@ -164,7 +164,7 @@ var _ = Describe("statefulsetBackup", Label("statefulset"), func() {
log.Infof("backup of %v is deleted\n", name)
})

It("statefulset with secret envFrom", Label("secret", "envfrom"), func() {
It("statefulset with secret envFrom", Label("secret", "envfrom", "testcase23"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create statefulset to test
ns := kahu.BackupNameSpace
Expand Down Expand Up @@ -239,7 +239,7 @@ var _ = Describe("statefulsetBackup", Label("statefulset"), func() {
log.Infof("backup of %v is deleted\n", name)
})

It("statefulset with configmap envVal", Label("configmap", "environment-variable"), func() {
It("statefulset with configmap envVal", Label("configmap", "environment-variable", "testcase24"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create statefulset to test
ns := kahu.BackupNameSpace
Expand Down Expand Up @@ -314,7 +314,7 @@ var _ = Describe("statefulsetBackup", Label("statefulset"), func() {
log.Infof("backup of %v is deleted\n", name)
})

It("statefulset with secret envVal", Label("secret", "environment-variable"), func() {
It("statefulset with secret envVal", Label("secret", "environment-variable", "testcase25"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create statefulset to test
ns := kahu.BackupNameSpace
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/k8sresources/storageclass.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
//testcase for E2E deployment backup and restore
var _ = Describe("storageClassBackup", Label("storageClass"), func() {
Context("Create backup of storageClass and restore", func() {
It("storageClass", func() {
It("storageClass", Label("testcase26"), func() {
kubeClient, kahuClient := kahu.Clients()
//Create storageClass to test
UUIDgen, err := uuid.NewRandom()
Expand Down