Skip to content

Commit

Permalink
Add additional docker status debug info in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pablothedude committed Dec 10, 2024
1 parent 1c08fc5 commit 776b0cc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions stepup/tests/behat/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,17 @@ public static function execCommand(string $command): void
*/
public static function setupDatabase(BeforeSuiteScope $scope)
{
// Check Docker status
echo "Check Docker container status\n";
self::execCommand('docker ps');

// Generate test databases
echo "Preparing test schemas\n";
echo "Preparing test schemas for Middleware\n";
self::execCommand('docker exec -t stepup-middleware-1 bin/console doctrine:schema:drop --em=middleware --env=smoketest --force');
self::execCommand('docker exec -t stepup-middleware-1 bin/console doctrine:schema:drop --em=gateway --env=smoketest --force');
self::execCommand('docker exec -t stepup-middleware-1 bin/console doctrine:schema:create --em=middleware --env=smoketest');

echo "Preparing test schemas for Gateway\n";
self::execCommand('docker exec -t stepup-middleware-1 bin/console doctrine:schema:drop --em=gateway --env=smoketest --force');
self::execCommand('docker exec -t stepup-middleware-1 bin/console doctrine:schema:create --em=gateway --env=smoketest');

// Import the events.sql into middleware
Expand Down

0 comments on commit 776b0cc

Please sign in to comment.