refactor test steps
This commit is contained in:
@@ -9,7 +9,7 @@ Feature: check activities
|
||||
@issue-9712
|
||||
Scenario: check activities after uploading a file
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
|
||||
When user "Alice" checks the activities for file "textfile0.txt" in space "Personal" using the Graph API
|
||||
When user "Alice" lists the activities for file "textfile0.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
|
||||
"""
|
||||
@@ -103,8 +103,8 @@ Feature: check activities
|
||||
@issue-9712
|
||||
Scenario: check activities after deleting a file
|
||||
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
|
||||
When user "Alice" deletes file "/textfile0.txt" using the WebDAV API
|
||||
And user "Alice" lists the activities of space "Personal" using the Graph API
|
||||
And user "Alice" has deleted file "textfile0.txt"
|
||||
When user "Alice" lists the activities of space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
@@ -129,27 +129,8 @@ Feature: check activities
|
||||
"properties": {
|
||||
"message": {
|
||||
"const": "{user} added {resource} to {space}"
|
||||
},
|
||||
"variables": {
|
||||
"type": "object",
|
||||
"required": ["resource","space","user"],
|
||||
"properties": {
|
||||
"resource": {
|
||||
"type": "object",
|
||||
"required": ["id", "name"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"const": "textfile0.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"times": {
|
||||
"type": "object",
|
||||
"required": ["recordedTime"]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -237,8 +218,8 @@ Feature: check activities
|
||||
@issue-9712
|
||||
Scenario: check activities after deleting a folder
|
||||
Given user "Alice" has created folder "/FOLDER"
|
||||
When user "Alice" deletes folder "/FOLDER" using the WebDAV API
|
||||
And user "Alice" lists the activities of space "Personal" using the Graph API
|
||||
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"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
@@ -263,27 +244,8 @@ Feature: check activities
|
||||
"properties": {
|
||||
"message": {
|
||||
"const": "{user} added {resource} to {space}"
|
||||
},
|
||||
"variables": {
|
||||
"type": "object",
|
||||
"required": ["resource","space","user"],
|
||||
"properties": {
|
||||
"resource": {
|
||||
"type": "object",
|
||||
"required": ["id", "name"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"const": "FOLDER"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"times": {
|
||||
"type": "object",
|
||||
"required": ["recordedTime"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user