Skip to content

Test reusable storage#8983

Merged
mjarmy merged 33 commits into
masterfrom
test-reusable-storage
May 14, 2020
Merged

Test reusable storage#8983
mjarmy merged 33 commits into
masterfrom
test-reusable-storage

Conversation

@mjarmy
Copy link
Copy Markdown
Contributor

@mjarmy mjarmy commented May 12, 2020

This PR improves Vault's unit testing capabilities by introducing the concept of reusable storage.

A teststorage.ReusableStorage is a physical backend that can be re-used across multiple test clusters in sequence. It is useful for testing things like seal migration, wherein a given physical backend must be re-used as several test clusters are sequentially created, tested, and discarded.

Comment thread physical/raft/raft.go
Comment thread helper/testhelpers/teststorage/teststorage_reusable.go Outdated
Comment thread helper/testhelpers/testhelpers.go Outdated
@mjarmy mjarmy merged commit 8813dc7 into master May 14, 2020
@mjarmy mjarmy deleted the test-reusable-storage branch May 14, 2020 12:32
sapk pushed a commit to sapk-fork/vault that referenced this pull request Sep 1, 2025
…lease/1.20.x+ent (hashicorp#8983) (hashicorp#9024)

* VAULT-37633: Database static role recover operations (hashicorp#8922)

* initial implementation

* fix

* tests

* changelog

* fix vet errors

* pr comments

* remove recover as a copy code

---------

Co-authored-by: miagilepner <mia.epner@hashicorp.com>
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.

3 participants