Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
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
4 changes: 2 additions & 2 deletions smoke-release-testing/experiment.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ 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/vector_search.bash
test_vector_search $MEMGRAPH_DEFAULT_HOST $MEMGRAPH_NEXT_DATA_BOLT_PORT
source ./mgconsole/user_profiles.bash
test_user_profiles $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
Expand Down
37 changes: 6 additions & 31 deletions smoke-release-testing/mgconsole/auth_roles.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,17 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_show_database_settings() {
__host="$1"
__port="$2"
echo "SHOW DATABASE SETTINGS;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "FEATURE: Show Database Settings"
run_next_admin "SHOW DATABASE SETTINGS;"
}

test_auth_roles() {
__host="$1"
__port="$2"
echo "FEATURE: Auth Roles"

echo "CREATE ROLE IF NOT EXISTS test_reader;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "SHOW ROLES;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
run_next_admin "CREATE ROLE IF NOT EXISTS test_reader;"
run_next_admin "SHOW ROLES;"
}

if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
# NOTE: Take a look at session_trace.bash for the v1 implementation of binary-docker picker.
trap cleanup_memgraph_binary_processes EXIT # To make sure cleanup is done.
set -e # To make sure the script will return non-0 in case of a failure.

# NOTE: If you want to run custom memgraph binary just set MEMGRAPH_BUILD_PATH to your memgraph build directory.
run_memgraph_binary "--bolt-port $MEMGRAPH_DEFAULT_PORT --log-level=TRACE --log-file=mg_test_auth_roles_enterprise.logs --data-directory=test_auth_roles_enterprise"
wait_for_memgraph $MEMGRAPH_DEFAULT_HOST $MEMGRAPH_DEFAULT_PORT
# test_show_database_settings $MEMGRAPH_DEFAULT_HOST $MEMGRAPH_DEFAULT_PORT
test_auth_roles $MEMGRAPH_DEFAULT_HOST $MEMGRAPH_DEFAULT_PORT
cleanup_memgraph_binary_processes

rm -rf $MG_BUILD_PATH/test_auth_roles_enterprise/auth
ORIG_MEMGRAPH_ENTEPRISE_LICENSE="$MEMGRAPH_ENTERPRISE_LICENSE"
ORIG_MEMGRAPH_ORGANIZATION_NAME="$MEMGRAPH_ORGANIZATION_NAME"
unset MEMGRAPH_ENTERPRISE_LICENSE
unset MEMGRAPH_ORGANIZATION_NAME
# NOTE: License is not stored in settings.
run_memgraph_binary "--bolt-port 7688 --log-level=TRACE --log-file=mg_test_auth_roles_community.logs --data-directory=test_auth_roles_enterprise"
wait_for_memgraph $MEMGRAPH_DEFAULT_HOST 7688
# test_show_database_settings $MEMGRAPH_DEFAULT_HOST 7688
test_auth_roles $MEMGRAPH_DEFAULT_HOST 7688
export MEMGRAPH_ENTERPRISE_LICENSE="$ORIG_MEMGRAPH_ENTEPRISE_LICENSE"
export MEMGRAPH_ORGANIZATION_NAME="$ORIG_MEMGRAPH_ORGANIZATION_NAME"
# A place to run tests using memgraph binary and debug issues directly.
echo "pass"
fi
5 changes: 1 addition & 4 deletions smoke-release-testing/mgconsole/basic_auth.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_basic_auth() {
__host="$1"
__port="$2"
echo "FEATURE: Basic Authentication"

echo "SHOW ACTIVE USERS INFO;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
run_next "SHOW ACTIVE USERS INFO;"
}

if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
Expand Down
19 changes: 19 additions & 0 deletions smoke-release-testing/mgconsole/durability.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_durability() {
echo "FEATURE: Durability and Persistence"

echo "SUBFEATURE: Create snapshot query"
run_next "CREATE SNAPSHOT;"

echo "Durability testing completed successfully"
}

