forked from TrueCloudLab/certificates
17 lines
330 B
Go
17 lines
330 B
Go
|
package approle
|
||
|
|
||
|
import (
|
||
|
"encoding/json"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestKubernetes_NewKubernetesAuthMethod(t *testing.T) {
|
||
|
mountPath := "approle"
|
||
|
raw := `{"roleID": "roleID", "secretID": "secretIDwrapped", "isWrappedToken": true}`
|
||
|
|
||
|
_, err := NewApproleAuthMethod(mountPath, json.RawMessage(raw))
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
}
|