(t *testing.T)
| 17 | ) |
| 18 | |
| 19 | func TestManifest(t *testing.T) { |
| 20 | t.Parallel() |
| 21 | manifest := agentsdk.Manifest{ |
| 22 | ParentID: uuid.New(), |
| 23 | AgentID: uuid.New(), |
| 24 | AgentName: "test-agent", |
| 25 | OwnerName: "test-owner", |
| 26 | WorkspaceID: uuid.New(), |
| 27 | WorkspaceName: "test-workspace", |
| 28 | GitAuthConfigs: 3, |
| 29 | VSCodePortProxyURI: "http://proxy.example.com/stuff", |
| 30 | Apps: []codersdk.WorkspaceApp{ |
| 31 | { |
| 32 | ID: uuid.New(), |
| 33 | URL: "http://app1.example.com", |
| 34 | External: true, |
| 35 | Slug: "app1", |
| 36 | DisplayName: "App 1", |
| 37 | Command: "app1 -d", |
| 38 | Icon: "app1.png", |
| 39 | Subdomain: true, |
| 40 | SubdomainName: "app1.example.com", |
| 41 | SharingLevel: codersdk.WorkspaceAppSharingLevelAuthenticated, |
| 42 | Healthcheck: codersdk.Healthcheck{ |
| 43 | URL: "http://localhost:3030/healthz", |
| 44 | Interval: 55555666, |
| 45 | Threshold: 55555666, |
| 46 | }, |
| 47 | Health: codersdk.WorkspaceAppHealthHealthy, |
| 48 | Hidden: false, |
| 49 | }, |
| 50 | { |
| 51 | ID: uuid.New(), |
| 52 | URL: "http://app2.example.com", |
| 53 | External: false, |
| 54 | Slug: "app2", |
| 55 | DisplayName: "App 2", |
| 56 | Command: "app2 -d", |
| 57 | Icon: "app2.png", |
| 58 | Subdomain: false, |
| 59 | SubdomainName: "app2.example.com", |
| 60 | SharingLevel: codersdk.WorkspaceAppSharingLevelPublic, |
| 61 | Healthcheck: codersdk.Healthcheck{ |
| 62 | URL: "http://localhost:3032/healthz", |
| 63 | Interval: 22555666, |
| 64 | Threshold: 22555666, |
| 65 | }, |
| 66 | Health: codersdk.WorkspaceAppHealthInitializing, |
| 67 | Hidden: true, |
| 68 | }, |
| 69 | }, |
| 70 | DERPMap: &tailcfg.DERPMap{ |
| 71 | HomeParams: &tailcfg.DERPHomeParams{RegionScore: map[int]float64{999: 0.025}}, |
| 72 | Regions: map[int]*tailcfg.DERPRegion{ |
| 73 | 999: { |
| 74 | EmbeddedRelay: true, |
| 75 | RegionID: 999, |
| 76 | RegionCode: "default", |
nothing calls this directly
no test coverage detected