Skip to content

Commit dd54588

Browse files
committed
wip
1 parent 5b9b8f3 commit dd54588

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tests/api_test.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)