Skip to content

Commit

Permalink
Skip integration tests on mysql
Browse files Browse the repository at this point in the history
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
  • Loading branch information
bcmmbaga committed Jan 3, 2025
1 parent b740fef commit 60c50bf
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"net/http"
"net/http/httptest"
"os"
"sort"
"strings"
"testing"
Expand All @@ -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 {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 60c50bf

Please sign in to comment.