Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default options for guzzle client #68

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

omarlopesino
Copy link

Hi.

My use case is this: I need allow unverified https site in tests cause the environment doesn't have certificate.

I tried use key 'defaults' in my behat.yml but I saw this error:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized option "defaults" under "testwork.web_api"

Here is my behat.yml

default:
autoload: '': %paths.base%/tests/behat/bootstrap
suites:
default:
paths:
- %paths.base%/tests/behat/features
contexts:
- Behat\WebApiExtension\Context\WebApiContext:
extensions:
Behat\WebApiExtension\ServiceContainer\WebApiExtension:
base_url: 'https://rest-testing.me/'
defaults:
verify: false
ssl.certificate_authority: false

I attach a patch adding defaults key.

Can you review this, please? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant