mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-03 06:23:15 +02:00
[Discovery One] Improve tests
This commit is contained in:
parent
83110941eb
commit
3dc7acf3d4
|
@ -38,7 +38,7 @@ class CachePoolClearTask extends AbstractSymfonyTask
|
|||
throw new ErrorException('Parameter "pools" is not defined');
|
||||
}
|
||||
|
||||
$command = $options['console'] . ' cache:pool:clear --env=' . $options['env'] . ' ' . $options['flags'] . ' ' . $options['pools'];
|
||||
$command = $options['console'] . ' cache:pool:clear ' . $options['pools'] . ' --env=' . $options['env'] . ' ' . $options['flags'];
|
||||
|
||||
/** @var Process $process */
|
||||
$process = $this->runtime->runCommand(trim($command));
|
||||
|
|
|
@ -37,6 +37,8 @@ class DeployCommandMiscTasksTest extends TestCase
|
|||
2 => 'ssh -p 22 -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no tester@testhost "cd /var/www/test && bin/console assets:install web --env=testenv --symlink --relative"',
|
||||
3 => 'ssh -p 22 -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no tester@testhost "cd /var/www/test && bin/console cache:pool:prune --env=testenv"',
|
||||
4 => 'ssh -p 22 -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no tester@testhost "cd /var/www/test && bin/console cache:pool:prune --env=prod"',
|
||||
5 => 'ssh -p 22 -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no tester@testhost "cd /var/www/test && bin/console cache:pool:clear main --env=testenv"',
|
||||
6 => 'ssh -p 22 -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no tester@testhost "cd /var/www/test && bin/console cache:pool:clear main --env=prod"',
|
||||
);
|
||||
|
||||
// Check total of Executed Commands
|
||||
|
|
|
@ -16,3 +16,5 @@ magephp:
|
|||
- symfony/assets-install
|
||||
- symfony/cache-pool-prune
|
||||
- symfony/cache-pool-prune: { env: 'prod' }
|
||||
- symfony/cache-pool-clear: { pools: 'main' }
|
||||
- symfony/cache-pool-clear: { env: 'prod', pools: 'main' }
|
||||
|
|
Loading…
Reference in a new issue