summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-04-11 13:58:18 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-04-11 18:57:40 +0200
commit4cf61481e5e3c4be2637b6ad4d1ad069b3a46e7d (patch)
tree362085a640b713055892983c134aba5f6f8be68f /build
parentbd6273ee1c803b8a129fb76135ca23377805da9e (diff)
downloadnextcloud-server-4cf61481e5e3c4be2637b6ad4d1ad069b3a46e7d.tar.gz
nextcloud-server-4cf61481e5e3c4be2637b6ad4d1ad069b3a46e7d.zip
Clear opcode cache after config change
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/CommandLine.php8
-rw-r--r--build/integration/features/maintenance-mode.feature7
2 files changed, 14 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/CommandLine.php b/build/integration/features/bootstrap/CommandLine.php
index c0caf5f8e6e..e880cfe24ab 100644
--- a/build/integration/features/bootstrap/CommandLine.php
+++ b/build/integration/features/bootstrap/CommandLine.php
@@ -35,7 +35,7 @@ trait CommandLine {
/**
* Invokes an OCC command
*
- * @param string OCC command, the part behind "occ". For example: "files:transfer-ownership"
+ * @param []string $args OCC command, the part behind "occ". For example: "files:transfer-ownership"
* @return int exit code
*/
public function runOcc($args = []) {
@@ -54,6 +54,12 @@ trait CommandLine {
$this->lastStdOut = stream_get_contents($pipes[1]);
$this->lastStdErr = stream_get_contents($pipes[2]);
$this->lastCode = proc_close($process);
+
+ // Clean opcode cache
+ $client = new GuzzleHttp\Client();
+ $request = $client->createRequest('GET', 'http://localhost:8080/apps/testing/clean_opcode_cache.php');
+ $client->send($request);
+
return $this->lastCode;
}
diff --git a/build/integration/features/maintenance-mode.feature b/build/integration/features/maintenance-mode.feature
index a2e61a7e605..56d3b9c0fb6 100644
--- a/build/integration/features/maintenance-mode.feature
+++ b/build/integration/features/maintenance-mode.feature
@@ -2,33 +2,40 @@ Feature: maintenance-mode
Background:
Given Maintenance mode is enabled
+ Then the command was successful
Scenario: Accessing /index.php with maintenance mode enabled
When requesting "/index.php" with "GET"
Then the HTTP status code should be "503"
Then Maintenance mode is disabled
+ And the command was successful
Scenario: Accessing /remote.php/webdav with maintenance mode enabled
When requesting "/remote.php/webdav" with "GET"
Then the HTTP status code should be "503"
Then Maintenance mode is disabled
+ And the command was successful
Scenario: Accessing /remote.php/dav with maintenance mode enabled
When requesting "/remote.php/dav" with "GET"
Then the HTTP status code should be "503"
Then Maintenance mode is disabled
+ And the command was successful
Scenario: Accessing /ocs/v1.php with maintenance mode enabled
When requesting "/ocs/v1.php" with "GET"
Then the HTTP status code should be "503"
Then Maintenance mode is disabled
+ And the command was successful
Scenario: Accessing /ocs/v2.php with maintenance mode enabled
When requesting "/ocs/v2.php" with "GET"
Then the HTTP status code should be "503"
Then Maintenance mode is disabled
+ And the command was successful
Scenario: Accessing /public.php/webdav with maintenance mode enabled
When requesting "/public.php/webdav" with "GET"
Then the HTTP status code should be "503"
Then Maintenance mode is disabled
+ And the command was successful