From dd545881c9c53c47e619505d6a3e86688d408fa5 Mon Sep 17 00:00:00 2001 From: Heitor Danilo Date: Fri, 26 Apr 2024 10:01:45 -0300 Subject: [PATCH] wip --- tests/api_test.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/api_test.go diff --git a/tests/api_test.go b/tests/api_test.go new file mode 100644 index 00000000000..a2e6895d754 --- /dev/null +++ b/tests/api_test.go @@ -0,0 +1,28 @@ +package main + +import ( + "context" + "testing" + + "github.com/shellhub-io/shellhub/tests/environment" +) + +func TestAPI(t *testing.T) { + cases := []struct { + name string + run func(t *testing.T) + }{} + + env := environment.New(t) + + for _, tt := range cases { + tc := tt + t.Run(tc.name, func(t *testing.T) { + ctx := context.Background() + + compose := env.Clone(t).Up(ctx) + t.Cleanup(compose.Down) + + }) + } +}