fix(auth): complete Task 13 deployment review
This commit is contained in:
@@ -30,6 +30,19 @@ func TestRestorePublicPathUsesConcreteProductionPreflight(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestVolumeRestoreCommandKeepsTarInputOpenWithoutTTY(t *testing.T) {
|
||||
args := volumeRestoreCommand("project_sessions")
|
||||
wantPrefix := []string{"run", "--rm", "--interactive", "--network", "none"}
|
||||
if len(args) < len(wantPrefix) || !equalStrings(args[:len(wantPrefix)], wantPrefix) {
|
||||
t.Fatalf("volumeRestoreCommand() prefix = %q, want %q", args, wantPrefix)
|
||||
}
|
||||
for _, arg := range args {
|
||||
if arg == "--tty" || arg == "-t" {
|
||||
t.Fatalf("volumeRestoreCommand() requests a TTY: %q", args)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestRestoreRestoresVerifiedVolumesInManifestOrderBeforeAuthenticationReset(t *testing.T) {
|
||||
installation := preflightTestInstallation(t)
|
||||
archive := filepath.Join(t.TempDir(), "restore-volumes.zip")
|
||||
|
||||
Reference in New Issue
Block a user