Skip to content

Commit 9a83e3b

Browse files
committed
Ensure that tests use test config.
1 parent ebfb3f3 commit 9a83e3b

File tree

9 files changed

+15
-2
lines changed

9 files changed

+15
-2
lines changed

test/integration/account-creation-oidc-test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ describe('AccountManager (OIDC account creation tests)', function () {
1212
var host = 'localhost:3457'
1313
var ldpHttpsServer
1414
let rootPath = path.join(__dirname, '../resources/accounts/')
15+
let configPath = path.join(__dirname, '../resources/config')
1516
let dbPath = path.join(__dirname, '../resources/accounts/db')
1617

1718
var ldp = ldnode.createServer({
1819
root: rootPath,
20+
configPath,
1921
sslKey: path.join(__dirname, '../keys/key.pem'),
2022
sslCert: path.join(__dirname, '../keys/cert.pem'),
2123
auth: 'oidc',
@@ -206,9 +208,11 @@ describe('Single User signup page', () => {
206208
const port = 7457
207209
var ldpHttpsServer
208210
const rootDir = path.join(__dirname, '../resources/accounts/single-user/')
211+
const configPath = path.join(__dirname, '../resources/config')
209212
const ldp = ldnode.createServer({
210213
port,
211214
root: rootDir,
215+
configPath,
212216
sslKey: path.join(__dirname, '../keys/key.pem'),
213217
sslCert: path.join(__dirname, '../keys/cert.pem'),
214218
webid: true,

test/integration/acl-tls-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ var ns = require('solid-namespace')($rdf)
2020

2121
var address = 'https://localhost:3456/test/'
2222
let rootPath = path.join(__dirname, '../resources')
23+
let configPath = path.join(rootPath, 'config')
2324

2425
var aclExtension = '.acl'
2526
var metaExtension = '.meta'
@@ -53,6 +54,7 @@ describe('ACL with WebID+TLS', function () {
5354
var ldp = ldnode.createServer({
5455
mount: '/test',
5556
root: rootPath,
57+
configPath,
5658
sslKey: path.join(__dirname, '../keys/key.pem'),
5759
sslCert: path.join(__dirname, '../keys/cert.pem'),
5860
webid: true,

test/integration/auth-proxy-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ describe('Auth Proxy', () => {
2020
// Set up Solid server
2121
server = ldnode({
2222
root: path.join(__dirname, '../resources/auth-proxy'),
23+
configPath: path.join(__dirname, '../resources/config'),
2324
authProxy: {
2425
'/server/a': 'http://server-a.org'
2526
},

test/integration/authentication-oidc-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('Authentication API (OIDC)', () => {
2323

2424
let aliceServerUri = 'https://localhost:7000'
2525
let aliceWebId = 'https://localhost:7000/profile/card#me'
26-
let configPath = path.join(__dirname, '../../config')
26+
let configPath = path.join(__dirname, '../resources/config')
2727
let aliceDbPath = path.join(__dirname,
2828
'../resources/accounts-scenario/alice/db')
2929
let userStorePath = path.join(aliceDbPath, 'oidc/users')

test/integration/capability-discovery-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('API', () => {
99
let alice
1010

1111
let aliceServerUri = 'https://localhost:5000'
12-
let configPath = path.join(__dirname, '../../config')
12+
let configPath = path.join(__dirname, '../resources/config')
1313
let aliceDbPath = path.join(__dirname,
1414
'../resources/accounts-scenario/alice/db')
1515
let aliceRootPath = path.join(__dirname, '../resources/accounts-scenario/alice')

test/integration/errors-oidc-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ describe('OIDC error handling', function () {
88
const serverUri = 'https://localhost:3457'
99
var ldpHttpsServer
1010
const rootPath = path.join(__dirname, '../resources/accounts/errortests')
11+
const configPath = path.join(__dirname, '../resources/config')
1112
const dbPath = path.join(__dirname, '../resources/accounts/db')
1213

1314
const ldp = ldnode.createServer({
1415
root: rootPath,
16+
configPath,
1517
sslKey: path.join(__dirname, '../keys/key.pem'),
1618
sslCert: path.join(__dirname, '../keys/cert.pem'),
1719
auth: 'oidc',

test/integration/patch-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ const { read, rm, backup, restore } = require('../utils')
1010
const port = 7777
1111
const serverUri = `https://tim.localhost:${port}`
1212
const root = path.join(__dirname, '../resources/patch')
13+
const configPath = path.join(__dirname, '../resources/config')
1314
const serverOptions = {
1415
root,
16+
configPath,
1517
serverUri,
1618
multiuser: false,
1719
webid: true,

test/resources/config/templates

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../default-templates/

test/resources/config/views

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../default-views/

0 commit comments

Comments
 (0)