Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dennisinteractive/behat-protocol
Provides steps to check the scheme used by HTTP resources
https://github.com/dennisinteractive/behat-protocol
behat
Last synced: 6 days ago
JSON representation
Provides steps to check the scheme used by HTTP resources
- Host: GitHub
- URL: https://github.com/dennisinteractive/behat-protocol
- Owner: dennisinteractive
- License: mit
- Created: 2018-04-04T10:36:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-20T13:25:56.000Z (over 6 years ago)
- Last Synced: 2024-12-07T20:18:14.934Z (27 days ago)
- Topics: behat
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 39
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Behat Protocol
Provides steps to check the scheme used by HTTP resources## Provides the following step definitions
```
Then the response should not contain internal http urls
Then I should not see any internal http urls in JavaScript
```## Default behaviour
- `base_url` will be checked
## Configure in behat.yml
Add `DennisDigital\Behat\Protocol\Context\ProtocolContext` under `Contexts`
#### You can also configure extra internal hosts to check
```
DennisDigital\Behat\Protocol\Context\ProtocolContext:
parameters:
hosts:
- www.example.com
- images.example.com
- cdn.example.com
```#### Specify headers to be sent with each request
```
DennisDigital\Behat\Protocol\Context\ProtocolContext:
parameters:
headers:
"X-Forwarded-Proto": https
```