Skip to content

Commit 1223cab

Browse files
committed
additionally check the response in the test for an error
1 parent 88a791a commit 1223cab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

builtin/credential/ldap/path_config_rotate_root_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ func TestRotateRoot(t *testing.T) {
3434
},
3535
}
3636

37-
_, err := b.HandleRequest(ctx, req)
37+
resp, err := b.HandleRequest(ctx, req)
3838
if err != nil {
3939
t.Fatalf("failed to initialize ldap auth config: %s", err)
4040
}
41+
if resp != nil && resp.IsError() {
42+
t.Fatalf("failed to initialize ldap auth config: %s", resp.Data["error"])
43+
}
4144

4245
req = &logical.Request{
4346
Operation: logical.UpdateOperation,

0 commit comments

Comments
 (0)