Skip to content

Commit

Permalink
Update migration test to cover multiple executors in a configuration …
Browse files Browse the repository at this point in the history
…group
  • Loading branch information
pkosiec committed Jan 18, 2024
1 parent a2f7ce8 commit a62cb82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cli/docs/botkube_migrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ botkube migrate [OPTIONS] [flags]
--cloud-env-endpoint string Endpoint environment variable name specified under Deployment for cloud installation. (default "CONFIG_PROVIDER_ENDPOINT")
--cloud-env-id string Identifier environment variable name specified under Deployment for cloud installation. (default "CONFIG_PROVIDER_IDENTIFIER")
-h, --help help for migrate
--image-tag string Botkube image tag, possible values latest, v1.2.0, ...
--image-tag string Botkube image tag, e.g. "latest" or "v1.7.0"
--instance-name string Botkube Cloud Instance name that will be created
--kubeconfig string Paths to a kubeconfig. Only required if out-of-cluster.
-l, --label string Label used for identifying the Botkube pod (default "app=botkube")
Expand Down
9 changes: 9 additions & 0 deletions test/e2e/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const (
--set communications.default-group.discord.token=%s \
--set settings.clusterName=%s \
--set executors.k8s-default-tools.botkube/kubectl.enabled=true \
--set executors.k8s-default-tools.botkube/helm.enabled=true \
--set analytics.disable=true \
--set image.tag=v9.99.9-dev \
--set plugins.repositories.botkube.url=https://storage.googleapis.com/botkube-plugins-latest/plugins-index.yaml \
Expand Down Expand Up @@ -387,6 +388,14 @@ func assertPlugins(t *testing.T, actual []*gqlModel.Plugin) {
Configuration: "{\"defaultNamespace\":\"default\"}",
Rbac: defaultRBAC,
},
{
Name: "botkube/helm",
DisplayName: "botkube/helm",
Type: "EXECUTOR",
ConfigurationName: "k8s-default-tools",
Configuration: "{\"defaultNamespace\":\"default\",\"helmCacheDir\":\"/tmp/helm/.cache\",\"helmConfigDir\":\"/tmp/helm/\",\"helmDriver\":\"secret\"}",
Rbac: defaultRBAC,
},
}

assert.NotEmpty(t, actual)
Expand Down

0 comments on commit a62cb82

Please sign in to comment.