mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-29 10:38:57 +02:00
[Nostromo] Refactor config
This commit is contained in:
@@ -20,8 +20,8 @@ class DeployCommandMiscTest extends TestCase
|
||||
{
|
||||
public function testDeploymentWithNoHosts()
|
||||
{
|
||||
$application = new MageApplicationMockup();
|
||||
$application->configure(__DIR__ . '/../../Resources/no-hosts.yml');
|
||||
$application = new MageApplicationMockup(__DIR__ . '/../../Resources/no-hosts.yml');
|
||||
$application->configure();
|
||||
|
||||
/** @var AbstractCommand $command */
|
||||
$command = $application->find('deploy');
|
||||
@@ -39,8 +39,8 @@ class DeployCommandMiscTest extends TestCase
|
||||
|
||||
public function testDeploymentWithSudo()
|
||||
{
|
||||
$application = new MageApplicationMockup();
|
||||
$application->configure(__DIR__ . '/../../Resources/testhost-sudo.yml');
|
||||
$application = new MageApplicationMockup(__DIR__ . '/../../Resources/testhost-sudo.yml');
|
||||
$application->configure();
|
||||
|
||||
/** @var AbstractCommand $command */
|
||||
$command = $application->find('deploy');
|
||||
@@ -78,8 +78,8 @@ class DeployCommandMiscTest extends TestCase
|
||||
|
||||
public function testDeploymentWithBranchOverwrite()
|
||||
{
|
||||
$application = new MageApplicationMockup();
|
||||
$application->configure(__DIR__ . '/../../Resources/testhost-without-releases.yml');
|
||||
$application = new MageApplicationMockup(__DIR__ . '/../../Resources/testhost-without-releases.yml');
|
||||
$application->configure();
|
||||
|
||||
/** @var AbstractCommand $command */
|
||||
$command = $application->find('deploy');
|
||||
@@ -116,8 +116,8 @@ class DeployCommandMiscTest extends TestCase
|
||||
|
||||
public function testDeploymentWithCustomTask()
|
||||
{
|
||||
$application = new MageApplicationMockup();
|
||||
$application->configure(__DIR__ . '/../../Resources/testhost-custom-task.yml');
|
||||
$application = new MageApplicationMockup(__DIR__ . '/../../Resources/testhost-custom-task.yml');
|
||||
$application->configure();
|
||||
|
||||
|
||||
/** @var AbstractCommand $command */
|
||||
@@ -150,8 +150,8 @@ class DeployCommandMiscTest extends TestCase
|
||||
|
||||
public function testDeploymentWithErrorTaskCommands()
|
||||
{
|
||||
$application = new MageApplicationMockup();
|
||||
$application->configure(__DIR__ . '/../../Resources/testhost-with-error.yml');
|
||||
$application = new MageApplicationMockup(__DIR__ . '/../../Resources/testhost-with-error.yml');
|
||||
$application->configure();
|
||||
|
||||
$application->getRuntime()->setReleaseId('20170101015120');
|
||||
|
||||
@@ -192,8 +192,8 @@ class DeployCommandMiscTest extends TestCase
|
||||
|
||||
public function testDeploymentWithFailingPostDeployTaskCommands()
|
||||
{
|
||||
$application = new MageApplicationMockup();
|
||||
$application->configure(__DIR__ . '/../../Resources/testhost-with-postdeploy-error.yml');
|
||||
$application = new MageApplicationMockup(__DIR__ . '/../../Resources/testhost-with-postdeploy-error.yml');
|
||||
$application->configure();
|
||||
|
||||
/** @var AbstractCommand $command */
|
||||
$command = $application->find('deploy');
|
||||
@@ -228,8 +228,8 @@ class DeployCommandMiscTest extends TestCase
|
||||
|
||||
public function testDeploymentWithSkippingTask()
|
||||
{
|
||||
$application = new MageApplicationMockup();
|
||||
$application->configure(__DIR__ . '/../../Resources/testhost-skipping.yml');
|
||||
$application = new MageApplicationMockup(__DIR__ . '/../../Resources/testhost-skipping.yml');
|
||||
$application->configure();
|
||||
|
||||
/** @var AbstractCommand $command */
|
||||
$command = $application->find('deploy');
|
||||
|
||||
Reference in New Issue
Block a user