We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cc8dcf commit ad7adaaCopy full SHA for ad7adaa
apps/managedidentity/managedidentity_test.go
@@ -183,18 +183,8 @@ func TestGetSource(t *testing.T) {
183
}
184
185
func TestAzureArcReturnsWhenHimdsFound(t *testing.T) {
186
- if runtime.GOOS == "darwin" {
187
- t.Skip("Skipping test on macOS as HIMDS is not supported")
188
- }
189
-
190
unsetEnvVars(t)
191
- // Get system dependent mock file path
192
- var mockFilePath string
193
- if runtime.GOOS == "windows" {
194
- mockFilePath = filepath.Join(os.TempDir(), "himds.exe")
195
- } else {
196
- mockFilePath = filepath.Join("/tmp", "himds")
197
+ mockFilePath := filepath.Join(t.TempDir(), "himds")
198
setCustomAzureArcFilePath(t, mockFilePath)
199
200
// Create the mock himds file
0 commit comments