Skip to content
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

Test(acl): Add a test case to verify identical name for group and user work with acl #8454

Merged
merged 3 commits into from
Nov 29, 2022

Conversation

all-seeing-code
Copy link
Contributor

@all-seeing-code all-seeing-code commented Nov 24, 2022

Description

Adds a test case for the fix implemented in #7978.

For the test case we need to create a user and the group with the same name. Dgraph stores ACL information in the predicate dgraph.xid which is shared between group and user information. The test prevents a regression in the case where the names of the group and user are identical.

Test

TestQueriesWithUserAndGroupOfSameName

@github-actions github-actions bot added the area/enterprise Related to proprietary features label Nov 24, 2022
@coveralls
Copy link

coveralls commented Nov 24, 2022

Coverage Status

Coverage decreased (-0.004%) to 37.187% when pulling 8dbedcb on anurag/test-7978 into 409d30c on main.

@all-seeing-code all-seeing-code marked this pull request as ready for review November 28, 2022 11:02
@all-seeing-code all-seeing-code changed the title fix(acl): filter out the results based on type Add a test case to ver… Test(acl): Add a test case to verify identical name for group and user work with acl Nov 28, 2022
@nswamy nswamy self-requested a review November 28, 2022 16:04
Copy link

@nswamy nswamy left a comment

Choose a reason for hiding this comment

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

Thank you for adding the test
LGTM

@all-seeing-code all-seeing-code merged commit 38f2829 into main Nov 29, 2022
@all-seeing-code all-seeing-code deleted the anurag/test-7978 branch November 29, 2022 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/enterprise Related to proprietary features
Development

Successfully merging this pull request may close these issues.

4 participants