From 136c281cdfc4878e25816e36718272b7e3ce1637 Mon Sep 17 00:00:00 2001 From: Charles Dixon Date: Mon, 25 Sep 2023 10:54:53 +0100 Subject: [PATCH] Skip collections indexes tests against 7.2.0 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 Tested-by: Charles Dixon --- cluster_queryindexes_test.go | 3 +++ collection_queryindexes_test.go | 2 ++ testcluster_test.go | 3 +++ 3 files changed, 8 insertions(+) diff --git a/cluster_queryindexes_test.go b/cluster_queryindexes_test.go index 9fabb9f..a8eaf2c 100644 --- a/cluster_queryindexes_test.go +++ b/cluster_queryindexes_test.go @@ -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() @@ -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() @@ -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() diff --git a/collection_queryindexes_test.go b/collection_queryindexes_test.go index 0b0b47d..bf11abf 100644 --- a/collection_queryindexes_test.go +++ b/collection_queryindexes_test.go @@ -8,6 +8,7 @@ import ( func (suite *IntegrationTestSuite) TestCollectionQueryIndexManagerCrud() { suite.skipIfUnsupported(QueryIndexFeature) suite.skipIfUnsupported(CollectionsFeature) + suite.skipIfUnsupported(QueryMB57673Feature) bucketName := globalBucket.Name() @@ -144,6 +145,7 @@ func (suite *IntegrationTestSuite) TestCollectionQueryIndexManagerCrud() { func (suite *IntegrationTestSuite) TestCollectionQueryIndexManagerCrudDefaultScopeCollection() { suite.skipIfUnsupported(QueryIndexFeature) suite.skipIfUnsupported(CollectionsFeature) + suite.skipIfUnsupported(QueryMB57673Feature) suite.dropAllIndexesAtCollectionLevel() diff --git a/testcluster_test.go b/testcluster_test.go index ebc2e01..4b9018a 100644 --- a/testcluster_test.go +++ b/testcluster_test.go @@ -87,6 +87,7 @@ var ( TransactionsSingleQueryExistsErrorFeature = FeatureCode("transactionssinglequeryexists") EventingFunctionManagerMB52649Feature = FeatureCode("eventingmanagementmb52649") EventingFunctionManagerMB52572Feature = FeatureCode("eventingmanagementmb52572") + QueryMB57673Feature = FeatureCode("mb57673") ) type TestFeatureFlag struct { @@ -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) } }