Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topic/integration tests api #3525

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions tests/api_test.go
Original file line number Diff line number Diff line change
@@ -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)

})
}
}