Skip to content

Commit fc3da2f

Browse files
committed
Normalized expected headers names to lowercase
1 parent fad2c26 commit fc3da2f

7 files changed

+22
-22
lines changed

features/symfony/cache.feature

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Feature: As an site administrator I want my pages to be cached using Symfony Htt
1414
| title | <itemName> |
1515
And response headers contain
1616
| Header | Value |
17-
| Cache-Control | public, s-maxage=86400 |
18-
| X-Symfony-Cache | <headerValue> |
17+
| cache-control | public, s-maxage=86400 |
18+
| x-symfony-cache | <headerValue> |
1919

2020

2121
Examples:
@@ -43,8 +43,8 @@ Feature: As an site administrator I want my pages to be cached using Symfony Htt
4343
| title | <itemNameAfterEdit> |
4444
And response headers contain
4545
| Header | Value |
46-
| Cache-Control | public, s-maxage=86400 |
47-
| X-Symfony-Cache | <headerValue> |
46+
| cache-control | public, s-maxage=86400 |
47+
| x-symfony-cache | <headerValue> |
4848

4949
Examples:
5050
| user | password | itemName | itemNameAfterEdit | headerValue |

features/symfony/embed.feature

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Feature: Caching of embedded items
2323
And I should see "<embeddedItemName>"
2424
And response headers contain
2525
| Header | Value |
26-
| Cache-Control | public, s-maxage=86400 |
27-
| X-Symfony-Cache | <headerValue> |
26+
| cache-control | public, s-maxage=86400 |
27+
| x-symfony-cache | <headerValue> |
2828
When I edit "<embeddedItemName>" Content item in "eng-GB"
2929
| name |
3030
| <editedEmbeddedItemName> |
@@ -52,10 +52,10 @@ Feature: Caching of embedded items
5252
And I should see "<embeddedItemName>"
5353
And response headers contain
5454
| Header | Value |
55-
| Cache-Control | public, s-maxage=86400 |
55+
| cache-control | public, s-maxage=86400 |
5656
And response headers match pattern
5757
| Header | Pattern |
58-
| X-Symfony-Cache | <expectedPattern> |
58+
| x-symfony-cache | <expectedPattern> |
5959

6060
Examples:
6161
| embeddingItemName | embeddedItemName | expectedPattern |

features/symfony/permissions.feature

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Feature: Cached response is different for users with different permissions
99
And I should see "Administrator User"
1010
And response headers contain
1111
| Header | Value |
12-
| Cache-Control | public, s-maxage=86400 |
13-
| X-Symfony-Cache | GET /site/Users/Administrator-users/Administrator-User: fresh |
12+
| cache-control | public, s-maxage=86400 |
13+
| x-symfony-cache | GET /site/Users/Administrator-users/Administrator-User: fresh |
1414
When I am viewing the pages on siteaccess "site" as "Anonymous"
1515
And I visit "Users/Administrator-users/Administrator-User" on siteaccess "site"
1616
Then I should not see "Administrator User"
@@ -32,8 +32,8 @@ Feature: Cached response is different for users with different permissions
3232
And I should see "Administrator User"
3333
And response headers contain
3434
| Header | Value |
35-
| Cache-Control | public, s-maxage=86400 |
36-
| X-Symfony-Cache | GET /site/testcontentitem: fresh |
35+
| cache-control | public, s-maxage=86400 |
36+
| x-symfony-cache | GET /site/testcontentitem: fresh |
3737
When I am viewing the pages on siteaccess "site" as "Anonymous"
3838
And I visit "TestContentItem" on siteaccess "site"
3939
Then I should see "TestContentItem"

features/varnish/cache.feature

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Feature: As an site administrator I want my pages to be cached using Varnish
1010
When I visit <itemName> on siteaccess "site"
1111
And response headers contain
1212
| Header | Value |
13-
| X-Cache | MISS |
13+
| x-cache | MISS |
1414
And I reload the page
1515
Then I see correct preview data for "Folder" content type
1616
| field | value |
1717
| title | <itemName> |
1818
And response headers contain
1919
| Header | Value |
20-
| X-Cache | HIT |
20+
| x-cache | HIT |
2121

2222
Examples:
2323
| user | password | itemName |
@@ -37,7 +37,7 @@ Feature: As an site administrator I want my pages to be cached using Varnish
3737
| title | <itemName> |
3838
And response headers contain
3939
| Header | Value |
40-
| X-Cache | HIT |
40+
| x-cache | HIT |
4141
When I edit "<itemName>" Content item in "eng-GB"
4242
| short_name |
4343
| <itemNameAfterEdit> |
@@ -52,7 +52,7 @@ Feature: As an site administrator I want my pages to be cached using Varnish
5252
| title | <itemNameAfterEdit> |
5353
And response headers contain
5454
| Header | Value |
55-
| X-Cache | HIT |
55+
| x-cache | HIT |
5656

5757
Examples:
5858
| user | password | itemName | itemNameAfterEdit |

features/varnish/embed.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Feature: Caching of embedded items
2323
And I should see "<embeddedItemName>"
2424
And response headers contain
2525
| Header | Value |
26-
| X-Cache | HIT |
26+
| x-cache | HIT |
2727
When I edit "<embeddedItemName>" Content item in "eng-GB"
2828
| name |
2929
| <editedEmbeddedItemName> |
@@ -54,7 +54,7 @@ Feature: Caching of embedded items
5454
And I should see "<embeddedItemName>"
5555
And response headers contain
5656
| Header | Value |
57-
| X-Cache | HIT |
57+
| x-cache | HIT |
5858

5959
Examples:
6060
| embeddingItemName | embeddedItemName |

features/varnish/permissions.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Feature: Cached response is different for users with different permissions
88
And I should see "Administrator User"
99
And response headers contain
1010
| Header | Value |
11-
| X-Cache | HIT |
11+
| x-cache | HIT |
1212
When I am viewing the pages on siteaccess "site" as "Anonymous"
1313
And I visit "Users/Administrator-users/Administrator-User" on siteaccess "site"
1414
Then I should not see "Administrator User"
@@ -30,7 +30,7 @@ Feature: Cached response is different for users with different permissions
3030
And I should see "Administrator User"
3131
And response headers contain
3232
| Header | Value |
33-
| X-Cache | HIT |
33+
| x-cache | HIT |
3434
When I am viewing the pages on siteaccess "site" as "Anonymous"
3535
And I visit "TestContentItem" on siteaccess "site"
3636
Then I should see "TestContentItem"

features/varnish/translations.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Feature: As an site administrator I want my pages to be cached using Varnish
1313
| title | <itemName> |
1414
And response headers contain
1515
| Header | Value |
16-
| X-Cache | HIT |
16+
| x-cache | HIT |
1717
When I edit "<itemName>" Content item in "eng-GB"
1818
| short_name |
1919
| <itemNameAfterEdit> |
@@ -28,7 +28,7 @@ Feature: As an site administrator I want my pages to be cached using Varnish
2828
| title | <itemNameAfterEdit> |
2929
And response headers contain
3030
| Header | Value |
31-
| X-Cache | HIT |
31+
| x-cache | HIT |
3232

3333
Examples:
3434
| user | password | itemName | itemNameAfterEdit |

0 commit comments

Comments
 (0)