We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b9b8f3 commit dd54588Copy full SHA for dd54588
tests/api_test.go
@@ -0,0 +1,28 @@
1
+package main
2
+
3
+import (
4
+ "context"
5
+ "testing"
6
7
+ "github.com/shellhub-io/shellhub/tests/environment"
8
+)
9
10
+func TestAPI(t *testing.T) {
11
+ cases := []struct {
12
+ name string
13
+ run func(t *testing.T)
14
+ }{}
15
16
+ env := environment.New(t)
17
18
+ for _, tt := range cases {
19
+ tc := tt
20
+ t.Run(tc.name, func(t *testing.T) {
21
+ ctx := context.Background()
22
23
+ compose := env.Clone(t).Up(ctx)
24
+ t.Cleanup(compose.Down)
25
26
+ })
27
+ }
28
+}
0 commit comments