Skip to content

Commit

Permalink
Adding snapshot and checks files
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin authored and mdibaiee committed Nov 7, 2024
1 parent 539415e commit c069ee5
Show file tree
Hide file tree
Showing 2 changed files with 450 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/materialize/materialize-firebolt/checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# cleanup the snapshot by replacing s3 paths and bucket with a placeholder so that the test is reproducible
SED_CMD="sed"
if [ "$(uname -s)" = "Darwin" ]; then
SED_CMD="gsed"
fi

$SED_CMD -i'' 's/"Bucket": "[^"]*"/"Bucket": "<test_bucket>"/g' ${SNAPSHOT}
$SED_CMD -i'' 's/"[^"]*\.json"/"<test_file>"/g' ${SNAPSHOT}
$SED_CMD -i'' "s/'[^']*\.json'/'<test_file>'/g" ${SNAPSHOT}
Loading

0 comments on commit c069ee5

Please sign in to comment.