Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit 2d526ea

Browse files
authored
Merge pull request #163 from sherfert/1.2-default-protocol
Change the default protocol to neo4j://
2 parents ad57330 + ead9eb3 commit 2d526ea

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

cypher-shell/src/main/java/org/neo4j/shell/cli/CliArgHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

cypher-shell/src/test/java/org/neo4j/shell/cli/CliArgHelperTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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",

tyrekicking.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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!"

0 commit comments

Comments
 (0)