Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/shared_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ jobs:
SERVER_BRANCH: ${{ matrix.nextcloudVersion }}
NEXTCLOUD_AUTOINSTALL: 'Yes'
WITH_REDIS: 'YES'
PHP_EXCIMER_DISABLE: 'true'
ports:
- 80:80
options: --name=nextcloud
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/features/api/setup.feature
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Feature: setup the integration through an API
"""
<data>
"""
Then the HTTP status code should be "400" or "500"
Then the HTTP status code should be "400"
Examples:
| data |
| "{}" |
Expand Down Expand Up @@ -381,7 +381,7 @@ Feature: setup the integration through an API
"""
<data>
"""
Then the HTTP status code should be "400" or "500"
Then the HTTP status code should be "400"
Examples:
| data |
| { "values": { "openproject_instance_url": "http://some-host.de"} }} |
Expand Down
20 changes: 0 additions & 20 deletions tests/acceptance/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,26 +671,6 @@ public function theHTTPStatusCodeShouldBe(
}
}

/**
* @Then the HTTP status code should be :code1 or :code2
*
* @param string $code1
* @param string $code2
* @param ResponseInterface $response
*
* @return void
*/
public function theHTTPStatusCodeShouldBeOr(string $code1, string $code2): void {
$statusCode = $this->response->getStatusCode();
$message = "HTTP status code $statusCode is not one of the expected values $code1 or $code2";

Assert::assertContainsEquals(
$statusCode,
[$code1, $code2],
$message
);
}

/**
* @param PyStringNode $schemaString
* @return mixed
Expand Down
Loading