mirror of
https://github.com/owncloud/ocis.git
synced 2025-04-18 23:44:07 +03:00
reorganize test folders within the acceptance directory
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
This commit is contained in:
parent
90f66d707d
commit
d8d7b700cd
@ -14,8 +14,8 @@ exclude_paths:
|
|||||||
- 'accounts/rollup.config.js'
|
- 'accounts/rollup.config.js'
|
||||||
- 'deployments/**'
|
- 'deployments/**'
|
||||||
- 'tests/acceptance/expected-failures-*.md'
|
- 'tests/acceptance/expected-failures-*.md'
|
||||||
- 'tests/acceptance/features/bootstrap/**'
|
- 'tests/acceptance/bootstrap/**'
|
||||||
- 'tests/TestHelpers/**'
|
- 'tests/acceptance/TestHelpers/**'
|
||||||
- 'tests/acceptance/run.sh'
|
- 'tests/acceptance/run.sh'
|
||||||
- 'vendor/**/*'
|
- 'vendor/**/*'
|
||||||
- 'tests/ociswrapper/vendor/**'
|
- 'tests/ociswrapper/vendor/**'
|
||||||
|
2
Makefile
2
Makefile
@ -336,7 +336,7 @@ ci-format: $(BUILDIFIER)
|
|||||||
.PHONY: test-php-style
|
.PHONY: test-php-style
|
||||||
test-php-style: vendor-bin/owncloud-codestyle/vendor vendor-bin/php_codesniffer/vendor
|
test-php-style: vendor-bin/owncloud-codestyle/vendor vendor-bin/php_codesniffer/vendor
|
||||||
$(PHP_CS_FIXER) fix -v --diff --allow-risky yes --dry-run
|
$(PHP_CS_FIXER) fix -v --diff --allow-risky yes --dry-run
|
||||||
$(PHP_CODESNIFFER) --cache --runtime-set ignore_warnings_on_exit --standard=phpcs.xml tests/acceptance tests/TestHelpers
|
$(PHP_CODESNIFFER) --cache --runtime-set ignore_warnings_on_exit --standard=phpcs.xml tests/acceptance tests/acceptance/TestHelpers
|
||||||
|
|
||||||
.PHONY: test-php-style-fix
|
.PHONY: test-php-style-fix
|
||||||
test-php-style-fix: vendor-bin/owncloud-codestyle/vendor
|
test-php-style-fix: vendor-bin/owncloud-codestyle/vendor
|
||||||
|
@ -33,7 +33,7 @@ class HttpLogger {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function getLogDir(): string {
|
public static function getLogDir(): string {
|
||||||
return __DIR__ . '/../acceptance/logs';
|
return __DIR__ . '/../logs';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
@ -2453,7 +2453,7 @@ class FeatureContext extends BehatVariablesContext {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function acceptanceTestsDirLocation(): string {
|
public function acceptanceTestsDirLocation(): string {
|
||||||
return \dirname(__FILE__) . "/../../";
|
return \dirname(__FILE__) . "/../";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2857,9 +2857,9 @@ class FeatureContext extends BehatVariablesContext {
|
|||||||
public static function isExpectedToFail(string $scenarioLine): bool {
|
public static function isExpectedToFail(string $scenarioLine): bool {
|
||||||
$expectedFailFile = \getenv('EXPECTED_FAILURES_FILE');
|
$expectedFailFile = \getenv('EXPECTED_FAILURES_FILE');
|
||||||
if (!$expectedFailFile) {
|
if (!$expectedFailFile) {
|
||||||
$expectedFailFile = __DIR__ . '/../../expected-failures-localAPI-on-OCIS-storage.md';
|
$expectedFailFile = __DIR__ . '/../expected-failures-localAPI-on-OCIS-storage.md';
|
||||||
if (\strpos($scenarioLine, "coreApi") === 0) {
|
if (\strpos($scenarioLine, "coreApi") === 0) {
|
||||||
$expectedFailFile = __DIR__ . '/../../expected-failures-API-on-OCIS-storage.md';
|
$expectedFailFile = __DIR__ . '/../expected-failures-API-on-OCIS-storage.md';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -613,7 +613,7 @@ class OCSContext implements Context {
|
|||||||
public function getActualStatusMessage(string $statusMessage, ?string $language = null):string {
|
public function getActualStatusMessage(string $statusMessage, ?string $language = null):string {
|
||||||
if ($language !== null) {
|
if ($language !== null) {
|
||||||
$multiLingualMessage = \json_decode(
|
$multiLingualMessage = \json_decode(
|
||||||
\file_get_contents(__DIR__ . "/../../fixtures/multiLanguageErrors.json"),
|
\file_get_contents(__DIR__ . "/../fixtures/multiLanguageErrors.json"),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
@ -85,7 +85,7 @@ class OcisConfigContext implements Context {
|
|||||||
* @throws GuzzleException
|
* @throws GuzzleException
|
||||||
*/
|
*/
|
||||||
public function theConfigHasBeenSetPathTo(string $configVariable, string $path): void {
|
public function theConfigHasBeenSetPathTo(string $configVariable, string $path): void {
|
||||||
$path = \dirname(__FILE__) . "/../../../" . $path;
|
$path = \dirname(__FILE__) . "/../../" . $path;
|
||||||
$response = OcisConfigHelper::reConfigureOcis(
|
$response = OcisConfigHelper::reConfigureOcis(
|
||||||
[
|
[
|
||||||
$configVariable => $path
|
$configVariable => $path
|
@ -3939,7 +3939,7 @@ trait WebDav {
|
|||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function theDownloadedPreviewContentShouldMatchWithFixturesPreviewContentFor(string $filename):void {
|
public function theDownloadedPreviewContentShouldMatchWithFixturesPreviewContentFor(string $filename):void {
|
||||||
$expectedPreview = \file_get_contents(__DIR__ . "/../../fixtures/" . $filename);
|
$expectedPreview = \file_get_contents(__DIR__ . "/../fixtures/" . $filename);
|
||||||
Assert::assertEquals($expectedPreview, $this->responseBodyContent);
|
Assert::assertEquals($expectedPreview, $this->responseBodyContent);
|
||||||
}
|
}
|
||||||
|
|
@ -25,7 +25,7 @@ use Composer\Autoload\ClassLoader;
|
|||||||
|
|
||||||
$classLoader = new ClassLoader();
|
$classLoader = new ClassLoader();
|
||||||
|
|
||||||
$classLoader->addPsr4("TestHelpers\\", __DIR__ . "/../../../TestHelpers", true);
|
$classLoader->addPsr4("TestHelpers\\", __DIR__ . "/../TestHelpers", true);
|
||||||
|
|
||||||
$classLoader->register();
|
$classLoader->register();
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
default:
|
default:
|
||||||
autoload:
|
autoload:
|
||||||
"": "%paths.base%/../features/bootstrap"
|
"": "%paths.base%/../bootstrap"
|
||||||
suites:
|
suites:
|
||||||
coreApiMain:
|
coreApiMain:
|
||||||
paths:
|
paths:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
default:
|
default:
|
||||||
autoload:
|
autoload:
|
||||||
"": "%paths.base%/../features/bootstrap"
|
"": "%paths.base%/../bootstrap"
|
||||||
|
|
||||||
suites:
|
suites:
|
||||||
apiAccountsHashDifficulty:
|
apiAccountsHashDifficulty:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user