In absence of ingress filter, use directly connected worker (#2757)
* directly connected ingress filtering
This commit is contained in:
1 parent
400f13a7e8
commit
9135cc7668
11 files changed
+50
-10
No files matched your search
@@ -14,6 +14,8 @@ import (
|
||||
"github.com/hashicorp/boundary/api/authmethods"
|
||||
"github.com/hashicorp/boundary/api/authtokens"
|
||||
"github.com/hashicorp/boundary/api/targets"
|
||||
tg "github.com/hashicorp/boundary/internal/daemon/controller/handlers/targets"
|
||||
_ "github.com/hashicorp/boundary/internal/daemon/controller/handlers/targets/tcp"
|
||||
"github.com/hashicorp/boundary/internal/session"
|
||||
"github.com/hashicorp/boundary/internal/tests/helper"
|
||||
"github.com/hashicorp/boundary/internal/types/scope"
|
||||
@@ -21,8 +23,6 @@ import (
|
||||
"github.com/mitchellh/cli"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/atomic"
|
||||
|
||||
_ "github.com/hashicorp/boundary/internal/daemon/controller/handlers/targets/tcp"
|
||||
)
|
||||
|
||||
const shutdownReloadWorkerProvidedConfiguration = `
|
||||
@@ -91,6 +91,7 @@ func TestServer_ShutdownWorker(t *testing.T) {
|
||||
require.NotNil(tgtR)
|
||||
|
||||
// Authorize and connect
|
||||
tg.SetupSuiteTargetFilters(t)
|
||||
sess := helper.NewTestSession(ctx, t, tcl, tgt.Id)
|
||||
sConn := sess.Connect(ctx, t)
|
||||
|
||||
|
||||
Reference in new issue
Block a user