bedrock-zcap-storage-http
Version:
Bedrock Authorization Capability Storage HTTP API
22 lines (17 loc) • 625 B
JavaScript
/*!
* Copyright (c) 2019-2020 Digital Bazaar, Inc. All rights reserved.
*/
;
const {config} = require('bedrock');
const path = require('path');
config.mocha.tests.push(path.join(__dirname, 'mocha'));
// mongodb config
config.mongodb.name = 'bedrock_zcap_storage_http_test';
config.mongodb.host = 'localhost';
config.mongodb.port = 27017;
// drop all collections on initialization
config.mongodb.dropCollections = {};
config.mongodb.dropCollections.onInit = true;
config.mongodb.dropCollections.collections = [];
// allow self-signed certs in test framework
config['https-agent'].rejectUnauthorized = false;