You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: Behat tests run as authenticated user always fail on Pipelines while they pass perfectly locally (via $config['simplesamlphp_auth.settings']['activate'] = false; in local.settings.php).
I did try the following options, but none of them worked:
Env-specific settings.php
In settings.php
if (file_exists(__DIR__ . '/settings/pipelines.settings.php')) {
include __DIR__ . '/settings/pipelines.settings.php';
}
After require DRUPAL_ROOT . "/../vendor/acquia/blt/settings/blt.settings.php";
And in pipelines.settings.php
<?php
if ($is_ah_ode_env) {
// Turn off SAML when running Pipelines Behat test.
$config['simplesamlphp_auth.settings']['activate'] = false;
}
Note: also tried with $is_ah_env but it didn't make any difference.
Pipelines does report the module was uninstalled but this doesn't make any difference and the tests keep on failing.
Disable SAML in Behat tests
Followed the recommendation in #2688 (comment) and made sure to apply the patch at e0277c0
Note: this solution doesn't work locally either. Behat tests just hang forever.
The case of config_split
I know one option could be to evaluate a split for ci and disable SAML there, but a) I don't see why it would behave any differently from the shutdown options we have at our disposal above and b) it's a very heavy option for just this very need we have.
The text was updated successfully, but these errors were encountered:
@anavarre the only thing I could see with the config split option is that you are disabling the module and removing the configuration, so that Drupal itself isn't trying to redirect to a SAML provider. I dunno how that behavior interacts vs. the settings file. The cases where I've done SAML we had it off by default and used config splits for dev/test/prod to enable it (so CI never even tried).
$config['simplesamlphp_auth.settings']['activate'] = false;
inlocal.settings.php
).I did try the following options, but none of them worked:
Env-specific
settings.php
In
settings.php
After
require DRUPAL_ROOT . "/../vendor/acquia/blt/settings/blt.settings.php";
And in
pipelines.settings.php
Note: also tried with
$is_ah_env
but it didn't make any difference.Disable the module via
blt.yml
Pipelines does report the module was uninstalled but this doesn't make any difference and the tests keep on failing.
Disable SAML in Behat tests
Followed the recommendation in #2688 (comment) and made sure to apply the patch at e0277c0
Note: this solution doesn't work locally either. Behat tests just hang forever.
The case of config_split
I know one option could be to evaluate a split for
ci
and disable SAML there, but a) I don't see why it would behave any differently from the shutdown options we have at our disposal above and b) it's a very heavy option for just this very need we have.The text was updated successfully, but these errors were encountered: