#27854 non existing folder skeletondirectory#29250
#27854 non existing folder skeletondirectory#29250Gandolf90 wants to merge 9 commits intoowncloud:masterfrom Gandolf90:27854-non-existing-folder-skeletondirectory
Conversation
adding throw exception if config false adding new testcase to check if config has incorrekt skeletondirectory
incorrect test-name
DeepDiver1975
left a comment
There was a problem hiding this comment.
Thanks a lot for your contribution!
Very welcome!
Please make sure to squash our commits. THX
lib/private/legacy/util.php
Outdated
| $skeletonDirectory = \OCP\Config::getSystemValue('skeletondirectory', \OC::$SERVERROOT . '/core/skeleton'); | ||
|
|
||
| if(!is_dir($skeletonDirectory)) { | ||
| throw new OC\HintException('Can not Access to Skeleton Folder, check for right Path in config.php'); |
There was a problem hiding this comment.
- please add the value of $skeletonDirectory
- test should read as
throw new OC\HintException("The skeleton folder '$skeletonFolder' is not accessible.');
tests/lib/UtilTest.php
Outdated
| } | ||
|
|
||
| public function testCopySkeletonDirectory() { | ||
| $this->expectException(HintException::class); |
There was a problem hiding this comment.
please use phpunit annotation - see the phpunit docs
|
Please also sign the CLA - see the comment above |
added new output added test annotation & check for output
|
Please reference pull requests to issues like this #27854 |
tests/lib/UtilTest.php
Outdated
| public function testCopySkeletonDirectory() { | ||
| $notExistingDirectory = '/not/existing/Directory'; | ||
|
|
||
| $this->expectException(HintException::class); |
There was a problem hiding this comment.
You can remove this line if you use the annotation see:
https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.expectedExceptionMessage
lib/private/legacy/util.php
Outdated
|
|
||
| $skeletonDirectory = \OCP\Config::getSystemValue('skeletondirectory', \OC::$SERVERROOT . '/core/skeleton'); | ||
|
|
||
| if(!is_dir($skeletonDirectory)) { |
There was a problem hiding this comment.
Missing space between if and opening parenthesis => if ( )
|
@Gandolf90 Some tests are failing, please fix. See Jenkins for details. |
|
@IljaN how can I test the failed Selenium/Travis tests? |
|
@Gandolf90 "make test" |
|
@IljaN testet local with "make test" and jenkins tests passed |
|
@Gandolf90 Don`t worry our CI is like a diva sometimes :) |
|
@Gandolf90 Selenium/Travis fails because this is a PR from a forked copy of the repo. So Travis does not provide the job with the authentication keys to the ownCloud SauceLabs account. There are 2 options:
|
|
@IljaN or @DeepDiver1975 can you create a temporary access to make the pull request ? |
|
@phil-davis thanks for Hint |
|
@Gandolf90 Why close? |
|
@IljaN Because i wanted to make a Branch from Core Repo and make there the pr as @phil-davis wrote |
|
@Gandolf90 when you make the PR in core, please mention it here so it is easy to find. |
|
@phil-davis ok |
|
@IljaN @DeepDiver1975 @phil-davis here it goes : #29367 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: