test(refactor): change the structure of destinations to make it more readable
This commit is contained in:
@@ -12,7 +12,7 @@ Feature: check activities
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file" to "textfile.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has created folder "newFolder"
|
||||
And user "Alice" has copied file "textfile.txt" into "newFolder" inside space "Personal" using file-id "<<FILEID>>"
|
||||
And user "Alice" has copied file with id "<<FILEID>>" as "textfile.txt" into folder "newFolder" inside space "Personal"
|
||||
When user "Alice" lists the activities of folder "newFolder" from space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
@@ -249,7 +249,7 @@ Feature: check activities
|
||||
Scenario: check rename activity
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file" to "textfile.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has renamed file "textfile.txt" into "renamed.txt" inside space "Personal" using file-id "<<FILEID>>"
|
||||
And user "Alice" has renamed file with id "<<FILEID>>" to "renamed.txt" inside space "Personal"
|
||||
When user "Alice" lists the activities of file "renamed.txt" from space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
@@ -361,11 +361,11 @@ Feature: check activities
|
||||
"""
|
||||
|
||||
|
||||
Scenario: check move activity
|
||||
Scenario: check activities of destination file and folder after moving a file using file-id
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file" to "textfile.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has created folder "New Folder"
|
||||
And user "Alice" has moved file "textfile.txt" into "New Folder/textfile.txt" inside space "Personal" using file-id "<<FILEID>>"
|
||||
And user "Alice" has moved file with id "<<FILEID>>" as "textfile.txt" into folder "New Folder" inside space "Personal"
|
||||
When user "Alice" lists the activities of file "New Folder/textfile.txt" from space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
@@ -472,14 +472,7 @@ Feature: check activities
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
|
||||
Scenario: check activities of destination folder after moving a file into it using file-id
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file" to "textfile.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has created folder "FOLDER"
|
||||
And user "Alice" has moved file "textfile.txt" into "FOLDER/textfile.txt" inside space "Personal" using file-id "<<FILEID>>"
|
||||
When user "Alice" lists the activities of file "FOLDER" from space "Personal" using the Graph API
|
||||
When user "Alice" lists the activities of folder "New Folder" from space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
@@ -504,6 +497,21 @@ Feature: check activities
|
||||
"properties": {
|
||||
"message": {
|
||||
"const": "{user} added {resource} to {folder}"
|
||||
},
|
||||
"variables": {
|
||||
"type": "object",
|
||||
"required": ["resource"],
|
||||
"properties": {
|
||||
"resource": {
|
||||
"type": "object",
|
||||
"required": ["name"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"const": "New Folder"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -533,7 +541,7 @@ Feature: check activities
|
||||
"required": ["name"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"const": "FOLDER"
|
||||
"const": "New Folder"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -587,11 +595,11 @@ Feature: check activities
|
||||
"""
|
||||
|
||||
|
||||
Scenario: check activities of destinaton file and folder after moving a 0 byte file using file-id
|
||||
Scenario: check activities of destination file and folder after moving a 0 byte file using file-id
|
||||
Given user "Alice" has uploaded file "filesForUpload/zerobyte.txt" to "zerobyte.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has created folder "FOLDER"
|
||||
And user "Alice" has moved file "zerobyte.txt" into "FOLDER/zerobyte.txt" inside space "Personal" using file-id "<<FILEID>>"
|
||||
And user "Alice" has moved file with id "<<FILEID>>" as "zerobyte.txt" into folder "FOLDER" inside space "Personal"
|
||||
When user "Alice" lists the activities of file "FOLDER/zerobyte.txt" from space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
@@ -698,7 +706,7 @@ Feature: check activities
|
||||
}
|
||||
}
|
||||
"""
|
||||
When user "Alice" lists the activities of file "FOLDER" from space "Personal" using the Graph API
|
||||
When user "Alice" lists the activities of folder "FOLDER" from space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
@@ -806,11 +814,11 @@ Feature: check activities
|
||||
"""
|
||||
|
||||
|
||||
Scenario: check activities of destinaton file and folder after moving a file by renaming destination file using file-id
|
||||
Scenario: check activities of destination file and folder after moving a file by renaming destination file using file-id
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file" to "textfile.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has moved file "textfile.txt" into "FOLDER/renamed.txt" inside space "Personal" using file-id "<<FILEID>>"
|
||||
And user "Alice" has moved file with id "<<FILEID>>" as "renamed.txt" into folder "FOLDER" inside space "Personal"
|
||||
When user "Alice" lists the activities of file "FOLDER/renamed.txt" from space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
@@ -926,7 +934,7 @@ Feature: check activities
|
||||
}
|
||||
}
|
||||
"""
|
||||
When user "Alice" lists the activities of file "FOLDER" from space "Personal" using the Graph API
|
||||
When user "Alice" lists the activities of folder "FOLDER" from space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
@@ -1043,11 +1051,11 @@ Feature: check activities
|
||||
"""
|
||||
|
||||
|
||||
Scenario: check activities of destinaton file and folder after moving a 0 byte file by renaming destination file using file-id
|
||||
Scenario: check activities of destination file and folder after moving a 0 byte file by renaming destination file using file-id
|
||||
Given user "Alice" has uploaded file "filesForUpload/zerobyte.txt" to "/zerobyte.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has moved file "zerobye.txt" into "FOLDER/renamed.txt" inside space "Personal" using file-id "<<FILEID>>"
|
||||
And user "Alice" has moved file with id "<<FILEID>>" as "renamed.txt" into folder "FOLDER" inside space "Personal"
|
||||
When user "Alice" lists the activities of file "FOLDER/renamed.txt" from space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
@@ -1163,7 +1171,7 @@ Feature: check activities
|
||||
}
|
||||
}
|
||||
"""
|
||||
When user "Alice" lists the activities of file "FOLDER" from space "Personal" using the Graph API
|
||||
When user "Alice" lists the activities of folder "FOLDER" from space "Personal" 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