Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

[pr] Fixes for issue #118 #123

Merged

Conversation

stephen-palmer
Copy link
Contributor

  • Moved whitelist check from _onPut to _onBeginTransaction, Invalidating transactions from IPs that are not whitelisted as soon as they are created
  • Have CacheBase process all transactions through the ReliabilityManager when enabled
  • Ensure ReliabilityManager does not process invalid transactions

- Moved whitelist check from _onPut to _onBeginTransaction, Invalidating transactions from IPs that are not whitelisted as soon as they are created
- Have CacheBase process all transactions through the ReliabilityManager when enabled
- Ensure ReliabilityManager does not process invalid transactions
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ A review job has been created and sent to the PullRequest network.


Check the status or cancel PullRequest code review here - or - cancel by adding [!pr] to the title of the pull request.

@coveralls
Copy link

coveralls commented May 9, 2019

Coverage Status

Coverage decreased (-0.2%) to 94.835% when pulling 267e806 on bugfix/issue-118-invalidate-whitelist-transactions into 68c9c95 on master.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid tests!


Reviewed with ❤️ by PullRequest

test/command_processor.js Show resolved Hide resolved
test/command_processor.js Outdated Show resolved Hide resolved
lib/cache/reliability_manager.js Outdated Show resolved Hide resolved
beforeEach(() => {
this.cmdProc = new CommandProcessor(new CacheBase());
});

afterEach(() => {
stubs.forEach(s => s.restore());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you considered using a sandbox to easily restore all the stubs without having to track them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tip - I upgraded Sinon and refactored to use the default sandbox.

@stephen-palmer stephen-palmer merged commit 65252bc into master May 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants