Skip to content

Commit 76e9b76

Browse files
authored
Merge pull request #17 from ing-bank/add-test-role
Add test role
2 parents d3a5559 + 7f05a9a commit 76e9b76

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

rokku-dev-apache-ranger/resources/policy/ranger-policy-shared-s3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"users": [
3030
"{USER}"
3131
],
32-
"groups": [],
32+
"groups": [ "role_test" ],
3333
"conditions": [],
3434
"delegateAdmin": false
3535
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "role_test",
3+
"description": "",
4+
"isVisible": 1
5+
}

rokku-dev-apache-ranger/setup-ranger.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ if [ "$start_timeout_exceeded" = "false" ]; then
2121
# Setup ranger users/groups
2222
printf "Creating user and group definition... \n"
2323
curl -u admin:admin -d "@/tmp/resources/user-group/testgroup.json" -X POST -H "Accept: application/json" -H "Content-Type: application/json" http://localhost:6080/service/xusers/secure/groups
24+
curl -u admin:admin -d "@/tmp/resources/user-group/testrole.json" -X POST -H "Accept: application/json" -H "Content-Type: application/json" http://localhost:6080/service/xusers/secure/groups
2425
curl -u admin:admin -d "@/tmp/resources/user-group/testuser.json" -X POST -H "Accept: application/json" -H "Content-Type: application/json" http://localhost:6080/service/xusers/secure/users
2526
printf "\nUser and group created\n"
2627

0 commit comments

Comments
 (0)