Skip to content

Commit

Permalink
executor and alias list fix
Browse files Browse the repository at this point in the history
  • Loading branch information
huseyinbabal committed Aug 28, 2023
1 parent 7e860ad commit d72ab5d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/e2e/bots_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1301,14 +1301,14 @@ func runCloudBotTest(t *testing.T,
}
t.Cleanup(func() {
for !botkubeDeploymentUninstalled {
t.Log("Waiting for Helm chart uninstallation, in order to proceed with deleting the first deployment...")
t.Log("Waiting for Helm chart uninstallation, in order to proceed with deleting Botkube Cloud instance...")
time.Sleep(1 * time.Second)
}

t.Log("Helm chart uninstalled. Waiting a bit...")
time.Sleep(30 * time.Second)

t.Log("Deleting first deployment...")
t.Log("Deleting Botkube Cloud instance...")
gqlCli.MustDeleteDeployment(t, graphql.ID(deployment.ID))
})

Expand Down Expand Up @@ -2124,8 +2124,8 @@ func runCloudBotTest(t *testing.T,
command := "list executors"
expectedBody := codeBlock(heredoc.Doc(`
EXECUTOR ENABLED ALIASES
botkube/echo true
botkube/helm true
botkube/echo true e
botkube/helm true
botkube/kubectl true k, kc`))

expectedMessage := fmt.Sprintf("%s\n%s", cmdHeader(command), expectedBody)
Expand All @@ -2138,6 +2138,7 @@ func runCloudBotTest(t *testing.T,
command := "list aliases"
expectedBody := codeBlock(heredoc.Doc(`
ALIAS COMMAND DISPLAY NAME
e echo
k kubectl Kubectl alias
kc kubectl Kubectl alias
kgda kubectl get deployments -A Get Deployments
Expand Down

0 comments on commit d72ab5d

Please sign in to comment.