2023-03-15 16:00:52 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2020-06-11 19:07:59 +00:00
|
|
|
package sealmigration
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
// TestSealMigration_TransitToShamir_Pre14 tests transit-to-shamir seal
|
|
|
|
// migration, using the pre-1.4 method of bring down the whole cluster to do
|
|
|
|
// the migration.
|
|
|
|
func TestSealMigration_TransitToShamir_Pre14(t *testing.T) {
|
2020-09-15 14:01:26 +00:00
|
|
|
t.Parallel()
|
2020-06-11 19:07:59 +00:00
|
|
|
// Note that we do not test integrated raft storage since this is
|
|
|
|
// a pre-1.4 test.
|
2020-11-20 12:53:31 +00:00
|
|
|
testVariousBackends(t, ParamTestSealMigrationTransitToShamir_Pre14, BasePort_TransitToShamir_Pre14, false)
|
2020-06-11 19:07:59 +00:00
|
|
|
}
|
|
|
|
|
2020-11-20 12:53:31 +00:00
|
|
|
// TestSealMigration_ShamirToTransit_Pre14 tests shamir-to-transit seal
|
|
|
|
// migration, using the pre-1.4 method of bring down the whole cluster to do
|
|
|
|
// the migration.
|
|
|
|
func TestSealMigration_ShamirToTransit_Pre14(t *testing.T) {
|
|
|
|
t.Parallel()
|
|
|
|
// Note that we do not test integrated raft storage since this is
|
|
|
|
// a pre-1.4 test.
|
|
|
|
testVariousBackends(t, ParamTestSealMigrationShamirToTransit_Pre14, BasePort_ShamirToTransit_Pre14, false)
|
2020-06-11 19:07:59 +00:00
|
|
|
}
|