From 9743cbb6d4e1d7403bf1a0d04e3a7d3c730a29b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Leszczy=C5=84ski?= <2000michal@wp.pl> Date: Tue, 17 Dec 2024 15:39:49 +0100 Subject: [PATCH] fix(backup_test): skip TestBackupSkipSchemaIntegration for older Scylla versions --- pkg/service/backup/service_backup_integration_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/service/backup/service_backup_integration_test.go b/pkg/service/backup/service_backup_integration_test.go index ed0b8f4c2..8cd5d4485 100644 --- a/pkg/service/backup/service_backup_integration_test.go +++ b/pkg/service/backup/service_backup_integration_test.go @@ -2562,6 +2562,11 @@ func TestBackupSkipSchemaIntegration(t *testing.T) { clusterSession = CreateSessionAndDropAllKeyspaces(t, h.Client) ) + if CheckAnyConstraint(h.T, h.Client, "< 6.0", "< 2024.2, > 1000") { + t.Skip("CQL credentials are not needed for the backup with this Scylla version, " + + "so the --skip-schema flag is not needed there") + } + Print("And: simple table to back up") WriteData(t, clusterSession, testKeyspace, 1)