Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
php:
- '7.4'
- '8.3'
- '8.4'
steps:
- uses: actions/checkout@v5

Expand Down Expand Up @@ -70,10 +71,8 @@ jobs:
php:
- '7.4'
- '8.3'
- '8.4'
composer_options: [ "" ]
include:
- php: '8.1'
composer_options: "--ignore-platform-req php"

steps:
- uses: actions/checkout@v5
Expand All @@ -99,4 +98,4 @@ jobs:

integration-tests:
name: "REST integration tests"
uses: ibexa/rest/.github/workflows/integration-tests-callable.yaml@main
uses: ibexa/rest/.github/workflows/integration-tests-callable.yaml@4.6
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"ibexa/doctrine-schema": "~4.6.0@dev",
"phpunit/phpunit": "^8.5",
"matthiasnoback/symfony-dependency-injection-test": "^4.3",
"phpspec/phpspec": "^7.1",
"phpspec/phpspec": "^7.1 || ^8.0",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-symfony": "^2.0",
Expand Down
8 changes: 4 additions & 4 deletions features/symfony/cache.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Feature: As an site administrator I want my pages to be cached using Symfony Htt
| title | <itemName> |
And response headers contain
| Header | Value |
| Cache-Control | public, s-maxage=86400 |
| X-Symfony-Cache | <headerValue> |
| cache-control | public, s-maxage=86400 |
| x-symfony-cache | <headerValue> |


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

Examples:
| user | password | itemName | itemNameAfterEdit | headerValue |
Expand Down
8 changes: 4 additions & 4 deletions features/symfony/embed.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Feature: Caching of embedded items
And I should see "<embeddedItemName>"
And response headers contain
| Header | Value |
| Cache-Control | public, s-maxage=86400 |
| X-Symfony-Cache | <headerValue> |
| cache-control | public, s-maxage=86400 |
| x-symfony-cache | <headerValue> |
When I edit "<embeddedItemName>" Content item in "eng-GB"
| name |
| <editedEmbeddedItemName> |
Expand Down Expand Up @@ -52,10 +52,10 @@ Feature: Caching of embedded items
And I should see "<embeddedItemName>"
And response headers contain
| Header | Value |
| Cache-Control | public, s-maxage=86400 |
| cache-control | public, s-maxage=86400 |
And response headers match pattern
| Header | Pattern |
| X-Symfony-Cache | <expectedPattern> |
| x-symfony-cache | <expectedPattern> |

Examples:
| embeddingItemName | embeddedItemName | expectedPattern |
Expand Down
8 changes: 4 additions & 4 deletions features/symfony/permissions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Feature: Cached response is different for users with different permissions
And I should see "Administrator User"
And response headers contain
| Header | Value |
| Cache-Control | public, s-maxage=86400 |
| X-Symfony-Cache | GET /site/Users/Administrator-users/Administrator-User: fresh |
| cache-control | public, s-maxage=86400 |
| x-symfony-cache | GET /site/Users/Administrator-users/Administrator-User: fresh |
When I am viewing the pages on siteaccess "site" as "Anonymous"
And I visit "Users/Administrator-users/Administrator-User" on siteaccess "site"
Then I should not see "Administrator User"
Expand All @@ -32,8 +32,8 @@ Feature: Cached response is different for users with different permissions
And I should see "Administrator User"
And response headers contain
| Header | Value |
| Cache-Control | public, s-maxage=86400 |
| X-Symfony-Cache | GET /site/testcontentitem: fresh |
| cache-control | public, s-maxage=86400 |
| x-symfony-cache | GET /site/testcontentitem: fresh |
When I am viewing the pages on siteaccess "site" as "Anonymous"
And I visit "TestContentItem" on siteaccess "site"
Then I should see "TestContentItem"
Expand Down
8 changes: 4 additions & 4 deletions features/varnish/cache.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Feature: As an site administrator I want my pages to be cached using Varnish
When I visit <itemName> on siteaccess "site"
And response headers contain
| Header | Value |
| X-Cache | MISS |
| x-cache | MISS |
And I reload the page
Then I see correct preview data for "Folder" content type
| field | value |
| title | <itemName> |
And response headers contain
| Header | Value |
| X-Cache | HIT |
| x-cache | HIT |

Examples:
| user | password | itemName |
Expand All @@ -37,7 +37,7 @@ Feature: As an site administrator I want my pages to be cached using Varnish
| title | <itemName> |
And response headers contain
| Header | Value |
| X-Cache | HIT |
| x-cache | HIT |
When I edit "<itemName>" Content item in "eng-GB"
| short_name |
| <itemNameAfterEdit> |
Expand All @@ -52,7 +52,7 @@ Feature: As an site administrator I want my pages to be cached using Varnish
| title | <itemNameAfterEdit> |
And response headers contain
| Header | Value |
| X-Cache | HIT |
| x-cache | HIT |

Examples:
| user | password | itemName | itemNameAfterEdit |
Expand Down
4 changes: 2 additions & 2 deletions features/varnish/embed.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Feature: Caching of embedded items
And I should see "<embeddedItemName>"
And response headers contain
| Header | Value |
| X-Cache | HIT |
| x-cache | HIT |
When I edit "<embeddedItemName>" Content item in "eng-GB"
| name |
| <editedEmbeddedItemName> |
Expand Down Expand Up @@ -54,7 +54,7 @@ Feature: Caching of embedded items
And I should see "<embeddedItemName>"
And response headers contain
| Header | Value |
| X-Cache | HIT |
| x-cache | HIT |

Examples:
| embeddingItemName | embeddedItemName |
Expand Down
4 changes: 2 additions & 2 deletions features/varnish/permissions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Cached response is different for users with different permissions
And I should see "Administrator User"
And response headers contain
| Header | Value |
| X-Cache | HIT |
| x-cache | HIT |
When I am viewing the pages on siteaccess "site" as "Anonymous"
And I visit "Users/Administrator-users/Administrator-User" on siteaccess "site"
Then I should not see "Administrator User"
Expand All @@ -30,7 +30,7 @@ Feature: Cached response is different for users with different permissions
And I should see "Administrator User"
And response headers contain
| Header | Value |
| X-Cache | HIT |
| x-cache | HIT |
When I am viewing the pages on siteaccess "site" as "Anonymous"
And I visit "TestContentItem" on siteaccess "site"
Then I should see "TestContentItem"
Expand Down
4 changes: 2 additions & 2 deletions features/varnish/translations.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: As an site administrator I want my pages to be cached using Varnish
| title | <itemName> |
And response headers contain
| Header | Value |
| X-Cache | HIT |
| x-cache | HIT |
When I edit "<itemName>" Content item in "eng-GB"
| short_name |
| <itemNameAfterEdit> |
Expand All @@ -28,7 +28,7 @@ Feature: As an site administrator I want my pages to be cached using Varnish
| title | <itemNameAfterEdit> |
And response headers contain
| Header | Value |
| X-Cache | HIT |
| x-cache | HIT |

Examples:
| user | password | itemName | itemNameAfterEdit |
Expand Down
Loading