Revert "remove backup code"

This reverts commit c74c73d4d0.
This commit is contained in:
Puskar Basu
2025-03-07 16:22:42 +05:30
parent f695c8bef6
commit 94e52c3fd6
5 changed files with 587 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ load "$LIB_BATS_SUPPORT/load.bash"
esac
# download the zip and extract
steampipe_uri="https://github.com/turbot/steampipe/releases/download/v1.0.3/steampipe_${target}"
steampipe_uri="https://github.com/turbot/steampipe/releases/download/v0.13.6/steampipe_${target}"
case $(uname -s) in
"Darwin") zip_location="${tmpdir}/steampipe.zip" ;;
"Linux") zip_location="${tmpdir}/steampipe.tar.gz" ;;
@@ -46,7 +46,7 @@ load "$LIB_BATS_SUPPORT/load.bash"
$tmpdir/steampipe --install-dir $tmpdir query "${setup_sql[$i]}"
done
# store the result of the verification statements(1.0.3)
# store the result of the verification statements(0.13.6)
for ((i = 0; i < ${#verify_sql[@]}; i++)); do
$tmpdir/steampipe --install-dir $tmpdir query "${verify_sql[$i]}" > verify$i.txt
done
@@ -57,7 +57,7 @@ load "$LIB_BATS_SUPPORT/load.bash"
# Now run this version - which should migrate the data
steampipe --install-dir $tmpdir service start
# store the result of the verification statements(1.1.0)
# store the result of the verification statements(0.14.*)
for ((i = 0; i < ${#verify_sql[@]}; i++)); do
echo "VerifySQL: ${verify_sql[$i]}"
steampipe --install-dir $tmpdir query "${verify_sql[$i]}" > verify$i$i.txt