change name of the space(uniq name)

This commit is contained in:
ScharfViktor
2021-12-02 10:05:28 +01:00
parent 216a62cf2e
commit be1c190a56
2 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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)"
);
}