Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
06c66639
Commit
06c66639
authored
Mar 20, 2017
by
Vincent Petry
Committed by
GitHub
Mar 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #27421 from owncloud/inttest-reduce401
Use authType BASIC for Sabre client in integration tests
parents
ada8879e
cc97923a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tests/integration/features/bootstrap/WebDav.php
tests/integration/features/bootstrap/WebDav.php
+3
-2
No files found.
tests/integration/features/bootstrap/WebDav.php
View file @
06c66639
...
...
@@ -141,7 +141,6 @@ trait WebDav {
public
function
downloadPublicFileWithRange
(
$range
){
$token
=
$this
->
lastShareData
->
data
->
token
;
$fullUrl
=
substr
(
$this
->
baseUrl
,
0
,
-
4
)
.
"public.php/webdav"
;
$headers
[
'Range'
]
=
$range
;
$client
=
new
GClient
();
$options
=
[];
...
...
@@ -160,7 +159,6 @@ trait WebDav {
public
function
downloadPublicFileInsideAFolderWithRange
(
$path
,
$range
){
$token
=
$this
->
lastShareData
->
data
->
token
;
$fullUrl
=
substr
(
$this
->
baseUrl
,
0
,
-
4
)
.
"public.php/webdav"
.
"
$path
"
;
$headers
[
'Range'
]
=
$range
;
$client
=
new
GClient
();
$options
=
[];
...
...
@@ -429,6 +427,7 @@ trait WebDav {
}
else
{
$settings
[
'password'
]
=
$this
->
regularUser
;
}
$settings
[
'authType'
]
=
SClient
::
AUTH_BASIC
;
return
new
SClient
(
$settings
);
}
...
...
@@ -686,6 +685,8 @@ trait WebDav {
}
else
{
$settings
[
'password'
]
=
$this
->
regularUser
;
}
$settings
[
'authType'
]
=
SClient
::
AUTH_BASIC
;
$client
=
new
SClient
(
$settings
);
if
(
!
$properties
)
{
$properties
=
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment