Skip integration tests on mysql

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
bcmmbaga 2025-01-03 14:27:46 +03:00
parent b740fef6af
commit 60c50bf93b
No known key found for this signature in database
GPG Key ID: 511EED5C928AD547

View File

@ -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