Fix parameter files for drush:behat:preprocess (k8s_common.yml and openstack_common.yml)

Created on 5 September 2023, over 1 year ago
Updated 6 September 2023, over 1 year ago

Problem/Motivation

  • Fix parameter files for drush:behat:preprocess (k8s_common.yml and openstack_common.yml)
    9) Executing drush cloud:behat:preprocess     --behat_path=modules/cloud_service_providers/k8s/tests/src/Behat     --params_files=features/templates/params/private.yml,features/templates/params/k8s_common.yml,features/templates/params/k8s_nginx.yml     --templates_dir=features/templates     --output_dir=features/tmp.20230905_015136.6IzEzn --random_str=f375510...
     [error]  TypeError: preg_match_all(): Argument #2 ($subject) must be of type string, array given in preg_match_all() (line 157 of /var/www/cloud_orchestrator/docroot/modules/contrib/cloud/src/Commands/BehatCommands.php) #0 /var/www/cloud_orchestrator/docroot/modules/contrib/cloud/src/Commands/BehatCommands.php(157): preg_match_all('/(@random)/i', Array, Array)
    #1 /var/www/cloud_orchestrator/docroot/modules/contrib/cloud/src/Commands/BehatCommands.php(109): Drupal\cloud\Commands\BehatCommands->setRandomizeName('f375510', Array)
    #2 [internal function]: Drupal\cloud\Commands\BehatCommands->preprocess(Array)
    #3 /var/www/cloud_orchestrator/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
    #4 /var/www/cloud_orchestrator/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
    #5 /var/www/cloud_orchestrator/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
    #6 /var/www/cloud_orchestrator/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
    #7 /var/www/cloud_orchestrator/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #8 /var/www/cloud_orchestrator/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #9 /var/www/cloud_orchestrator/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #10 /var/www/cloud_orchestrator/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #11 /var/www/cloud_orchestrator/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #12 /var/www/cloud_orchestrator/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
    #13 /var/www/cloud_orchestrator/vendor/drush/drush/drush.php(79): Drush\Runtime\Runtime->run(Array)
    #14 /var/www/cloud_orchestrator/vendor/drush/drush/drush(4): require('/var/www/cloud_...')
    #15 /var/www/cloud_orchestrator/vendor/bin/drush(124): include('/var/www/cloud_...')
    #16 {main}. 
    TypeError: preg_match_all(): Argument #2 ($subject) must be of type string, array given in /var/www/cloud_orchestrator/docroot/modules/contrib/cloud/src/Commands/BehatCommands.php on line 157 #0 /var/www/cloud_orchestrator/docroot/modules/contrib/cloud/src/Commands/BehatCommands.php(157): preg_match_all('/(@random)/i', Array, Array)
    #1 /var/www/cloud_orchestrator/docroot/modules/contrib/cloud/src/Commands/BehatCommands.php(109): Drupal\cloud\Commands\BehatCommands->setRandomizeName('f375510', Array)
    #2 [internal function]: Drupal\cloud\Commands\BehatCommands->preprocess(Array)
    #3 /var/www/cloud_orchestrator/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
    #4 /var/www/cloud_orchestrator/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
    #5 /var/www/cloud_orchestrator/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
    #6 /var/www/cloud_orchestrator/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
    #7 /var/www/cloud_orchestrator/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #8 /var/www/cloud_orchestrator/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #9 /var/www/cloud_orchestrator/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #10 /var/www/cloud_orchestrator/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #11 /var/www/cloud_orchestrator/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #12 /var/www/cloud_orchestrator/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
    #13 /var/www/cloud_orchestrator/vendor/drush/drush/drush.php(79): Drush\Runtime\Runtime->run(Array)
    #14 /var/www/cloud_orchestrator/vendor/drush/drush/drush(4): require('/var/www/cloud_...')
    #15 /var/www/cloud_orchestrator/vendor/bin/drush(124): include('/var/www/cloud_...')
    #16 {main}
    TypeError: preg_match_all(): Argument #2 ($subject) must be of type string, array given in preg_match_all() (line 157 of /var/www/cloud_orchestrator/docroot/modules/contrib/cloud/src/Commands/BehatCommands.php)
    
πŸ› Bug report
Status

Fixed

Version

6.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024