This repository was archived by the owner on Jul 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
main/java/org/neo4j/shell/cli
test/java/org/neo4j/shell/cli Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ private static ArgumentParser setupParser()
128128 ArgumentGroup connGroup = parser .addArgumentGroup ("connection arguments" );
129129 connGroup .addArgument ("-a" , "--address" )
130130 .help ("address and port to connect to" )
131- .setDefault ("bolt ://localhost:7687" );
131+ .setDefault ("neo4j ://localhost:7687" );
132132 connGroup .addArgument ("-u" , "--username" )
133133 .setDefault ("" )
134134 .help ("username to connect as. Can also be specified using environment variable " + ConnectionConfig .USERNAME_ENV_VAR );
Original file line number Diff line number Diff line change @@ -54,6 +54,13 @@ public void testWrap() {
5454 assertNull ("invalid wrap" ,CliArgHelper .parse ("--wrap foo" .split (" " )));
5555 }
5656
57+ @ Test
58+ public void testDefaultScheme () {
59+ CliArgs arguments = CliArgHelper .parse ();
60+ assertNotNull ( arguments );
61+ assertEquals ( "neo4j://" , arguments .getScheme () );
62+ }
63+
5764 @ Test
5865 public void testDebugIsNotDefault () {
5966 assertFalse ("Debug should not be the default mode" ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function testscript {
1414 # first try with encryption off (4.X series), if that fails with encryption on (3.X series)
1515 if cypher-shell/cypher-shell -u neo4j -p neo --encryption false " RETURN 1;" ; then
1616 echo " $1 Success!"
17- elif cypher-shell/cypher-shell -u neo4j -p neo --encryption true " RETURN 1;" ; then
17+ elif cypher-shell/cypher-shell -a " bolt://localhost:7687 " - u neo4j -p neo --encryption true " RETURN 1;" ; then
1818 echo " $1 Success!"
1919 else
2020 echo " $1 Failure!"
You can’t perform that action at this time.
0 commit comments