Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Add integration tests for identities #92

Merged
merged 5 commits into from
Dec 15, 2016
Merged

Conversation

mennopruijssers
Copy link
Contributor

  • Add support to specify the identity of the sut (required new version of testpop)
  • Extracted full hashring mapping to it's own method for reuse
  • add identity tests

@mennopruijssers mennopruijssers self-assigned this Dec 14, 2016
return dsl.assertLookup(t, tc, replicaPoint, hostPort);
});
});
return dsl.assertFullHashring(t, tc);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is extracted so it can be re-used by the identity tests.

@@ -428,7 +428,13 @@ function callEndpoint(t, tc, endpoint, body, validateEvent) {
*/
function assertLookup(t, tc, key, expected) {
return [
callEndpoint(t, tc, '/admin/lookup', {key: key}),
callEndpoint(t, tc, '/admin/lookup', {key: key}, function validate(body) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

By adding the validate-callback we fail earlier; without it we fail by timeout.

Copy link
Contributor

@thanodnl thanodnl left a comment

Choose a reason for hiding this comment

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

🎉

@mennopruijssers mennopruijssers changed the base branch from feature/allow-initial-labels to master December 15, 2016 15:13
@mennopruijssers mennopruijssers merged commit 827f72c into master Dec 15, 2016
@mennopruijssers mennopruijssers deleted the feature/identity branch December 15, 2016 15:21
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.

2 participants