2021-09-08 10:06:38 -07:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-02-02 17:15:17 -08:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
2021-09-08 10:06:38 -07:00
|
|
|
package plugin
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
"github.com/hashicorp/boundary/internal/db"
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
|
)
|
|
|
|
|
|
2023-04-24 19:27:41 -04:00
|
|
|
func Test_TestPlugins(t *testing.T) {
|
2021-09-08 10:06:38 -07:00
|
|
|
assert, require := assert.New(t), require.New(t)
|
|
|
|
|
conn, _ := db.TestSetup(t, "postgres")
|
|
|
|
|
|
2023-04-24 19:27:41 -04:00
|
|
|
plg := TestPlugin(t, conn, "test")
|
2021-09-08 10:06:38 -07:00
|
|
|
require.NotNil(plg)
|
|
|
|
|
assert.NotEmpty(plg.GetPublicId())
|
|
|
|
|
}
|