Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
553883a1
Unverified
Commit
553883a1
authored
8 years ago
by
Vincent Petry
Committed by
Lukas Reschke
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add integration test for creating folder with colon
Signed-off-by:
Lukas Reschke
<
lukas@statuscode.ch
>
parent
b0c1460a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/integration/features/bootstrap/WebDav.php
+9
-0
9 additions, 0 deletions
build/integration/features/bootstrap/WebDav.php
build/integration/features/webdav-related.feature
+16
-0
16 additions, 0 deletions
build/integration/features/webdav-related.feature
with
25 additions
and
0 deletions
build/integration/features/bootstrap/WebDav.php
+
9
−
0
View file @
553883a1
...
...
@@ -31,6 +31,7 @@
use
GuzzleHttp\Client
as
GClient
;
use
GuzzleHttp\Message\ResponseInterface
;
use
Sabre\DAV\Client
as
SClient
;
use
Sabre\DAV\Xml\Property\ResourceType
;
require
__DIR__
.
'/../../vendor/autoload.php'
;
...
...
@@ -328,6 +329,14 @@ trait WebDav {
}
$value
=
$keys
[
$key
];
if
(
$value
instanceof
ResourceType
)
{
$value
=
$value
->
getValue
();
if
(
empty
(
$value
))
{
$value
=
''
;
}
else
{
$value
=
$value
[
0
];
}
}
if
(
$value
!=
$expectedValue
)
{
throw
new
\Exception
(
"Property
\"
$key
\"
found with value
\"
$value
\"
, expected
\"
$expectedValue
\"
"
);
}
...
...
This diff is collapsed.
Click to expand it.
build/integration/features/webdav-related.feature
+
16
−
0
View file @
553883a1
...
...
@@ -447,3 +447,19 @@ Feature: webdav-related
And
As an
"user1"
When
User
"user1"
deletes file
"/testfolder/asdf.txt"
Then
the HTTP status code should be
"204"
Scenario
:
Creating a folder
Given
using old dav path
And
user
"user0"
exists
And
user
"user0"
created a folder
"/test_folder"
When
as
"user0"
gets properties of folder
"/test_folder"
with
|
{DAV:}resourcetype
|
Then
the
single
response
should
contain
a
property
"{DAV:}resourcetype"
with
value
"{DAV:}collection"
Scenario
:
Creating a folder with special chars
Given
using old dav path
And
user
"user0"
exists
And user "user0" created a folder "/test_folder
:
5"
When as "user0" gets properties of folder "/test_folder
:
5"
with
|
{DAV:}resourcetype
|
Then
the
single
response
should
contain
a
property
"{DAV:}resourcetype"
with
value
"{DAV:}collection"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment