Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi! I've run into a problem with the extension while running behat tests on a site which redirects to HTTPS for login.
However I'm not really sure if it is really related for the drupal extension, or something else.
When I run the tests with bin/behat I get the following error:
cURL error 60: SSL certificate problem: Invalid certificate chain (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) (GuzzleHttp\Exception\RequestException)
My behat.yml configuration:
default:
suites:
default:
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MinkContext
- Drupal\DrupalExtension\Context\MessageContext
- Drupal\DrupalExtension\Context\DrushContext
extensions:
Behat\MinkExtension:
#selenium2: ~
goutte:
guzzle_parameters:
verify: false
base_url: https://localsite.dev
Drupal\DrupalExtension:
blackbox: ~
api_driver: 'drupal'
drush:
alias: 'local'
drupal:
drupal_root: 'www'
region_map:
head_title: 'head > title'
selectors:
Comments
Comment #2
Surjya1981 CreditAttribution: Surjya1981 commentedYou can add few more line in guzzle_parameters:
Also check your curl.cainfo in php.ini file, if it is having right path with the updated file.
Comment #3
clemens.tolboomComment #4
dlaufer CreditAttribution: dlaufer commentedThe solution in #2 worked for me!
Comment #5
jaydub CreditAttribution: jaydub commentedI followed the advice here:
https://github.com/Behat/MinkExtension/blob/master/doc/index.rst#drivers
Specifically the following:
It works for me with that change.