File tree Expand file tree Collapse file tree 23 files changed +55
-163
lines changed
(authenticated)/(app)/app Expand file tree Collapse file tree 23 files changed +55
-163
lines changed Original file line number Diff line number Diff line change 7
7
"testing"
8
8
"time"
9
9
10
- "github.com/unkeyed/unkey/apps/api/pkg/env"
11
10
"github.com/google/uuid"
12
11
"github.com/stretchr/testify/require"
12
+ "github.com/unkeyed/unkey/apps/api/pkg/env"
13
13
)
14
14
15
15
func TestString_WhenSet (t * testing.T ) {
Original file line number Diff line number Diff line change 5
5
"fmt"
6
6
"net/http"
7
7
8
- "github.com/unkeyed/unkey/apps/api/pkg/database"
9
8
"github.com/gofiber/fiber/v2"
9
+ "github.com/unkeyed/unkey/apps/api/pkg/database"
10
10
)
11
11
12
12
type GetApiRequest struct {
Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ import (
8
8
"os"
9
9
"testing"
10
10
11
+ "github.com/stretchr/testify/require"
11
12
"github.com/unkeyed/unkey/apps/api/pkg/cache"
12
13
"github.com/unkeyed/unkey/apps/api/pkg/database"
13
14
"github.com/unkeyed/unkey/apps/api/pkg/entities"
14
15
"github.com/unkeyed/unkey/apps/api/pkg/logging"
15
16
"github.com/unkeyed/unkey/apps/api/pkg/testutil"
16
17
"github.com/unkeyed/unkey/apps/api/pkg/tracing"
17
18
"github.com/unkeyed/unkey/apps/api/pkg/uid"
18
- "github.com/stretchr/testify/require"
19
19
)
20
20
21
21
func TestGetApi_Exists (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ package server
3
3
import (
4
4
"errors"
5
5
"fmt"
6
+ "github.com/gofiber/fiber/v2"
6
7
"github.com/unkeyed/unkey/apps/api/pkg/database"
7
8
"github.com/unkeyed/unkey/apps/api/pkg/entities"
8
9
"github.com/unkeyed/unkey/apps/api/pkg/hash"
9
10
"github.com/unkeyed/unkey/apps/api/pkg/kafka"
10
11
"github.com/unkeyed/unkey/apps/api/pkg/keys"
11
12
"github.com/unkeyed/unkey/apps/api/pkg/uid"
12
- "github.com/gofiber/fiber/v2"
13
13
"go.uber.org/zap"
14
14
"net/http"
15
15
"strings"
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ import (
12
12
"testing"
13
13
"time"
14
14
15
+ "github.com/stretchr/testify/require"
15
16
"github.com/unkeyed/unkey/apps/api/pkg/cache"
16
17
"github.com/unkeyed/unkey/apps/api/pkg/database"
17
18
"github.com/unkeyed/unkey/apps/api/pkg/entities"
18
19
"github.com/unkeyed/unkey/apps/api/pkg/logging"
19
20
"github.com/unkeyed/unkey/apps/api/pkg/testutil"
20
21
"github.com/unkeyed/unkey/apps/api/pkg/tracing"
21
- "github.com/stretchr/testify/require"
22
22
)
23
23
24
24
func TestCreateKey_Simple (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ import (
17
17
"github.com/unkeyed/unkey/apps/api/pkg/testutil"
18
18
"github.com/unkeyed/unkey/apps/api/pkg/tracing"
19
19
20
- "github.com/unkeyed/unkey/apps/api/pkg/uid"
21
20
"github.com/stretchr/testify/require"
21
+ "github.com/unkeyed/unkey/apps/api/pkg/uid"
22
22
)
23
23
24
24
func TestDeleteKey (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ package server
2
2
3
3
import (
4
4
"errors"
5
+ "github.com/gofiber/fiber/v2"
5
6
"github.com/unkeyed/unkey/apps/api/pkg/database"
6
7
"github.com/unkeyed/unkey/apps/api/pkg/ratelimit"
7
8
"github.com/unkeyed/unkey/apps/api/pkg/tinybird"
8
- "github.com/gofiber/fiber/v2"
9
9
"go.uber.org/zap"
10
10
"net/http"
11
11
"time"
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ import (
17
17
"github.com/unkeyed/unkey/apps/api/pkg/ratelimit"
18
18
"github.com/unkeyed/unkey/apps/api/pkg/tracing"
19
19
20
+ "github.com/stretchr/testify/require"
20
21
"github.com/unkeyed/unkey/apps/api/pkg/hash"
21
22
"github.com/unkeyed/unkey/apps/api/pkg/logging"
22
23
"github.com/unkeyed/unkey/apps/api/pkg/testutil"
23
24
"github.com/unkeyed/unkey/apps/api/pkg/uid"
24
- "github.com/stretchr/testify/require"
25
25
)
26
26
27
27
func TestVerifyKey_Simple (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ package server
3
3
import (
4
4
"errors"
5
5
"fmt"
6
- "github.com/unkeyed/unkey/apps/api/pkg/database"
7
6
"github.com/gofiber/fiber/v2"
7
+ "github.com/unkeyed/unkey/apps/api/pkg/database"
8
8
"net/http"
9
9
)
10
10
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
10
10
"testing"
11
11
"time"
12
12
13
+ "github.com/stretchr/testify/require"
13
14
"github.com/unkeyed/unkey/apps/api/pkg/cache"
14
15
"github.com/unkeyed/unkey/apps/api/pkg/database"
15
16
"github.com/unkeyed/unkey/apps/api/pkg/entities"
@@ -18,7 +19,6 @@ import (
18
19
"github.com/unkeyed/unkey/apps/api/pkg/testutil"
19
20
"github.com/unkeyed/unkey/apps/api/pkg/tracing"
20
21
"github.com/unkeyed/unkey/apps/api/pkg/uid"
21
- "github.com/stretchr/testify/require"
22
22
)
23
23
24
24
func TestListKeys_Simple (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments