File diff c31143302a81 → 02204162f917
roles/php_website/molecule/default/tests/test_parameters_optional.py
Show inline comments
 
@@ -270,3 +270,15 @@ def test_regular_rewrites(host):
 

	
 
    assert page.rc == 0
 
    assert page.stdout == open("tests/data/php/optional/myindex.php").read().rstrip()
 

	
 

	
 
def test_http_header_overrides(host):
 
    """
 
    Tests if headers are overridden by Nginx prior to hitting the PHP
 
    application.
 
    """
 

	
 
    page = host.run('curl -H "Accept-Encoding: plain" https://parameters-optional.local/headers.myphp')
 

	
 
    assert page.rc == 0
 
    assert "Accept-Encoding: donotencode" in page.stdout.split("\n")