Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi committed Oct 5, 2023
1 parent bcc0902 commit cd18e36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/tests/connectionManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ describe('Connection Manager Tests', () => {

// Check the return value and ensure that necessary methods are called
assert.isTrue(result);
sinon.assert.calledWith(logMessageStub, 'Trying to read credentials from KeyStore...', 'DEBUG');
sinon.assert.calledWith(logMessageStub, 'Trying to read credentials from Secret Storage...', 'DEBUG');
sinon.assert.calledOnce(setUrlsFromFilesystemStub);
sinon.assert.calledOnce(setUsernameFromFilesystemStub);
sinon.assert.calledOnce(getPasswordFromSecretStorageStub);
Expand All @@ -250,7 +250,7 @@ describe('Connection Manager Tests', () => {

// Check the return value and ensure that necessary methods are called
assert.isTrue(result);
sinon.assert.calledWith(logMessageStub, 'Trying to read credentials from KeyStore...', 'DEBUG');
sinon.assert.calledWith(logMessageStub, 'Trying to read credentials from Secret Storage...', 'DEBUG');
sinon.assert.calledOnce(setUrlsFromFilesystemStub);
sinon.assert.calledOnce(setUsernameFromFilesystemStub);
sinon.assert.notCalled(getPasswordFromSecretStorageStub);
Expand All @@ -269,7 +269,7 @@ describe('Connection Manager Tests', () => {

// Check the return value and ensure that necessary methods are called
assert.isFalse(result);
sinon.assert.calledWith(logMessageStub, 'Trying to read credentials from KeyStore...', 'DEBUG');
sinon.assert.calledWith(logMessageStub, 'Trying to read credentials from Secret Storage...', 'DEBUG');
sinon.assert.calledOnce(setUrlsFromFilesystemStub);
sinon.assert.notCalled(setUsernameFromFilesystemStub);
sinon.assert.notCalled(getPasswordFromSecretStorageStub);
Expand Down

0 comments on commit cd18e36

Please sign in to comment.