Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
package harnesstest_test
import (
"testing"
"github.com/Infisical/infisical/tests/fakes/github"
"github.com/Infisical/infisical/tests/fixture"
"github.com/Infisical/infisical/tests/harness"
"github.com/Infisical/infisical/tests/internal/spec"
"github.com/stretchr/testify/require"
)
func TestIsolated_ReachesTheSharedFakenet(t *testing.T) {
spec.Why(t, `An Isolated package owns its Infisical but shares fakenet, which it must
still reach through the shared resolver address.`)
// Setup
tn := harness.From(t).NewTenant(t)
// Action
conn := fixture.NewAppConnection(t, tn, fixture.GitHubPATAppConnection)
// Assert
gh := github.Open(t, conn.FakenetAdmin(t), conn.Nonce())
require.Equal(t, 1, gh.Received(t, "GET", "/user"))
}