(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func TestDeploymentValues_HighlyConfigurable(t *testing.T) { |
| 31 | t.Parallel() |
| 32 | |
| 33 | // This test ensures that every deployment option has |
| 34 | // a corresponding Flag, Env, and YAML name, unless explicitly excluded. |
| 35 | |
| 36 | excludes := map[string]exclusion{ |
| 37 | // These are used to configure YAML support itself, so |
| 38 | // they make no sense within the YAML file. |
| 39 | "Config Path": { |
| 40 | yaml: true, |
| 41 | }, |
| 42 | "Write Config": { |
| 43 | yaml: true, |
| 44 | env: true, |
| 45 | }, |
| 46 | // Dangerous values? Not sure we should help users |
| 47 | // persistent their configuration. |
| 48 | "DANGEROUS: Allow Path App Sharing": { |
| 49 | yaml: true, |
| 50 | }, |
| 51 | "DANGEROUS: Allow Site Owners to Access Path Apps": { |
| 52 | yaml: true, |
| 53 | }, |
| 54 | // Secrets |
| 55 | "Trace Honeycomb API Key": { |
| 56 | yaml: true, |
| 57 | }, |
| 58 | "OAuth2 GitHub Client Secret": { |
| 59 | yaml: true, |
| 60 | }, |
| 61 | "OIDC Client Secret": { |
| 62 | yaml: true, |
| 63 | }, |
| 64 | "Postgres Connection URL": { |
| 65 | yaml: true, |
| 66 | }, |
| 67 | "SCIM API Key": { |
| 68 | yaml: true, |
| 69 | }, |
| 70 | "External Token Encryption Keys": { |
| 71 | yaml: true, |
| 72 | }, |
| 73 | "External Auth Providers": { |
| 74 | // Technically External Auth Providers can be provided through the env, |
| 75 | // but bypassing serpent. See cli.ReadExternalAuthProvidersFromEnv. |
| 76 | flag: true, |
| 77 | env: true, |
| 78 | }, |
| 79 | "Provisioner Daemon Pre-shared Key (PSK)": { |
| 80 | yaml: true, |
| 81 | }, |
| 82 | "Email Auth: Password": { |
| 83 | yaml: true, |
| 84 | }, |
| 85 | "Notifications: Email Auth: Password": { |
| 86 | yaml: true, |
| 87 | }, |
nothing calls this directly
no test coverage detected