if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
# NOTE: Take a look at session_trace.bash for the v1 implementation of binary-docker picker.
trap cleanup_memgraph_binary_processes EXIT # To make sure cleanup is done.
set -e # To make sure the script will return non-0 in case of a failure.
run_memgraph_binary_and_test "--log-level=TRACE --log-file=mg_test_durability.logs" test_durability
fi
5 changes: 1 addition & 4 deletions smoke-release-testing/mgconsole/dynamic_algos.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_dynamic_algos() {
__host="$1"
__port="$2"
echo "FEATURE: Dynamic Algorithms"

echo "CALL mg.procedures() YIELD name;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port | grep "online"
run_next "CALL mg.procedures() YIELD name;" | grep "online"
}
5 changes: 1 addition & 4 deletions smoke-release-testing/mgconsole/edge_type_operations.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_edge_type_operations() {
__host="$1"
__port="$2"
echo "FEATURE: Edge Type Operations"

echo "WITH {my_edge_type: \"KNOWS\"} as x CREATE ()-[:x.my_edge_type]->() RETURN x; MATCH (n) DETACH DELETE n;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
run_next "WITH {my_edge_type: \"KNOWS\"} as x CREATE ()-[:x.my_edge_type]->() RETURN x; MATCH (n) DETACH DELETE n;"
}
5 changes: 1 addition & 4 deletions smoke-release-testing/mgconsole/expressions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_or_expression_for_labels() {
__host="$1"
__port="$2"
echo "FEATURE: OR expression for labels"

echo "EXPLAIN MATCH (n:Label1|Label2) RETURN n;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
run_next "EXPLAIN MATCH (n:Label1|Label2) RETURN n;"
}

if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
Expand Down
9 changes: 3 additions & 6 deletions smoke-release-testing/mgconsole/functions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_functions() {
__host="$1"
__port="$2"
echo "FEATURE: Built-in functions"

# Added in v3.1.
echo "RETURN toSet([1, 2, 1]) AS a;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "RETURN length([1,2,3]) AS a;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "CREATE (a), (b), (a)-[c:Type]->(b) RETURN project([a,b], [c]) AS x; MATCH (n) DETACH DELETE n;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
run_next "RETURN toSet([1, 2, 1]) AS a;"
run_next "RETURN length([1, 2, 3]) AS a;"
run_next "CREATE (a), (b), (a)-[c:Type]->(b) RETURN project([a,b], [c]) AS x; MATCH (n) DETACH DELETE n;"
}
19 changes: 0 additions & 19 deletions smoke-release-testing/mgconsole/ha.bash

This file was deleted.

5 changes: 1 addition & 4 deletions smoke-release-testing/mgconsole/impersonate.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_impersonate_user() {
__host="$1"
__port="$2"
echo "FEATURE: Impersonate User"

echo "CREATE USER admin; GRANT IMPERSONATE_USER * TO admin;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
run_next_admin "GRANT IMPERSONATE_USER * TO admin;"
}
21 changes: 8 additions & 13 deletions smoke-release-testing/mgconsole/indices.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,17 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_composite_indices() {
__host="$1"
__port="$2"
echo "FEATURE: Label Property Composit Index"

echo "CREATE INDEX ON :Label(prop1, prop2);" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "CREATE (:Label {prop1:0, prop2: 1});" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "EXPLAIN MATCH (n:Label {prop1:0, prop2: 1}) RETURN n;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port | grep -E "ScanAllByLabelProperties \(n :Label \{prop1, prop2\}\)"
run_next "CREATE INDEX ON :Label(prop1, prop2);"
run_next "CREATE (:Label {prop1:0, prop2: 1});"
run_next "EXPLAIN MATCH (n:Label {prop1:0, prop2: 1}) RETURN n;" | grep -E "ScanAllByLabelProperties \(n :Label \{prop1, prop2\}\)"
run_next "SHOW INDEXES;"
}

