empty stored service config

This commit is contained in:
amrita
2025-03-06 17:08:54 +05:45
parent 9ee81c7cf9
commit 4c82aebad4
5 changed files with 74 additions and 0 deletions

View File

@@ -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."
);
}
}