Skip to content

Commit

Permalink
Fix tests of version of rpaas
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Apr 7, 2020
1 parent dea973a commit d53a6c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func Test_RpaasOperator(t *testing.T) {
nginx, err := getReadyNginx("my-instance", namespaceName, 2, 1)
require.NoError(t, err)
assert.Equal(t, int32(2), *nginx.Spec.Replicas)
assert.Equal(t, "tsuru/nginx-tsuru:1.15.0", nginx.Spec.Image)
assert.Equal(t, "tsuru/nginx-tsuru:1.16.1", nginx.Spec.Image)
assert.Equal(t, "/_nginx_healthcheck", nginx.Spec.HealthcheckPath)
assert.Len(t, nginx.Status.Pods, 2)
for _, podStatus := range nginx.Status.Pods {
Expand Down Expand Up @@ -176,7 +176,7 @@ func Test_RpaasApi(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, nginx)
assert.Equal(t, int32(1), *nginx.Spec.Replicas)
assert.Equal(t, "tsuru/nginx-tsuru:1.15.0", nginx.Spec.Image)
assert.Equal(t, "tsuru/nginx-tsuru:1.16.1", nginx.Spec.Image)
assert.Equal(t, "/_nginx_healthcheck", nginx.Spec.HealthcheckPath)

nginxService := &corev1.Service{
Expand Down

0 comments on commit d53a6c1

Please sign in to comment.