...

Source file src/github.com/datawire/ambassador/v2/pkg/agent/directive_handler_test.go

Documentation: github.com/datawire/ambassador/v2/pkg/agent

     1  package agent_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/datawire/ambassador/v2/pkg/agent"
     7  	agentTypes "github.com/datawire/ambassador/v2/pkg/api/agent"
     8  	"github.com/datawire/dlib/dlog"
     9  )
    10  
    11  func TestHandleDirective(t *testing.T) {
    12  	ctx := dlog.NewTestContext(t, false)
    13  
    14  	a := &agent.Agent{}
    15  	dh := &agent.BasicDirectiveHandler{}
    16  
    17  	d := &agentTypes.Directive{ID: "one"}
    18  
    19  	dh.HandleDirective(ctx, a, d)
    20  }
    21  

View as plain text