Skip to content
Draft
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
7 changes: 6 additions & 1 deletion smoke-release-testing/experiment.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,22 @@
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/utils.bash"

# TODO(gitbuda): Add v3.7 tests.

# NOTE: Use the below line if you just want to spin up the containers and leave them running.
# run_memgraph_docker_containers RC RC
# NOTE: Use the below line if you want to cleanup the containers after run of this script.
spinup_and_cleanup_memgraph_dockers none none
spinup_and_cleanup_memgraph_dockers none RC
echo "Waiting for memgraph to initialize..."
wait_for_memgraph $MEMGRAPH_DEFAULT_HOST $MEMGRAPH_NEXT_DATA_BOLT_PORT
echo "Memgraph is up and running!"

source ./mgconsole/user_profiles.bash
test_user_profiles $MEMGRAPH_DEFAULT_HOST $MEMGRAPH_NEXT_DATA_BOLT_PORT

source ./mgconsole/load_xyz.bash
test_load_xyz $MEMGRAPH_DEFAULT_HOST $MEMGRAPH_NEXT_DATA_BOLT_PORT

# NOTE: Test what's the exit status of the script by using `echo $?`:
# * if it's == 0 -> all good
# * if it's != 0 -> something went wrong.
10 changes: 10 additions & 0 deletions smoke-release-testing/mgconsole/load_xyz.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_load_xyz() {
echo "FEATURE: LOAD CSV/JSONL/PARQUET"
# Added in v3.7.
# TODO(gitbuda): Create test files and mount them when starting containers.
run_next "LOAD PARQUET FROM 'nodes.parquet' AS row CREATE (n:Node {id: row.id});"
}