Skip to content

Commit

Permalink
Integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Sep 20, 2021
1 parent a0c617e commit 76b63e7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/integration/operatorhub/cmd_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,20 @@ var _ = Describe("odo service command tests for OperatorHub", func() {
helper.MatchAllInOutput(stdOut, []string{"apiVersion", "kind"})
})

It("should fail creating a service with wrong parameters", func() {
helper.Cmd("odo", "service", "create", fmt.Sprintf("%s/Redis", redisOperator), "-p", "a=b").ShouldFail()
})

It("should create a service with parameters of different types", func() {
helper.Cmd("odo", "service", "create", fmt.Sprintf("%s/Redis", redisOperator),
"-p", "kubernetesConfig.image=quay.io/opstree/redis:v6.2.5",
"-p", "kubernetesConfig.imagePullPolicy=IfNotPresent",
"-p", "kubernetesConfig.serviceType=ClusterIP",
"-p", "redisExporter.enabled=false",
"-p", "redisExporter.image=quay.io/opstree/redis-exporter:1.0",
"-p", "securityContext.runAsUser=1000").ShouldPass()
})

When("odo push is executed", func() {
BeforeEach(func() {
helper.Cmd("odo", "push").ShouldPass()
Expand Down

0 comments on commit 76b63e7

Please sign in to comment.