Skip to content

Commit 6729300

Browse files
Updated test.sh script
1 parent 0cc282f commit 6729300

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

test.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
# Step 1: Login to get the token
44
login_response=$(curl -s -X POST http://localhost:8080/login \
55
-H "Content-Type: application/json" \
6-
-d '{"username": "Jessica Pearson", "password": "iamthebest"}')
6+
-d '{"username": "Gregory House", "password": "idontlikepeople"}')
7+
8+
echo "$login_response"
9+
10+
sleep 1
711

812
# Step 2: Extract token using jq (requires jq to be installed)
913
token=$(echo "$login_response" | jq -r '.token')
@@ -24,14 +28,12 @@ while true; do
2428
-H "Content-Type: application/json" \
2529
-d '{
2630
"operation": "setfacl",
27-
"targetPath": "/var/www/html",
28-
"entries": [
29-
{
31+
"targetPath": "/mnt/beegfs-1/home/maverick/linux-acl-management-aclapi/README.md",
32+
"entries": {
3033
"entityType": "user",
31-
"entity": "alice",
32-
"permissions": "rwx",
33-
"action": "add"
34+
"entity": "tommy",
35+
"permissions": "rw-",
36+
"action": "modify"
3437
}
35-
]
3638
}'
3739
done

0 commit comments

Comments
 (0)