15 lines
202 B
Go
15 lines
202 B
Go
//go:build unix
|
|
|
|
package credentiallease
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func secureTestKeyFile(t *testing.T, path string) {
|
|
t.Helper()
|
|
if err := os.Chmod(path, 0o600); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|