Skip to content

Commit a7cde83

Browse files
test: do not run tests with incompatible authentication types
1 parent 243e7d4 commit a7cde83

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

test/integration/connection-retry-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('Connection Retry Test', function() {
3333
it('should retry specified number of times on transient errors', function(done) {
3434
const config = getConfig();
3535

36-
if (config.authentication && config.authentication.type === 'azure-active-directory-password') {
36+
if (config.authentication && config.authentication.type !== 'default') {
3737
return done();
3838
}
3939

@@ -59,7 +59,7 @@ describe('Connection Retry Test', function() {
5959
it('should no retries on non-transient errors', function(done) {
6060
const config = getConfig();
6161

62-
if (config.authentication && config.authentication.type === 'azure-active-directory-password') {
62+
if (config.authentication && config.authentication.type !== 'default') {
6363
return done();
6464
}
6565

@@ -85,7 +85,7 @@ describe('Connection Retry Test', function() {
8585
it('should no retries if connection timeout fires', function(done) {
8686
const config = getConfig();
8787

88-
if (config.authentication && config.authentication.type === 'azure-active-directory-password') {
88+
if (config.authentication && config.authentication.type !== 'default') {
8989
return done();
9090
}
9191

test/integration/connection-test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ describe('Initiate Connect Test', function() {
7676
it('should be bad credentials', function(done) {
7777
const config = getConfig();
7878

79+
if (config.authentication && config.authentication.type !== 'default') {
80+
return done();
81+
}
82+
7983
config.authentication.options.userName = 'bad-user';
8084
config.authentication.options.password = 'bad-password';
8185

0 commit comments

Comments
 (0)