-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests(proxy) rewrite preserve_hosts suite
* tests(fixtures) udpate custom Nginx template Updated to use the latest Kong 0.10.0 Nginx template configuration. * tests(helpers) introduce 'nginx_conf' option `helpers.start_kong()` now receives an `nginx_conf` option, similar to the CLI's `--nginx-conf`, which makes the test instance start with a custom Nginx template configuration. * tests(proxy) rewrite 'preserve_host' suite We'd rather not depend on any third-party service for testing such a behavior since `preserve_host` typically creates invalid HTTP requests to upstream services. Here we introduce custom Nginx locations that allow us to mimic (and improve) httpbin.org behavior locally. The long term goal is to transition all of the tests relying on httpbin.org to such local code, so this is a step forwards, regardless of the testing framework or Nginx configuration handling we might have in the future.
- Loading branch information
1 parent
209176a
commit 5d86d09
Showing
3 changed files
with
140 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters