Merge pull request #195 from mauricios/master
Update docs example for disable SSL certificate verification in Guzzle
This commit is contained in:
@@ -202,21 +202,36 @@ with support for 6 drivers out of the box:
|
|||||||
my_session:
|
my_session:
|
||||||
goutte: ~
|
goutte: ~
|
||||||
|
|
||||||
.. Tips : HTTPS and self-signed certificate
|
.. Tips : HTTPS and self-signed certificate
|
||||||
In case you use Behat/Mink/Goutte to test your application, and want to test an
|
In case you use Behat/Mink/Goutte to test your application, and want to test an
|
||||||
application secured with HTTPS, but with a self-signed certificate, you can use
|
application secured with HTTPS, but with a self-signed certificate, you can use
|
||||||
the following parameters to avoid the validation error triggered by Guzzle :
|
the following parameters to avoid the validation error triggered by Guzzle:
|
||||||
|
|
||||||
.. code-block:: yaml
|
* For ``Guzzle 4`` or later:
|
||||||
|
|
||||||
default:
|
.. code-block:: yaml
|
||||||
extensions:
|
|
||||||
Behat\MinkExtension:
|
default:
|
||||||
sessions:
|
extensions:
|
||||||
my_session:
|
Behat\MinkExtension:
|
||||||
goutte:
|
sessions:
|
||||||
guzzle_parameters:
|
my_session:
|
||||||
ssl.certificate_authority: false
|
goutte:
|
||||||
|
guzzle_parameters:
|
||||||
|
verify: false
|
||||||
|
|
||||||
|
* For ``Guzzle 3`` or earlier:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
default:
|
||||||
|
extensions:
|
||||||
|
Behat\MinkExtension:
|
||||||
|
sessions:
|
||||||
|
my_session:
|
||||||
|
goutte:
|
||||||
|
guzzle_parameters:
|
||||||
|
ssl.certificate_authority: false
|
||||||
|
|
||||||
* ``Selenium2Driver`` - javascript driver. In order to use it, modify your
|
* ``Selenium2Driver`` - javascript driver. In order to use it, modify your
|
||||||
``behat.yml`` profile:
|
``behat.yml`` profile:
|
||||||
|
|||||||
Reference in New Issue
Block a user