Skip to content

Commit

Permalink
test: added test case to create database from console on a server
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Aug 16, 2023
1 parent 6fd0b33 commit 10541f8
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions console/src/test/java/com/arcadedb/console/RemoteConsoleIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,24 @@
import java.io.*;

public class RemoteConsoleIT extends BaseGraphServerTest {
private static final String URL = "remote:localhost:2480/console root " + DEFAULT_PASSWORD_FOR_TESTS;
private static final String URL_SHORT = "remote:localhost/console root " + DEFAULT_PASSWORD_FOR_TESTS;
private static final String URL_NOCREDENTIALS = "remote:localhost/console";
private static final String URL_WRONGPASSWD = "remote:localhost/console root wrong";
private static Console console;
private static final String URL = "remote:localhost:2480/console root " + DEFAULT_PASSWORD_FOR_TESTS;
private static final String URL_SHORT = "remote:localhost/console root " + DEFAULT_PASSWORD_FOR_TESTS;
private static final String URL_NOCREDENTIALS = "remote:localhost/console";
private static final String URL_WRONGPASSWD = "remote:localhost/console root wrong";
private static final String URL_NEW_DB = "remote:localhost/consoleNew root " + DEFAULT_PASSWORD_FOR_TESTS;

private static Console console;

public void setTestConfiguration() {
super.setTestConfiguration();
GlobalConfiguration.SERVER_HTTP_TX_EXPIRE_TIMEOUT.setValue(1);
}

@Test
public void testCreateDatabase() throws IOException {
Assertions.assertTrue(console.parse("create database " + URL_NEW_DB));
}

@Test
public void testConnect() throws IOException {
Assertions.assertTrue(console.parse("connect " + URL));
Expand Down

0 comments on commit 10541f8

Please sign in to comment.