Skip to content

test/migration: ensure that leader client is used for storage read check#9403

Merged
calvn merged 1 commit into
masterfrom
test-fix-raft-migration-failure
Jul 6, 2020
Merged

test/migration: ensure that leader client is used for storage read check#9403
calvn merged 1 commit into
masterfrom
test-fix-raft-migration-failure

Conversation

@calvn
Copy link
Copy Markdown
Contributor

@calvn calvn commented Jul 6, 2020

Fixes the following failure when testing seal migration via raft since it's not guaranteed that core0 will be the leader due to the nature of the election.

    --- FAIL: TestSealMigration_TransitToShamir_Post14/raft (86.29s)
        teststorage_reusable.go:167: raft dir: /tmp/vault-raft-793422364
        teststorage_reusable.go:167: raft dir: /tmp/vault-raft-204126923
        teststorage_reusable.go:167: raft dir: /tmp/vault-raft-352124846
        teststorage_reusable.go:167: raft dir: /tmp/vault-raft-990210357
        teststorage_reusable.go:167: raft dir: /tmp/vault-raft-057345808
        seal_migration_test.go:645: Get https://127.0.0.1:23404/v1/secret/foo: redirects not allowed in these tests

@calvn calvn added this to the 1.5 milestone Jul 6, 2020
@calvn calvn requested review from briankassouf and mjarmy July 6, 2020 20:18
@calvn calvn merged commit 5a0e401 into master Jul 6, 2020
@calvn calvn deleted the test-fix-raft-migration-failure branch July 6, 2020 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants