mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-13 11:57:33 -04:00
change name of the space(uniq name)
This commit is contained in:
@@ -12,10 +12,10 @@ Feature: Upload files into a space
|
||||
And the administrator has given "Alice" the role "Admin" using the settings api
|
||||
|
||||
Scenario: Alice creates a folder via the Graph api in space, she expects a 201 code and she checks that folder exists
|
||||
Given user "Alice" has created a space "Project Venus" of type "project" with quota "2000"
|
||||
When user "Alice" creates a folder "mainFolder" in space "Project Venus" using the WebDav Api
|
||||
Given user "Alice" has created a space "Project Ceres" of type "project" with quota "2000"
|
||||
When user "Alice" creates a folder "mainFolder" in space "Project Ceres" using the WebDav Api
|
||||
Then the HTTP status code should be "201"
|
||||
And for user "Alice" the space "Project Venus" should contain these entries:
|
||||
And for user "Alice" the space "Project Ceres" should contain these entries:
|
||||
| mainFolder |
|
||||
|
||||
Scenario: Bob creates a folder via the Graph api in a space, he expects a 404 code and Alice checks that this folder does not exist
|
||||
|
||||
@@ -179,7 +179,7 @@ class SpacesContext implements Context {
|
||||
|
||||
/**
|
||||
* The method finds available spaces to the user and returns the space by spaceName
|
||||
*
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $spaceName
|
||||
*
|
||||
@@ -890,7 +890,7 @@ class SpacesContext implements Context {
|
||||
}
|
||||
|
||||
/**
|
||||
* @When /^user "([^"]*)" uploads a file inside space "([^"]*)" owned by the user "([^"]*)" with content "([^"]*)" to "([^"]*)" using the WebDAV API$/
|
||||
* @When /^user "([^"]*)" uploads a file inside space "([^"]*)" owned by the user "([^"]*)" with content "([^"]*)" to "([^"]*)" using the WebDAV API$/
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $spaceName
|
||||
@@ -1073,7 +1073,7 @@ class SpacesContext implements Context {
|
||||
)
|
||||
);
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(
|
||||
201,
|
||||
201,
|
||||
"Expected response status code should be 201 (Created)"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user