mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-24 16:41:35 -04:00
rename file name in test steps
This commit is contained in:
@@ -8,9 +8,9 @@ Feature: check activities
|
||||
|
||||
@issue-9712
|
||||
Scenario: check activities after uploading a file and a folder
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile.txt"
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
When user "Alice" lists the activities for file "textfile0.txt" of space "Personal" using the Graph API
|
||||
When user "Alice" lists the activities for file "textfile.txt" of space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
@@ -50,7 +50,7 @@ Feature: check activities
|
||||
"pattern": "%file_id_pattern%"
|
||||
},
|
||||
"name": {
|
||||
"const": "textfile0.txt"
|
||||
"const": "textfile.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -193,9 +193,9 @@ Feature: check activities
|
||||
|
||||
@issue-9712
|
||||
Scenario: check activities after deleting a file and a folder
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile.txt"
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has deleted file "textfile0.txt"
|
||||
And user "Alice" has deleted file "textfile.txt"
|
||||
And user "Alice" has deleted folder "FOLDER"
|
||||
When user "Alice" lists the activities of space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -232,7 +232,7 @@ Feature: check activities
|
||||
"required": ["id", "name"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"const": "textfile0.txt"
|
||||
"const": "textfile.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -300,7 +300,7 @@ Feature: check activities
|
||||
"pattern": "%file_id_pattern%"
|
||||
},
|
||||
"name": {
|
||||
"const": "textfile0.txt"
|
||||
"const": "textfile.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -429,12 +429,12 @@ Feature: check activities
|
||||
|
||||
@issue-9712
|
||||
Scenario: check move activity for a file and a folder
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile.txt"
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has created folder "/New Folder"
|
||||
And user "Alice" has moved file "textfile0.txt" to "New Folder/textfile0.txt"
|
||||
And user "Alice" has moved file "textfile.txt" to "New Folder/textfile.txt"
|
||||
And user "Alice" has moved folder "FOLDER" to "New Folder/FOLDER"
|
||||
When user "Alice" lists the activities for file "New Folder/textfile0.txt" of space "Personal" using the Graph API
|
||||
When user "Alice" lists the activities for file "New Folder/textfile.txt" of space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
@@ -492,7 +492,7 @@ Feature: check activities
|
||||
"pattern": "^%file_id_pattern%$"
|
||||
},
|
||||
"name": {
|
||||
"const": "textfile0.txt"
|
||||
"const": "textfile.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -657,9 +657,9 @@ Feature: check activities
|
||||
|
||||
@issue-9712
|
||||
Scenario: check rename activity for a file and a folder
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile.txt"
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has moved file "textfile0.txt" to "renamed.txt"
|
||||
And user "Alice" has moved file "textfile.txt" to "renamed.txt"
|
||||
And user "Alice" has moved folder "/FOLDER" to "RENAMED FOLDER"
|
||||
When user "Alice" lists the activities for file "renamed.txt" of space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -718,7 +718,7 @@ Feature: check activities
|
||||
"const": ""
|
||||
},
|
||||
"name": {
|
||||
"const": "textfile0.txt"
|
||||
"const": "textfile.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -885,10 +885,10 @@ Feature: check activities
|
||||
Given user "Alice" has created folder "/New Folder"
|
||||
And user "Alice" has created folder "/New Folder/Folder"
|
||||
And user "Alice" has created folder "/New Folder/Sub Folder"
|
||||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/textfile0.txt"
|
||||
And user "Alice" has moved file "/New Folder/textfile0.txt" to "/New Folder/Sub Folder/textfile0.txt"
|
||||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/textfile.txt"
|
||||
And user "Alice" has moved file "/New Folder/textfile.txt" to "/New Folder/Sub Folder/textfile.txt"
|
||||
And user "Alice" has moved folder "/New Folder/Folder" to "/New Folder/Sub Folder/Folder"
|
||||
And user "Alice" has moved file "/New Folder/Sub Folder/textfile0.txt" to "/New Folder/Sub Folder/renamed.txt"
|
||||
And user "Alice" has moved file "/New Folder/Sub Folder/textfile.txt" to "/New Folder/Sub Folder/renamed.txt"
|
||||
And user "Alice" has moved folder "/New Folder/Sub Folder/Folder" to "/New Folder/Sub Folder/Renamed Folder"
|
||||
And user "Alice" has deleted file "/New Folder/Sub Folder/renamed.txt"
|
||||
And user "Alice" has deleted folder "/New Folder/Sub Folder/Renamed Folder"
|
||||
@@ -1017,7 +1017,7 @@ Feature: check activities
|
||||
"required": ["id", "name"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"const": "textfile0.txt"
|
||||
"const": "textfile.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1047,7 +1047,7 @@ Feature: check activities
|
||||
"required": ["id", "name"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"const": "textfile0.txt"
|
||||
"const": "textfile.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1107,7 +1107,7 @@ Feature: check activities
|
||||
"required": ["id", "name"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"const": "textfile0.txt"
|
||||
"const": "textfile.txt"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1331,7 +1331,7 @@ Feature: check activities
|
||||
Scenario: check activity with depth filter
|
||||
Given user "Alice" has created folder "/New Folder"
|
||||
And user "Alice" has created folder "/New Folder/Sub Folder"
|
||||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/Sub Folder/textfile0.txt"
|
||||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/Sub Folder/textfile.txt"
|
||||
When user "Alice" lists the activities for folder "New Folder" of space "Personal" with depth "1" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
@@ -1426,7 +1426,7 @@ Feature: check activities
|
||||
Scenario: check activity with limit filter
|
||||
Given user "Alice" has created folder "/New Folder"
|
||||
And user "Alice" has created folder "/New Folder/Sub Folder"
|
||||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/Sub Folder/textfile0.txt"
|
||||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/New Folder/Sub Folder/textfile.txt"
|
||||
When user "Alice" lists the activities for folder "New Folder" of space "Personal" with limit "2" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
|
||||
Reference in New Issue
Block a user