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

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"]) t.Fatalf("expected new access key buzz2 but received %s", resp.Data["access_key"])
} }
newClientConf, err := b.nonLockedClientConfigEntry(ctx, req.Storage) newClientConf, err := b.nonLockedClientConfigEntry(ctx, req.Storage)
if err != nil {
t.Fatal(err)
}
if resp.Data["access_key"].(string) != newClientConf.AccessKey { 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) t.Fatalf("expected new access key buzz2 to be saved to storage but receieved %s", clientConf.AccessKey)
} }