-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix keystone e2e test dispatcher to correctly replicate duplicate reg… #14018
Conversation
@ettec One point of feedback (which shouldn't block this) is that I wonder if we could increase our overall coverage by mocking out the external peer wrapper, rather than just the dispatcher? That would allow us to bring the registrysyncer, launcher and dispatcher in scope and would have eliminated this bug. |
The registrysyncer and launcher are already used in the test, unless you mean something else by bring them in scope? |
@ettec Nope, just a brainfart on my end: I meant bringing the dispatcher entirely within scope -- so effectively the only thing out of scope would be the actual networking (+ OCR itself) |
…istration behaviour
87b1bd6
to
631efb1
Compare
looks like it could work, a brief look at the p2p wrapper usage in the dispatcher would seem to suggest it would be relatively straightforward |
Quality Gate passedIssues Measures |
fix keystone e2e test dispatcher to correctly replicate duplicate registration behaviour. The syncer relies on the dispatcher returning a
ErrReceiverExists
error code to prevent duplicate creation of a capability. The mocked dispatcher used for the e2e test was not replicating this behaviour resulting in duplicate registration of trigger publisher.