certificates/cas/vaultcas/auth/approle/approle_test.go

17 lines
330 B
Go
Raw Normal View History

2022-05-09 11:27:37 +00:00
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)
}
}