test_nested_indices() {
__host="$1"
__port="$2"
echo "FEATURE: Nested Indices"

echo "CREATE INDEX ON :Project(delivery.status.due_date);" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "CREATE (:Project {delivery: {status: {due_date: date('2025-06-04'), milestone: 'v3.14'}}});" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "EXPLAIN MATCH (proj:Project) WHERE proj.delivery.status.due_date = date('2025-06-04') RETURN *;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port | grep -E "ScanAllByLabelProperties"

run_next "CREATE INDEX ON :Project(delivery.status.due_date);"
run_next "CREATE (:Project {delivery: {status: {due_date: date('2025-06-04'), milestone: 'v3.14'}}});"
run_next "EXPLAIN MATCH (proj:Project) WHERE proj.delivery.status.due_date = date('2025-06-04') RETURN *;" | grep -E "ScanAllByLabelProperties"
run_next "SHOW INDEXES;"
}
5 changes: 1 addition & 4 deletions smoke-release-testing/mgconsole/label_operations.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_label_operations() {
__host="$1"
__port="$2"
echo "FEATURE: Label Operations"

echo "WITH {my_labels: [\"Label1\", \"Label2\"]} as x CREATE (n:x.my_labels) RETURN n; MATCH (n) DETACH DELETE n;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
run_next "WITH {my_labels: [\"Label1\", \"Label2\"]} as x CREATE (n:x.my_labels) RETURN n; MATCH (n) DETACH DELETE n;"
}
3 changes: 0 additions & 3 deletions smoke-release-testing/mgconsole/monitoring.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_monitoring() {
__host="$1"
__port="$2"
echo "FEATURE: Monitoring"

response=$(curl -X GET "http://localhost:$MEMGRAPH_NEXT_MONITORING_PORT/metrics")
if ! echo "$response" | jq -e '.General | has("vertex_count")'; then
echo "Monitoring data is missing vertex count."
Expand Down
5 changes: 1 addition & 4 deletions smoke-release-testing/mgconsole/multi_tenancy.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_multi_tenancy() {
__host="$1"
__port="$2"
echo "FEATURE: Multi-tenancy basic check"

echo "SHOW DATABASES;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
run_next "SHOW DATABASES;"
}
12 changes: 5 additions & 7 deletions smoke-release-testing/mgconsole/query.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_query() {
__host="$1"
__port="$2"
echo "FEATURE: Cypher query engine"

echo "SUBFEATURE: Peridic commit"
echo "MATCH (n) DETACH DELETE n;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "UNWIND range(1, 10) as x CALL { WITH x CREATE (n:Label {id: x}) RETURN n } IN TRANSACTIONS OF 1 ROWS;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "MATCH (n) RETURN n;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "USING PERIODIC COMMIT 1 MATCH (n) DETACH DELETE n;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "MATCH (n) RETURN n;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
run_next "MATCH (n) DETACH DELETE n;"
run_next "UNWIND range(1, 10) as x CALL { WITH x CREATE (n:Label {id: x}) RETURN n } IN TRANSACTIONS OF 1 ROWS;"
run_next "MATCH (n) RETURN n;"
run_next "USING PERIODIC COMMIT 1 MATCH (n) DETACH DELETE n;"
run_next "MATCH (n) RETURN n;"
}

if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
Expand Down
11 changes: 3 additions & 8 deletions smoke-release-testing/mgconsole/query_modules.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_query_modules() {
__host="$1"
__port="$2"
echo "FEATURE: All MAGE query modules"

# TODO(gitbuda): What are the 3 added modules? -> Probably the migration modules.
echo "CALL mg.procedures() YIELD * RETURN count(*) AS cnt;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port --output-format=csv | python3 $SCRIPT_DIR/validator.py first_as_int -f cnt -e 312

echo "CREATE (a), (b), (c), (d), (a)-[:ET]->(b), (c)-[:ET]->(d);" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "CALL leiden_community_detection.get() YIELD * RETURN communities, community_id, node;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
run_next_csv "CALL mg.procedures() YIELD * RETURN count(*) AS cnt;" | python3 $SCRIPT_DIR/validator.py first_as_int -f cnt -e 313
run_next "CREATE (a), (b), (c), (d), (a)-[:ET]->(b), (c)-[:ET]->(d);"
run_next "CALL leiden_community_detection.get() YIELD * RETURN communities, community_id, node;"
}

if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
Expand Down
10 changes: 3 additions & 7 deletions smoke-release-testing/mgconsole/regex.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

# TODO(gitbuda): Introduce default __host and __port values.
test_regex() {
__host="$1"
__port="$2"
echo "FEATURE: Regex"

echo "CREATE (:Hero {name: 'xSPIDERy'});" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "CREATE (:Hero {name: 'test'});" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "MATCH (h:Hero) WHERE h.name =~ \".*SPIDER.+\" RETURN h.name as PotentialSpiderDude ORDER BY PotentialSpiderDude;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
run_next "CREATE (:Hero {name: 'xSPIDERy'});"
run_next "CREATE (:Hero {name: 'test'});"
run_next "MATCH (h:Hero) WHERE h.name =~ \".*SPIDER.+\" RETURN h.name as PotentialSpiderDude ORDER BY PotentialSpiderDude;"
}

if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
Expand Down
11 changes: 4 additions & 7 deletions smoke-release-testing/mgconsole/session_trace.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_session_trace() {
__host="$1"
__port="$2"
echo "FEATURE: Inspection"

echo "SUBFEATURE: Session trace"
echo "SET SESSION TRACE ON;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "CREATE (n);" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
echo "MATCH (n) RETURN n;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
run_next "SET SESSION TRACE ON;"
run_next "CREATE (n);"
run_next "MATCH (n) RETURN n;"
}

# NOTE: No extra functions to not polute the namespace, flags could be different for each mgconsole test.
Expand All @@ -26,7 +23,7 @@ if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
cleanup_docker
docker run -d --rm -p $MEMGRAPH_NEXT_DATA_BOLT_PORT:7687 --name memgraph_next_data \
$ENTERPRISE_DOCKER_ENVS_UNLIMITED $MEMGRAPH_NEXT_DOCKERHUB_IMAGE $MEMGRAPH_GENERAL_FLAGS \
$MEMGRAPH_PROPERTY_COMPRESSION_FALGS $MEMGRAPH_SHOW_SCHEMA_INFO_FLAG $MEMGRAPH_SESSION_TRACE_FLAG
$MEMGRAPH_PROPERTY_COMPRESSION_FLAGS $MEMGRAPH_SHOW_SCHEMA_INFO_FLAG $MEMGRAPH_SESSION_TRACE_FLAG
sleep 2
test_session_trace localhost $MEMGRAPH_NEXT_DATA_BOLT_PORT
;;
Expand Down
54 changes: 54 additions & 0 deletions smoke-release-testing/mgconsole/shortest_paths.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_shortest_paths() {
echo "FEATURE: Deep-path Traversal Capabilities"
run_next "MATCH (n) DETACH DELETE n;"

create_graph_query="
CREATE
(a:Node {id: 'A'}),
(b:Node {id: 'B'}),
(c:Node {id: 'C'}),
(d:Node {id: 'D'}),
(e:Node {id: 'E'}),
(f:Node {id: 'F'}),
(g:Node {id: 'G'}),
(a)-[:REL {weight: 1}]->(b),
(a)-[:REL {weight: 2}]->(c),
(b)-[:REL {weight: 1}]->(e),
(c)-[:REL {weight: 1}]->(e),
(a)-[:REL {weight: 3}]->(e),
(b)-[:REL {weight: 2}]->(d),
(d)-[:REL {weight: 1}]->(e),
(a)-[:REL {weight: 1}]->(f),
(f)-[:REL {weight: 1}]->(g),
(g)-[:REL {weight: 1}]->(e);
"
run_next "$create_graph_query"

echo "SUBFEATURE: KShortest paths - find top 3 shortest paths from A to E"
run_next "MATCH (n1:Node {id: 'A'}), (n2:Node {id: 'E'}) WITH n1, n2 MATCH p=(n1)-[*KShortest | 3]->(n2) RETURN p;"
echo "SUBFEATURE: KShortest paths - with path length bounds"
run_next "MATCH (n1:Node {id: 'A'}), (n2:Node {id: 'E'}) WITH n1, n2 MATCH p=(n1)-[*KShortest 2..4]->(n2) RETURN p;"
echo "SUBFEATURE: Test KShortest paths with the bounds and limit"
run_next "MATCH (n1:Node {id: 'A'}), (n2:Node {id: 'E'}) WITH n1, n2 MATCH p=(n1)-[*KShortest 2..4 | 5]->(n2) RETURN p;"

echo "SUBFEATURE: AllShortest paths - find all shortest paths from A to E (with weight lambda)"
run_next "MATCH (n1:Node {id: 'A'}), (n2:Node {id: 'E'}) WITH n1, n2 MATCH p=(n1)-[*AllShortest (r, n | r.weight)]->(n2) RETURN p;"
echo "SUBFEATURE: AllShortest paths - with the upper bound and total_weight"
run_next "MATCH (n1:Node {id: 'A'}), (n2:Node {id: 'E'}) WITH n1, n2 MATCH p=(n1)-[*AllShortest ..4 (r, n | r.weight) total_weight]->(n2) RETURN p, total_weight;"
echo "SUBFEATURE: AllShortest paths - using weight lambda + total_weight + the filter"
run_next "MATCH p=(n1:Node {id: 'A'})-[*AllShortest ..4 (r, n | r.weight) total_weight (r, n, p, w | r.weight > 0 AND length(p) > 0)]->(n2:Node {id: 'E'}) RETURN p;"

run_next "MATCH (n) DETACH DELETE n;"
echo "Smoking Deep-path Traversal Capabilities DONE"
}

if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then
# NOTE: Take a look at session_trace.bash for the v1 implementation of binary-docker picker.
trap cleanup_memgraph_binary_processes EXIT # To make sure cleanup is done.
set -e # To make sure the script will return non-0 in case of a failure.
run_memgraph_binary_and_test "--log-level=TRACE --log-file=mg_test_shortest_paths.logs" test_shortest_paths
fi
9 changes: 3 additions & 6 deletions smoke-release-testing/mgconsole/show_schema.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/../utils.bash"

test_show_schema_info() {
__host="$1"
__port="$2"
echo "FEATURE: Show schema info"

echo "CREATE (:Node {prop: 1});" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port
data=$(echo "SHOW SCHEMA INFO;" | $MEMGRAPH_CONSOLE_BINARY --host $__host --port $__port --output-format=csv --csv-doublequote=true)
echo "FEATURE: Fast Graph Schema"
run_next "CREATE (:Node {prop: 1});"
data=$(echo "SHOW SCHEMA INFO;" | $MGCONSOLE_NEXT_DEFAULT --output-format=csv --csv-doublequote=true)
schema=$(echo "$data" | sed 1d)
echo $schema

Expand Down
Loading