From 60c50bf93b2f74658631116ed07b5f6abfa93480 Mon Sep 17 00:00:00 2001 From: bcmmbaga Date: Fri, 3 Jan 2025 14:27:46 +0300 Subject: [PATCH] Skip integration tests on mysql Signed-off-by: bcmmbaga --- .../setupkeys_handler_integration_test.go | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/management/server/http/testing/integration/setupkeys_handler_integration_test.go b/management/server/http/testing/integration/setupkeys_handler_integration_test.go index e22a1a5a8..2012e4b1a 100644 --- a/management/server/http/testing/integration/setupkeys_handler_integration_test.go +++ b/management/server/http/testing/integration/setupkeys_handler_integration_test.go @@ -5,6 +5,7 @@ import ( "encoding/json" "net/http" "net/http/httptest" + "os" "sort" "strings" "testing" @@ -18,6 +19,10 @@ import ( ) func Test_SetupKeys_Create(t *testing.T) { + if os.Getenv("NETBIRD_STORE_ENGINE") == "mysql" { + t.Skip("skip integration tests on mysql") + } + truePointer := true users := []struct { @@ -325,6 +330,10 @@ func Test_SetupKeys_Create(t *testing.T) { } func Test_SetupKeys_Update(t *testing.T) { + if os.Getenv("NETBIRD_STORE_ENGINE") == "mysql" { + t.Skip("skip integration tests on mysql") + } + users := []struct { name string userId string @@ -611,6 +620,10 @@ func Test_SetupKeys_Update(t *testing.T) { } func Test_SetupKeys_Get(t *testing.T) { + if os.Getenv("NETBIRD_STORE_ENGINE") == "mysql" { + t.Skip("skip integration tests on mysql") + } + users := []struct { name string userId string @@ -785,6 +798,10 @@ func Test_SetupKeys_Get(t *testing.T) { } func Test_SetupKeys_GetAll(t *testing.T) { + if os.Getenv("NETBIRD_STORE_ENGINE") == "mysql" { + t.Skip("skip integration tests on mysql") + } + users := []struct { name string userId string @@ -947,6 +964,10 @@ func Test_SetupKeys_GetAll(t *testing.T) { } func Test_SetupKeys_Delete(t *testing.T) { + if os.Getenv("NETBIRD_STORE_ENGINE") == "mysql" { + t.Skip("skip integration tests on mysql") + } + users := []struct { name string userId string