Skip to content

Conversation

xbill82
Copy link
Contributor

@xbill82 xbill82 commented May 25, 2016

Followed the guidelines in https://confluence.kaliop.net/display/LABS/2016-05-24+-+Client-side+Policies
Just dropped in @ballinette's code snippet and all the tests are green :)

Please let me know if you estimate the tests are exhaustive: I surely forgot some edge cases.

Question: is the filename methods.test.js ok? I was wondering if I should put it into the userMethods.test.js.

* @param {string} action - The action to perform.
* @param {string} index - (optional) The name of index to perform the action onto.
* @param {string} collection - (optional) The name of the collection to perform the action onto.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpicking: missing @returns jsdoc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@benoitvidis
Copy link
Contributor

+1

@xbill82
Copy link
Contributor Author

xbill82 commented May 27, 2016

Hmmm... I'm wondering whether it wouldn't be better to move the tests into userMethods.test.js...

@scottinet
Copy link
Contributor

No I think your initial approach is the right one: the KuzzleSecurity tests have been split into users, profiles and roles to make things separated and clean, and the new isActionAllowed doesn't fit in any of these files.

@scottinet
Copy link
Contributor

+1

@scottinet scottinet merged commit fdc4f51 into develop May 30, 2016
@scottinet scottinet deleted the KUZ-480-isActionAllowed branch May 30, 2016 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants