Skip to content

Commit

Permalink
Skip collections indexes tests against 7.2.0
Browse files Browse the repository at this point in the history
Motivation
----------
A bug in server 7.2.0 means that indexes do not always
get updated with new collections.

Changes
-------
Skip collections indexes tests against 7.2.0.

Change-Id: I013e473868d717e8b55bbccfd242bb41ce9cf9d5
Reviewed-on: https://review.couchbase.org/c/gocb/+/197676
Reviewed-by: Emilien Bevierre <[email protected]>
Tested-by: Charles Dixon <[email protected]>
  • Loading branch information
chvck committed Sep 25, 2023
1 parent 6fa3c2a commit 136c281
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cluster_queryindexes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func (suite *IntegrationTestSuite) TestQueryIndexesCrudCollections() {
suite.skipIfUnsupported(QueryIndexFeature)
suite.skipIfUnsupported(CollectionsFeature)
suite.skipIfUnsupported(ClusterLevelQueryFeature)
suite.skipIfUnsupported(QueryMB57673Feature)

suite.dropAllIndexes()
bucketName := globalBucket.Name()
Expand Down Expand Up @@ -313,6 +314,7 @@ func (suite *IntegrationTestSuite) TestQueryIndexesBuildDeferredSameNamespaceNam
suite.skipIfUnsupported(QueryIndexFeature)
suite.skipIfUnsupported(CollectionsFeature)
suite.skipIfUnsupported(ClusterLevelQueryFeature)
suite.skipIfUnsupported(QueryMB57673Feature)

suite.dropAllIndexes()
bucketName := globalBucket.Name()
Expand Down Expand Up @@ -381,6 +383,7 @@ func (suite *IntegrationTestSuite) TestQueryIndexesBuildDeferredSameNamespaceNam
suite.skipIfUnsupported(QueryIndexFeature)
suite.skipIfUnsupported(CollectionsFeature)
suite.skipIfUnsupported(ClusterLevelQueryFeature)
suite.skipIfUnsupported(QueryMB57673Feature)

suite.dropAllIndexes()
bucketName := globalBucket.Name()
Expand Down
2 changes: 2 additions & 0 deletions collection_queryindexes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
func (suite *IntegrationTestSuite) TestCollectionQueryIndexManagerCrud() {
suite.skipIfUnsupported(QueryIndexFeature)
suite.skipIfUnsupported(CollectionsFeature)
suite.skipIfUnsupported(QueryMB57673Feature)

bucketName := globalBucket.Name()

Expand Down Expand Up @@ -144,6 +145,7 @@ func (suite *IntegrationTestSuite) TestCollectionQueryIndexManagerCrud() {
func (suite *IntegrationTestSuite) TestCollectionQueryIndexManagerCrudDefaultScopeCollection() {
suite.skipIfUnsupported(QueryIndexFeature)
suite.skipIfUnsupported(CollectionsFeature)
suite.skipIfUnsupported(QueryMB57673Feature)

suite.dropAllIndexesAtCollectionLevel()

Expand Down
3 changes: 3 additions & 0 deletions testcluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ var (
TransactionsSingleQueryExistsErrorFeature = FeatureCode("transactionssinglequeryexists")
EventingFunctionManagerMB52649Feature = FeatureCode("eventingmanagementmb52649")
EventingFunctionManagerMB52572Feature = FeatureCode("eventingmanagementmb52572")
QueryMB57673Feature = FeatureCode("mb57673")
)

type TestFeatureFlag struct {
Expand Down Expand Up @@ -319,6 +320,8 @@ func (c *testCluster) SupportsFeature(feature FeatureCode) bool {
supported = !c.Version.Equal(srvVer711)
case EventingFunctionManagerMB52572Feature:
supported = !c.Version.Equal(srvVer711)
case QueryMB57673Feature:
supported = !c.Version.Equal(srvVer720)
}
}

Expand Down

0 comments on commit 136c281

Please sign in to comment.