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

Function completeWithAgentAndApp

coderd/audit_test.go:476–507  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

474}
475
476func completeWithAgentAndApp() *echo.Responses {
477 return &echo.Responses{
478 Parse: echo.ParseComplete,
479 ProvisionGraph: []*proto.Response{
480 {
481 Type: &proto.Response_Graph{
482 Graph: &proto.GraphComplete{
483 Resources: []*proto.Resource{
484 {
485 Type: "compute",
486 Name: "main",
487 Agents: []*proto.Agent{
488 {
489 Name: "smith",
490 OperatingSystem: "linux",
491 Architecture: "i386",
492 Apps: []*proto.App{
493 {
494 Slug: "app",
495 DisplayName: "App",
496 },
497 },
498 },
499 },
500 },
501 },
502 },
503 },
504 },
505 },
506 }
507}
508
509// TestDeprecatedConnEvents tests the deprecated connection and disconnection
510// events in the audit logs. These events are no longer created, but need to be

Callers 2

TestAuditLogsFilterFunction · 0.85
TestDeprecatedConnEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected