-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zookeeper Path handling #2561
base: development/8.7
Are you sure you want to change the base?
Zookeeper Path handling #2561
Conversation
Hello benzekrimaha,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 6 files with indirect coverage changes
@@ Coverage Diff @@
## development/8.7 #2561 +/- ##
===================================================
+ Coverage 69.67% 69.75% +0.08%
===================================================
Files 194 194
Lines 12819 12893 +74
===================================================
+ Hits 8931 8993 +62
- Misses 3878 3890 +12
Partials 10 10
Flags with carried forward coverage won't be shown. Click here to find out more. |
8f975b4
to
1056812
Compare
93f65d3
to
d3f3a90
Compare
Changes: the zookeeperUrl was adapted based on the config to differenciate between S3C and Artesca please note that a new parameter has been added to ease the unit testing on the function , it has the default value of the zookeeperManager class. Issue : BB-542
d3f3a90
to
1c59b2c
Compare
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
|
sinon.stub(redis.prototype, 'connect').returns(Promise.resolve()); | ||
sinon.stub(redis.prototype, 'on').returnsThis(); | ||
sinon.stub(redis.prototype, 'quit').returns(Promise.resolve()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sinon.stub(redis.prototype, 'connect').returns(Promise.resolve()); | |
sinon.stub(redis.prototype, 'on').returnsThis(); | |
sinon.stub(redis.prototype, 'quit').returns(Promise.resolve()); | |
sinon.stub(redis.prototype, 'connect').resolves(); | |
sinon.stub(redis.prototype, 'on').returnsThis(); | |
sinon.stub(redis.prototype, 'quit').resolves(); |
class MockZookeeperManager { | ||
constructor(url, options, logger) { | ||
zkManagerArgs = { url, options, logger }; | ||
this.once = sinon.stub().callsFake((event, callback) => { | ||
if (event === 'connected') { | ||
callback(); | ||
} | ||
}); | ||
this.removeAllListeners = sinon.stub(); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should define this class outside of a describe
}); | ||
|
||
it('should append zookeeperPath to connectionString if this._queuePopulator.mongo does not exist', done => { | ||
delete bbapi._queuePopulator.mongo; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we should not rely on the order ot unit tests for them to pass, I think this should be reverted at the end of the test (or just mock the value)
Issue : BB-542