Files
threshold/internal/iam/testing_test.go
T

30 lines
520 B
Go
Raw Normal View History

2020-05-27 18:16:43 -04:00
package iam
import (
"testing"
"github.com/hashicorp/watchtower/internal/db"
"github.com/stretchr/testify/assert"
)
func Test_TestScopes(t *testing.T) {
assert := assert.New(t)
cleanup, conn, _ := db.TestSetup(t, "postgres")
defer func() {
if err := cleanup(); err != nil {
t.Error(err)
}
if err := conn.Close(); err != nil {
t.Error(err)
}
}()
org, prj := TestScopes(t, conn)
assert.NotNil(org)
assert.NotEmpty(org.GetPublicId())
assert.NotNil(prj)
assert.NotEmpty(prj.GetPublicId())
}