[full-ci] [tests-only] Added tests for enabling share sync with empty resource id (#8963)
* Added tests for enabling share sync with empty resource id * Addressed reviews
This commit is contained in:
@@ -300,7 +300,8 @@ Feature: enable or disable sync of incoming shares
|
||||
|
||||
@issue-8724
|
||||
Scenario: try to enable share sync of a non-existent resource
|
||||
When user "Brian" tries to enable share sync of a non-existent resource using the Graph API
|
||||
Given user "Brian" has disabled the auto-sync share
|
||||
When user "Brian" tries to enable share sync of a resource "nonexistent" using the Graph API
|
||||
Then the HTTP status code should be "400"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
@@ -334,3 +335,41 @@ Feature: enable or disable sync of incoming shares
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
|
||||
Scenario: try to enable share sync with empty resource id
|
||||
Given user "Brian" has disabled the auto-sync share
|
||||
When user "Brian" tries to enable share sync of a resource "" using the Graph API
|
||||
Then the HTTP status code should be "400"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["error"],
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"code",
|
||||
"innererror",
|
||||
"message"
|
||||
],
|
||||
"properties": {
|
||||
"code" : {
|
||||
"const": "invalidRequest"
|
||||
},
|
||||
"innererror" : {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"date",
|
||||
"request-id"
|
||||
]
|
||||
},
|
||||
"message" : {
|
||||
"const": "invalid id"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user