Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions e2e/compatibility_smoke_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package e2e

import (
"strings"
"testing"
)

func TestCLI_CompatibilitySmokeMatrix(t *testing.T) {
runFeatureMatrix(t, featureSpec{
name: "compatibility_smoke",
test: func(t *testing.T, h *harness, entry matrixEntry) {
h.writeFile("file1.txt", "hello world")
h.writeFile("subdir/nested.txt", "nested content")

h.initEncrypted()
h.backup()

out := h.list()
if !strings.Contains(out, "1 snapshot") {
t.Fatalf("expected 1 snapshot, got: %s", out)
}

zipPath := h.restoreZip("restore.zip")
if got := readZipFile(t, zipPath, "file1.txt"); got != "hello world" {
t.Fatalf("restore mismatch for file1.txt: got %q, want %q", got, "hello world")
}
if got := readZipFile(t, zipPath, "subdir/nested.txt"); got != "nested content" {
t.Fatalf("restore mismatch for subdir/nested.txt: got %q, want %q", got, "nested content")
}
},
})
}
Loading
Loading