fix tests so they pass on a self-signed single 21.10 node
This commit is contained in:
@ -12,6 +12,8 @@ protobufJS.configure();
|
||||
|
||||
var settings = {
|
||||
log: new NoopLogger(),
|
||||
useSslConnection: true,
|
||||
validateServer: false
|
||||
};
|
||||
if (process.env.TESTS_VERBOSE_LOGGING === '1') {
|
||||
settings.verboseLogging = true;
|
||||
|
@ -41,7 +41,7 @@ module.exports = {
|
||||
done();
|
||||
}
|
||||
var self = this;
|
||||
this.conn.connectToPersistentSubscription(testStreamName, 'consumer-1', eventAppeared, subscriptionDropped)
|
||||
this.conn.connectToPersistentSubscription(testStreamName, 'consumer-1', eventAppeared, subscriptionDropped, adminCredentials)
|
||||
.then(function(subscription) {
|
||||
test.ok(subscription, "Subscription is null.");
|
||||
return self.conn.appendToStream(testStreamName, client.expectedVersion.any, [createRandomEvent(), createRandomEvent()]);
|
||||
|
@ -2,7 +2,7 @@ const client = require('../lib/dist');
|
||||
const userCredentials = new client.UserCredentials('admin', 'changeit');
|
||||
|
||||
const log = new client.NoopLogger();
|
||||
const httpEndpoint = `http://${process.env.EVENTSTORE_HOST || "localhost"}:2113`;
|
||||
const httpEndpoint = `https://${process.env.EVENTSTORE_HOST || "localhost"}:2113`;
|
||||
const operationTimeout = 5000;
|
||||
|
||||
const simpleProjection = "\
|
||||
@ -21,7 +21,7 @@ fromStream('$stats-127.0.0.1:2113')\
|
||||
|
||||
module.exports = {
|
||||
setUp: function(cb) {
|
||||
this.projectionsManager = new client.ProjectionsManager(log, httpEndpoint, operationTimeout);
|
||||
this.projectionsManager = new client.ProjectionsManager(log, httpEndpoint, operationTimeout, false);
|
||||
cb();
|
||||
},
|
||||
'Create One Time Projection Happy Path': function(test) {
|
||||
|
Reference in New Issue
Block a user