From 1d72a3296a6c448101f6a2edd1dfa9273f0a8e25 Mon Sep 17 00:00:00 2001 From: Rafael Sarmiento Date: Thu, 24 Oct 2024 17:41:58 +0200 Subject: [PATCH] add responses --- tests/v2/responses/chmod.json | 14 ++++++++++++++ tests/v2/responses/chown.json | 14 ++++++++++++++ tests/v2/responses/chown_not_permitted.json | 10 ++++++++++ 3 files changed, 38 insertions(+) create mode 100644 tests/v2/responses/chmod.json create mode 100644 tests/v2/responses/chown.json create mode 100644 tests/v2/responses/chown_not_permitted.json diff --git a/tests/v2/responses/chmod.json b/tests/v2/responses/chmod.json new file mode 100644 index 0000000..569f4d3 --- /dev/null +++ b/tests/v2/responses/chmod.json @@ -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" + } +} diff --git a/tests/v2/responses/chown.json b/tests/v2/responses/chown.json new file mode 100644 index 0000000..9ee0eb6 --- /dev/null +++ b/tests/v2/responses/chown.json @@ -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" + } +} diff --git a/tests/v2/responses/chown_not_permitted.json b/tests/v2/responses/chown_not_permitted.json new file mode 100644 index 0000000..adf8130 --- /dev/null +++ b/tests/v2/responses/chown_not_permitted.json @@ -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" + } +}