Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dolthub/dolt
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ecef8a82af34e16a8f0acf50a314e09721b76939
Choose a base ref
..
head repository: dolthub/dolt
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7f8a70c0ded5ff1b4c95408d19dab065a7497480
Choose a head ref
Showing with 0 additions and 33 deletions.
  1. +0 −33 integration-tests/bats/archive.bats
33 changes: 0 additions & 33 deletions integration-tests/bats/archive.bats
Original file line number Diff line number Diff line change
@@ -143,39 +143,6 @@ mutations_and_gc_statement() {
[ "$commits" -eq "66" ]
}

@test "archive: archive backup no go" {
dolt sql -q "$(mutations_and_gc_statement)"
dolt archive

dolt backup add bac1 file://../bac1
run dolt backup sync bac1

[ "$status" -eq 1 ]
[[ "$output" =~ "archive files present" ]] || false

# currently the cli and stored procedures are different code paths.
run dolt sql -q "call dolt_backup('sync', 'bac1')"
[ "$status" -eq 1 ]
# NM4 - TODO. This message is cryptic, but plumbing the error through is awkward.
[[ "$output" =~ "Archive chunk source" ]] || false
}

@test "archive: clone archived database fails" {
mkdir remote
cd remote
dolt init
dolt sql -q "$(mutations_and_gc_statement)"
dolt archive
cd ..

dolt clone file://./remote clone_test
[ "$status" -eq 1 ]
[[ "$output" =~ "archive files present" ]] || false

rm -rf remote
rm -rf clone_test
}

@test "archive: can clone archived repository" {
mkdir -p remote/.dolt
mkdir cloned