Function
assertSanitizedDeploymentConfig
(t *testing.T, dc *codersdk.DeploymentConfig)
Source from the content-addressed store, hash-verified
| 200 | } |
| 201 | |
| 202 | func assertSanitizedDeploymentConfig(t *testing.T, dc *codersdk.DeploymentConfig) { |
| 203 | t.Helper() |
| 204 | for _, opt := range dc.Options { |
| 205 | if opt.Annotations.IsSet("secret") { |
| 206 | assert.Empty(t, opt.Value.String()) |
| 207 | } |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | func assertSanitizedWorkspace(t *testing.T, ws codersdk.Workspace) { |
| 212 | t.Helper() |
Tested by
no test coverage detected