Secure, Fast, and Extensible Sandbox runtime for AI agents.
test(egress): migrate DNS callback fixture
leo peinca4f0f398f47
diff --git a/components/egress/fastsandbox_transition_rules_test.go b/components/egress/fastsandbox_transition_rules_test.goindex 32bd2a27b..d855cf296 100644--- a/components/egress/fastsandbox_transition_rules_test.go+++ b/components/egress/fastsandbox_transition_rules_test.go@@ -72,7 +72,7 @@ func TestTransitionChangedIPRebuildRemovesCumulativeOldDispatch(t *testing.T) {srv.nft = fastsandboxnft.NewApplier(model.run, fastsandboxnft.Options{MitmRedirectPort: 18080})subj := subject.FromSandboxUID(testUID)if unknownAfterPartialInstall {- srv.dnsRedirectInstall = func(netip.Addr, int) error { return errors.New("gateway redirect failure after nft install") }+ srv.dnsRedirectApply = func([]netip.Addr, int) error { return errors.New("gateway redirect failure after nft install") }}initial := doAction(t, srv, bindBody(t, testUID, testIP, testFenceR, testFenceA, 1, vaultAllowPolicy()))if unknownAfterPartialInstall {@@ -82,7 +82,7 @@ func TestTransitionChangedIPRebuildRemovesCumulativeOldDispatch(t *testing.T) {srv.mu.Lock()delete(srv.subjAtt, subj)srv.mu.Unlock()- srv.dnsRedirectInstall = func(netip.Addr, int) error { return nil }+ srv.dnsRedirectApply = func([]netip.Addr, int) error { return nil }} else {require.Equal(t, http.StatusOK, initial.Code)require.Equal(t, http.StatusOK, doAction(t, srv, hookBody(t, testUID, testFenceR, testFenceA, constants.HookDataPlaneReady)).Code)