Description
Updating server image constants to minimum supported versions in testware
Need to update the following:
https://github.com/couchbase/couchbase-operator/blob/master/test/e2e/constants/constants.go#L12
https://github.com/couchbase/couchbase-operator/blob/master/test/e2e/constants/constants.go#L17
Impacted test:
TestDenyCommunityEdition
Sync gateway RBAC test using a function to create cluster which does not enable RBAC
https://github.com/couchbase/couchbase-operator/blob/master/test/e2e/sync-gateway.go#L224 - needs to be changed to use MustNewClusterBasic which enables RBAC
Impacted test:
TestSyncgatewayRBAC
Invalid base image test - supplied image string version needs to be updated to avoid validation failure
https://github.com/couchbase/couchbase-operator/blob/master/test/e2e/cluster_test.go#L157
Impacted test:
TestInvalidBaseImage
Fix panic in TestUpdateBackupStatus test case:
— FAIL: TestOperator (478.24s)
=== RUN TestOperator/TestUpdateBackupStatus
goroutine 235 [running]:
runtime/debug.Stack(0x258397a, 0x10c259f, 0xc000318130)
/usr/local/go/src/runtime/debug/stack.go:24 +0xab
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x34
github.com/couchbase/couchbase-operator/test/e2e/framework.RecoverDecorator.func1.1(0xc0004e6f00)
/Users/arunkumarsenthilnathan/go/src/github.com/couchbase/couchbase-operator/test/e2e/framework/test_util.go:342 +0x6a
panic(0x2a56c00, 0xc00079a940)
/usr/local/go/src/runtime/panic.go:679 +0x1b2
reflect.Value.Type(0x0, 0x0, 0x0, 0x2c42b9d, 0x8)
/usr/local/go/src/reflect/value.go:1877 +0x277
github.com/couchbase/couchbase-operator/test/e2e/e2eutil.WaitForStatusUpdate.func1(0xc0009ebb10, 0xc00010cd70, 0xc0009eba80)
/Users/arunkumarsenthilnathan/go/src/github.com/couchbase/couchbase-operator/test/e2e/e2eutil/wait_util.go:148 +0x2f1
github.com/couchbase/couchbase-operator/pkg/util/retryutil.Retry(0x2f954c0, 0xc000318120, 0x2540be400, 0xc0009ebc88, 0x0, 0x0)
/Users/arunkumarsenthilnathan/go/src/github.com/couchbase/couchbase-operator/pkg/util/retryutil/retryutil.go:20 +0xab
github.com/couchbase/couchbase-operator/test/e2e/e2eutil.WaitForStatusUpdate(0xc000400700, 0xc0004acee0, 0x9, 0x2c42b9d, 0x8, 0xdf8475800, 0x0, 0x0, 0x0, 0x0, ...)
/Users/arunkumarsenthilnathan/go/src/github.com/couchbase/couchbase-operator/test/e2e/e2eutil/wait_util.go:141 +0x1b9
github.com/couchbase/couchbase-operator/test/e2e/e2eutil.MustWaitStatusUpdate(0xc0004e6f00, 0xc000400700, 0xc0004acee0, 0x9, 0x2c42b9d, 0x8, 0xdf8475800, 0x29c4180, 0xc0007eaeb0, 0x81)
/Users/arunkumarsenthilnathan/go/src/github.com/couchbase/couchbase-operator/test/e2e/e2eutil/wait_util.go:175 +0x81
github.com/couchbase/couchbase-operator/test/e2e.TestUpdateBackupStatus(0xc0004e6f00)
/Users/arunkumarsenthilnathan/go/src/github.com/couchbase/couchbase-operator/test/e2e/backup_test.go:505 +0x5bb
github.com/couchbase/couchbase-operator/test/e2e/framework.RecoverDecorator.func1(0xc0004e6f00)
/Users/arunkumarsenthilnathan/go/src/github.com/couchbase/couchbase-operator/test/e2e/framework/test_util.go:347 +0x85
testing.tRunner(0xc0004e6f00, 0xc0007eea00)
/usr/local/go/src/testing/testing.go:909 +0x19a
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:960 +0x652
— FAIL: TestOperator/TestUpdateBackupStatus (231.72s)
crd_util.go:26: creating couchbase cluster: test-couchbase-czkx4
test_util.go:343: Recovered: reflect: call of reflect.Value.Type on zero Value
test_util.go:344: test failed due to panic
test_util.go:35: Suite Test Results:
test_util.go:67: 1: TestUpdateBackupStatus...FAIL
test_util.go:93: Failures:
test_util.go:95: 1: TestUpdateBackupStatus