(t *testing.T)
| 112 | } |
| 113 | |
| 114 | func TestProviderExecutableIsExecutable(t *testing.T) { |
| 115 | cfg := getDefaultExternalConfig(t) |
| 116 | |
| 117 | execPath, err := cfg.ExecutablePath() |
| 118 | require.Nil(t, err) |
| 119 | err = os.Chmod(execPath, 0o644) |
| 120 | require.Nil(t, err) |
| 121 | |
| 122 | err = cfg.Validate() |
| 123 | require.NotNil(t, err) |
| 124 | require.EqualError(t, err, fmt.Sprintf("external provider binary %s is not executable", execPath)) |
| 125 | } |
| 126 | |
| 127 | func TestExternalEnvironmentVariables(t *testing.T) { |
| 128 | cfg := getDefaultExternalConfig(t) |
nothing calls this directly
no test coverage detected