tests/DryRunPipelineTest.php 1 location
|
@@ 130-141 (lines=12) @@
|
| 127 |
|
* |
| 128 |
|
* @return SmokeTestPipelineStep |
| 129 |
|
*/ |
| 130 |
|
public function getDummySmokeTestStep($name) { |
| 131 |
|
// Load data inte step and pipeline |
| 132 |
|
$data = $this->getPipelineConfig(); |
| 133 |
|
$smokeStep = $this->objFromFixture('SmokeTestPipelineStep', 'testsmoketest'); |
| 134 |
|
$pipeline = $smokeStep->Pipeline(); |
| 135 |
|
$pipeline->Config = serialize($data); |
| 136 |
|
$pipeline->DryRun = true; |
| 137 |
|
$pipeline->write(); |
| 138 |
|
$smokeStep->Config = serialize($pipeline->getConfigSetting('Steps', $name)); |
| 139 |
|
$smokeStep->write(); |
| 140 |
|
return $smokeStep; |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
/** |
| 144 |
|
* Test failed smoke test |
tests/EmergencyRollbackStepTest.php 1 location
|
@@ 12-25 (lines=14) @@
|
| 9 |
|
* |
| 10 |
|
* @return EmergencyRollbackStep |
| 11 |
|
*/ |
| 12 |
|
public function getDummyConfirmationStep() { |
| 13 |
|
// Load config |
| 14 |
|
$data = $this->getPipelineConfig(); |
| 15 |
|
|
| 16 |
|
// Load data into step and pipeline |
| 17 |
|
$emergencyRollback = $this->objFromFixture('EmergencyRollbackStep', 'testdeploy'); |
| 18 |
|
$pipeline = $emergencyRollback->Pipeline(); |
| 19 |
|
$pipeline->Config = serialize($data); |
| 20 |
|
$pipeline->write(); |
| 21 |
|
$emergencyRollback->Config = serialize($pipeline->getConfigSetting('Steps', 'RollbackWindowStep')); |
| 22 |
|
$emergencyRollback->write(); |
| 23 |
|
|
| 24 |
|
return $emergencyRollback; |
| 25 |
|
} |
| 26 |
|
|
| 27 |
|
/** |
| 28 |
|
* Test that timeout expiry works |
tests/SmokeTestPipelineStepTest.php 1 location
|
@@ 12-22 (lines=11) @@
|
| 9 |
|
* |
| 10 |
|
* @return SmokeTestPipelineStep |
| 11 |
|
*/ |
| 12 |
|
public function getDummySmokeTestStep($name) { |
| 13 |
|
// Load data inte step and pipeline |
| 14 |
|
$data = $this->getPipelineConfig(); |
| 15 |
|
$smokeStep = $this->objFromFixture('SmokeTestPipelineStep', 'testsmoketest'); |
| 16 |
|
$pipeline = $smokeStep->Pipeline(); |
| 17 |
|
$pipeline->Config = serialize($data); |
| 18 |
|
$pipeline->write(); |
| 19 |
|
$smokeStep->Config = serialize($pipeline->getConfigSetting('Steps', $name)); |
| 20 |
|
$smokeStep->write(); |
| 21 |
|
return $smokeStep; |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
/** |
| 25 |
|
* Test successful smoke test |
tests/TriggerDeployStepTest.php 1 location
|
@@ 12-25 (lines=14) @@
|
| 9 |
|
* |
| 10 |
|
* @return TriggerDeployStep |
| 11 |
|
*/ |
| 12 |
|
public function getDummyConfirmationStep() { |
| 13 |
|
// Load config |
| 14 |
|
$data = $this->getPipelineConfig(); |
| 15 |
|
|
| 16 |
|
// Load data into step and pipeline |
| 17 |
|
$triggerDeployStep = $this->objFromFixture('TriggerDeployStep', 'testdeploy'); |
| 18 |
|
$pipeline = $triggerDeployStep->Pipeline(); |
| 19 |
|
$pipeline->Config = serialize($data); |
| 20 |
|
$pipeline->write(); |
| 21 |
|
$triggerDeployStep->Config = serialize($pipeline->getConfigSetting('Steps', 'RequestDeploymentStep')); |
| 22 |
|
$triggerDeployStep->write(); |
| 23 |
|
|
| 24 |
|
return $triggerDeployStep; |
| 25 |
|
} |
| 26 |
|
|
| 27 |
|
/** |
| 28 |
|
* Test that timeout expiry works |
tests/UserConfirmationStepTest.php 1 location
|
@@ 12-23 (lines=12) @@
|
| 9 |
|
* |
| 10 |
|
* @return UserConfirmationStep |
| 11 |
|
*/ |
| 12 |
|
public function getDummyConfirmationStep() { |
| 13 |
|
// Load data into step and pipeline |
| 14 |
|
$data = $this->getPipelineConfig(); |
| 15 |
|
$confirmStep = $this->objFromFixture('UserConfirmationStep', 'testconfirm'); |
| 16 |
|
$pipeline = $confirmStep->Pipeline(); |
| 17 |
|
$pipeline->Config = serialize($data); |
| 18 |
|
$pipeline->write(); |
| 19 |
|
$confirmStep->Config = serialize($pipeline->getConfigSetting('Steps', 'RequestConfirmationStep')); |
| 20 |
|
$confirmStep->write(); |
| 21 |
|
|
| 22 |
|
return $confirmStep; |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
/** |
| 26 |
|
* Test that timeout expiry works |