builtin/credential/aws: fix dropped test error (#13609)

This commit is contained in:
Lars Lehtonen 2022-01-10 05:58:20 -08:00 committed by GitHub
parent c925324057
commit 8a3501b7f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ func TestPathConfigRotateRoot(t *testing.T) {
t.Fatalf("expected new access key buzz2 but received %s", resp.Data["access_key"])
}
newClientConf, err := b.nonLockedClientConfigEntry(ctx, req.Storage)
if err != nil {
t.Fatal(err)
}
if resp.Data["access_key"].(string) != newClientConf.AccessKey {
t.Fatalf("expected new access key buzz2 to be saved to storage but receieved %s", clientConf.AccessKey)
}