Skip to content

Commit

Permalink
remove config creation
Browse files Browse the repository at this point in the history
Signed-off-by: anandrkskd <[email protected]>
  • Loading branch information
anandrkskd committed Dec 8, 2022
1 parent 30fd769 commit 2a72a1e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions tests/helper/helper_kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ func (kubectl KubectlRunner) createAndSetRandNamespaceProject(projectName string
Cmd("kubectl", "config", "set-context", "--current", "--namespace", projectName).ShouldPass()
session := Cmd("kubectl", "get", "namespaces").ShouldPass().Out()
Expect(session).To(ContainSubstring(projectName))
kubectl.addConfigMapForCleanup(projectName) // add configmap for cleanup
return projectName
}

Expand Down Expand Up @@ -351,11 +350,6 @@ func (kubectl KubectlRunner) GetVolumeNamesFromDeployment(componentName, appName
return GetVolumeNamesFromDeployment(kubectl.path, componentName, appName, projectName)
}

// add config map to the project for cleanup
func (kubectl KubectlRunner) addConfigMapForCleanup(projectName string) {
Cmd(kubectl.path, "create", "configmap", "config-map-for-cleanup", "--from-literal", "type=testing", "--from-literal", "team=odo", "-n", projectName).ShouldPass()
}

// ScalePodToZero scales the pod of the deployment to zero.
// It waits for the pod to get deleted from the cluster before returning
func (kubectl KubectlRunner) ScalePodToZero(componentName, appName, projectName string) {
Expand Down
6 changes: 0 additions & 6 deletions tests/helper/helper_oc.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ func (oc OcRunner) createAndSetRandNamespaceProject(projectName string) string {
fmt.Fprintf(GinkgoWriter, "Creating a new project: %s\n", projectName)
session := Cmd(oc.path, "new-project", projectName).ShouldPass().Out()
Expect(session).To(ContainSubstring(projectName))
oc.addConfigMapForCleanup(projectName)
return projectName
}

Expand Down Expand Up @@ -538,11 +537,6 @@ func (oc OcRunner) doAsDeveloper(token, clusterType string) {
oc.LoginUsingToken(token)
}

// add config map to the project for cleanup
func (oc OcRunner) addConfigMapForCleanup(projectName string) {
Cmd(oc.path, "create", "configmap", "config-map-for-cleanup", "--from-literal", "type=testing", "--from-literal", "team=odo", "-n", projectName).ShouldPass()
}

func (oc OcRunner) Logout() {
Cmd(oc.path, "logout")
}
Expand Down

0 comments on commit 2a72a1e

Please sign in to comment.