MCPcopy Index your code
hub / github.com/coder/coder / completeWithExternalAgent

Function completeWithExternalAgent

enterprise/cli/externalworkspaces_test.go:24–50  ·  view source on GitHub ↗

completeWithExternalAgent creates a template version with an external agent resource

()

Source from the content-addressed store, hash-verified

22
23// completeWithExternalAgent creates a template version with an external agent resource
24func completeWithExternalAgent() *echo.Responses {
25 return &echo.Responses{
26 Parse: echo.ParseComplete,
27 ProvisionGraph: []*proto.Response{
28 {
29 Type: &proto.Response_Graph{
30 Graph: &proto.GraphComplete{
31 Resources: []*proto.Resource{
32 {
33 Type: "coder_external_agent",
34 Name: "main",
35 Agents: []*proto.Agent{
36 {
37 Name: "external-agent",
38 OperatingSystem: "linux",
39 Architecture: "amd64",
40 },
41 },
42 },
43 },
44 HasExternalAgents: true,
45 },
46 },
47 },
48 },
49 }
50}
51
52// completeWithRegularAgent creates a template version with a regular agent (no external agent)
53func completeWithRegularAgent() *echo.Responses {

Callers 1

TestExternalWorkspacesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected