Skip to content

Commit

Permalink
check server log with random uuidv4 on request id
Browse files Browse the repository at this point in the history
  • Loading branch information
PrajwolAmatya committed Aug 22, 2023
1 parent 8c6fcfc commit 66d85db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/TestHelpers/WebDavHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public static function propfind(
throw new InvalidArgumentException('Invalid depth value ' . $folderDepth);
}
$headers['Depth'] = $folderDepth;
// $headers['X-Request-Id'] = WebDavHelper::generateUUIDv4();
$headers['X-Request-Id'] = WebDavHelper::generateUUIDv4();
return self::makeDavRequest(
$baseUrl,
$user,
Expand Down
17 changes: 8 additions & 9 deletions tests/acceptance/features/apiContract/propfind.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Feature: Propfind test
Given user "Alice" has uploaded a file inside space "new-space" with content "some content" to "testfile.txt"
When user "Alice" sends PROPFIND request to space "new-space" using the WebDAV API
Then the HTTP status code should be "207"
# And the following headers should match these regular expressions
# | X-Request-Id | /^[a-f0-9!\-]{36}$/ |
And the following headers should match these regular expressions
| X-Request-Id | /^[a-f0-9!\-]{36}$/ |
And the "PROPFIND" response should contain a space "new-space" with these key and value pairs:
| key | value |
| oc:fileid | UUIDof:new-space |
Expand All @@ -28,7 +28,7 @@ Feature: Propfind test
| oc:size | 12 |


# with $headers['X-Request-Id'] = WebDavHelper::generateUUIDv4(); and without SEND_SCENARIO_LINE_REFERENCES
# with $headers['X-Request-Id'] = WebDavHelper::generateUUIDv4();

# {"level":"error","service":"ocdav","name":"com.owncloud.web.ocdav","traceid":"00000000000000000000000000000000",
# "request-id":"ba0d8725-d284-4fdf-9baf-42c6fb2f1ad2","spaceid":"88d58968-6d97-4417-adc9-1f3c6246ce2d$b7b12f85-e0b7-4f28-ab5e-9214807eb635",
Expand All @@ -38,7 +38,7 @@ Feature: Propfind test



# without $headers['X-Request-Id'] = WebDavHelper::generateUUIDv4(); and SEND_SCENARIO_LINE_REFERENCES=true
# SEND_SCENARIO_LINE_REFERENCES=true

# {"level":"error","service":"ocdav","name":"com.owncloud.web.ocdav","traceid":"00000000000000000000000000000000",
# "request-id":"prajwol-OptiPlex-3050/Ngr9fSHant-000013","spaceid":"88d58968-6d97-4417-adc9-1f3c6246ce2d$ab62e350-0433-4126-9c3e-7eb20c619c7a",
Expand All @@ -48,13 +48,12 @@ Feature: Propfind test



# without $headers['X-Request-Id'] = WebDavHelper::generateUUIDv4(); and without SEND_SCENARIO_LINE_REFERENCES
# CI

# {"level":"error","service":"ocdav","name":"com.owncloud.web.ocdav","traceid":"00000000000000000000000000000000",
# "request-id":"prajwol-OptiPlex-3050/m0hRXupLJd-000035","spaceid":"88d58968-6d97-4417-adc9-1f3c6246ce2d$093cbd8e-7923-4bad-ad73-31e74f902c31",
# "path":"/",
# "status":{"code":15,
# "message":"error getting upload id: Decomposedfs: error walking path: Decomposedfs: error walking path: decomposedfs: Wrap: readlink error: readlink /home/prajwol/.ocis/storage/users/spaces/09/3cbd8e-7923-4bad-ad73-31e74f902c31/nodes/09/3c/bd/8e/-7923-4bad-ad73-31e74f902c31: invalid argument","trace":"d2da1274b9074f435d871f3db4e9fe7f"},"code":500,"time":"2023-08-22T10:09:05.671640026+05:45","message":"Internal Server Error"}
# "request-id":"6bef155aaffa/W9oFn9pC22-000015","spaceid":"034cbd9e-ee55-465a-98e6-48f19b896a2d$eae011bc-5bc2-4374-8a5b-944264707004",
# "path":"/","status":{"code":15,
# "message":"error getting upload id: Decomposedfs: error walking path: Decomposedfs: error walking path: decomposedfs: Wrap: readlink error: readlink /root/.ocis/storage/users/spaces/ea/e011bc-5bc2-4374-8a5b-944264707004/nodes/ea/e0/11/bc/-5bc2-4374-8a5b-944264707004: invalid argument","trace":"00000000000000000000000000000000"},"code":500,"time":"2023-08-22T05:07:53.551800241Z","message":"Internal Server Error"}



Expand Down

0 comments on commit 66d85db

Please sign in to comment.