From adcc19eeb6357764ab96607de40d2f9a1c87e4f0 Mon Sep 17 00:00:00 2001 From: Tor Colvin Date: Mon, 10 Nov 2025 09:52:40 -0500 Subject: [PATCH 1/2] CBG-4933 support views in test harness with CBS 8.0 --- base/main_test_cluster.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/base/main_test_cluster.go b/base/main_test_cluster.go index 5b4b422f37..19289a5c1a 100644 --- a/base/main_test_cluster.go +++ b/base/main_test_cluster.go @@ -232,6 +232,11 @@ func (c *tbpCluster) insertBucket(name string, quotaMB int, conflictResolution X body.Set("name", name) body.Set("numReplicas", strconv.Itoa(numReplicas)) body.Set("ramQuotaMB", fmt.Sprintf("%d", quotaMB)) + // for GSI, use default storage backend: magma for 8.0+ or couchstore for <8.0 + // views isn't supported with magma + if TestsDisableGSI() { + body.Set("storageBackend", "couchstore") + } output, status, err := c.MgmtRequest( http.MethodPost, "/pools/default/buckets", From 877394d52b9e52aad8c91034e76c2f683bfb4042 Mon Sep 17 00:00:00 2001 From: Tor Colvin Date: Mon, 10 Nov 2025 09:54:26 -0500 Subject: [PATCH 2/2] Update base/main_test_cluster.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- base/main_test_cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/main_test_cluster.go b/base/main_test_cluster.go index 19289a5c1a..04443bba87 100644 --- a/base/main_test_cluster.go +++ b/base/main_test_cluster.go @@ -233,7 +233,7 @@ func (c *tbpCluster) insertBucket(name string, quotaMB int, conflictResolution X body.Set("numReplicas", strconv.Itoa(numReplicas)) body.Set("ramQuotaMB", fmt.Sprintf("%d", quotaMB)) // for GSI, use default storage backend: magma for 8.0+ or couchstore for <8.0 - // views isn't supported with magma + // views aren't supported with magma if TestsDisableGSI() { body.Set("storageBackend", "couchstore") }