Skip to content

Commit

Permalink
add responses
Browse files Browse the repository at this point in the history
  • Loading branch information
rsarm committed Oct 24, 2024
1 parent cf083d7 commit 1d72a32
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/v2/responses/chmod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"status_code": 200,
"response": {
"output": {
"name": "/home/test1/xxx",
"type": "-",
"linkTarget": null,
"user": "test1",
"group": "users",
"permissions": "rwxrwxrwx",
"lastModified": "2024-10-24T15:00:01",
"size": "0"
}
}
14 changes: 14 additions & 0 deletions tests/v2/responses/chown.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"status_code": 200,
"response": {
"output": {
"name": "/home/test1/xxx",
"type": "-",
"linkTarget": null,
"user": "test1",
"group": "users",
"permissions": "rwxrwxrwx",
"lastModified": "2024-10-24T15:00:01",
"size": "0"
}
}
10 changes: 10 additions & 0 deletions tests/v2/responses/chown_not_permitted.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"status_code": 403,
"response": {
"errorType": "error",
"message": "chown: changing ownership of '/home/test1/xxx': Operation not permitted",
"data": null,
"user": "test1",
"authHeader": "Bearer"
}
}

0 comments on commit 1d72a32

Please sign in to comment.