Skip to content

Commit 8b78b71

Browse files
committed
Make admin password configurable
1 parent 7214bb5 commit 8b78b71

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

integration_tests/create_database.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import schemaJson from './persons_schema'
1010
let client : WOQLClient //= new WOQLClient('http://localhost:6363');
1111

1212
beforeAll(() => {
13-
client = new WOQLClient("http://localhost:6363",{ user: 'admin', organization: 'admin', key: 'root' })
13+
client = new WOQLClient("http://localhost:6363",{ user: 'admin', organization: 'admin', key: process.env.TDB_ADMIN_PASS ?? 'root' })
1414
});
1515

1616
const db01 = 'db__test';

integration_tests/woql_client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import fs from 'fs';
99
let client: WOQLClient //= new WOQLClient('http://localhost:6363');
1010

1111
beforeAll(() => {
12-
client = new WOQLClient("http://localhost:6363", { user: 'admin', organization: 'admin', key: 'root' })
12+
client = new WOQLClient("http://localhost:6363", { user: 'admin', organization: 'admin', key: process.env.TDB_ADMIN_PASS ?? 'root' })
1313
});
1414

1515
const db01 = 'db__test_woql';

tutorial/gettingstarted/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import TerminusDB from '@terminusdb/terminusdb-client';
33

44
// Connect with terminusdb Server
5-
const client = new TerminusDB.woqlClient('https:127.0.0.1:6363', { user: 'admin', key: 'root' });
5+
const client = new TerminusDB.woqlClient('https:127.0.0.1:6363', { user: 'admin', key: process.env.TDB_ADMIN_PASS ?? 'root' });
66

77
// Create a new database
88
function createDatabase(client) {

0 commit comments

Comments
 (0)