mirror of
https://github.com/kopia/kopia.git
synced 2026-03-27 10:32:08 -04:00
* kopia format upgrade lock * Update cli/command_repository_set_parameters_test.go Co-authored-by: Ali Dowair <adowair@umich.edu> * Update cli/command_repository_upgrade.go Co-authored-by: Ali Dowair <adowair@umich.edu> * Update cli/command_repository_upgrade.go Co-authored-by: Ali Dowair <adowair@umich.edu> * pr feedback * pr feedback * add a min drain time check * env var for io-drain-timeout * fix: add more doctext around upgrade phases * build: wrap with EnvName * add experimental warning * protect upgrade cli behind env varible * fix conflicts after relocating the upgrade lock * generalize the command args * drop certain features as per feedback * sub-divide the upgrade command into begin and rollback * Update cli/command_repository_upgrade.go Co-authored-by: Julio Lopez <1953782+julio-lopez@users.noreply.github.com> * Update cli/command_repository_upgrade.go Co-authored-by: Julio Lopez <1953782+julio-lopez@users.noreply.github.com> * missing return * rename force flag to allow-unsafe-upgrade Co-authored-by: Shikhar Mall <shikhar@kasten.io> Co-authored-by: Ali Dowair <adowair@umich.edu> Co-authored-by: Shikhar Mall <small@kopia.io> Co-authored-by: Julio Lopez <1953782+julio-lopez@users.noreply.github.com>
28 lines
741 B
Go
28 lines
741 B
Go
package cli_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/kopia/kopia/internal/testutil"
|
|
"github.com/kopia/kopia/repo/content"
|
|
)
|
|
|
|
func TestMain(m *testing.M) { testutil.MyTestMain(m) }
|
|
|
|
type formatSpecificTestSuite struct {
|
|
formatFlags []string
|
|
formatVersion content.FormatVersion
|
|
}
|
|
|
|
func TestFormatV1(t *testing.T) {
|
|
testutil.RunAllTestsWithParam(t, &formatSpecificTestSuite{[]string{"--format-version=1"}, content.FormatVersion1})
|
|
}
|
|
|
|
func TestFormatV2(t *testing.T) {
|
|
testutil.RunAllTestsWithParam(t, &formatSpecificTestSuite{[]string{"--format-version=2"}, content.FormatVersion2})
|
|
}
|
|
|
|
func TestFormatV3(t *testing.T) {
|
|
testutil.RunAllTestsWithParam(t, &formatSpecificTestSuite{[]string{"--format-version=3"}, content.FormatVersion3})
|
|
}
|