mirror of
https://github.com/owncloud/ocis
synced 2026-04-25 17:25:21 +02:00
empty stored service config
This commit is contained in:
@@ -221,6 +221,16 @@ class OcisConfigContext implements Context {
|
||||
* @AfterScenario @env-config
|
||||
*
|
||||
* @return void
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function rollback(): void {
|
||||
$this->rollbackServices();
|
||||
$this->rollbackOcis();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function rollbackOcis(): void {
|
||||
$response = OcisConfigHelper::rollbackOcis();
|
||||
@@ -230,4 +240,17 @@ class OcisConfigContext implements Context {
|
||||
"Failed to rollback ocis server. Check if oCIS is started with ociswrapper."
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function rollbackServices(): void {
|
||||
$response = OcisConfigHelper::rollbackServices();
|
||||
Assert::assertEquals(
|
||||
200,
|
||||
$response->getStatusCode(),
|
||||
"Failed to rollback services."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user