(t *testing.T, dc *codersdk.DeploymentConfig, secretValue string)
| 477 | } |
| 478 | |
| 479 | func seedSecretDeploymentOptions(t *testing.T, dc *codersdk.DeploymentConfig, secretValue string) { |
| 480 | t.Helper() |
| 481 | if dc == nil { |
| 482 | dc = &codersdk.DeploymentConfig{} |
| 483 | } |
| 484 | for _, opt := range dc.Options { |
| 485 | if codersdk.IsSecretDeploymentOption(opt) { |
| 486 | opt.Value.Set(secretValue) |
| 487 | } |
| 488 | } |
| 489 | } |
| 490 | |
| 491 | func setupSupportBundleTestFixture( |
| 492 | ctx context.Context, |
no test coverage detected