Fix (Core): Invalidate velocity live version of the page on page changes #31094
11039 passed, 8 failed and 52 skipped
Annotations
github-actions / Test Report
Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Request page and validate content ► PageApiApiV1Page ► Status code is 200
Failed test found in:
/tmp/build-reports-test/build-reports-test-Postman page/dotcms-postman/target/failsafe-reports/TEST-PagesResourceTests.xml
Error:
AssertionFailure: expected response to have status code 200 but got 404
Raw output
Failed 1 times.
Collection JSON ID: f9abea8b-4376-484c-94d0-7a7015f27f6c.
Collection name: Page API - [api/v1/page].
Request name: Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Request page and validate content.
Test description: Status code is 200.
Error message: expected response to have status code 200 but got 404.
Stacktrace: AssertionError: expected response to have status code 200 but got 404
at Object.eval sandbox-script.js:1:58).
github-actions / Test Report
Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Request page and validate content ► PageApiApiV1Page ► Body contains <h1>testContent1</h1>
Failed test found in:
/tmp/build-reports-test/build-reports-test-Postman page/dotcms-postman/target/failsafe-reports/TEST-PagesResourceTests.xml
Error:
AssertionFailure: expected '\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html>\r\n<head>\r\n<title>dotCMS: Page not found (404 error)</title>\r\n\r\n<style type="text/css">\r\nbody {\r\n font-family: helvetica, san-serif;\r\n padding: 20px;\r\n margin-top: 0px;\r\n}\r\n\r\n#main {\r\n width: 400px;\r\n}\r\n\r\n#footer {\r\n text-align: center;\r\n}\r\n\r\nh1 {\r\n font-size: 20px;\r\n}\r\n\r\n#logo {\r\n float: left;\r\n}\r\n\r\n#text {\r\n float: left;\r\n}\r\n</style>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n <div id="main">\r\n <div id="text">\r\n\r\n <h1>dotCMS: Page not found (404 error)</h1>\r\n\r\n <p>The Page or file you were looking for was not found.<br/>Please make sure that you have typed the correct URL.</p>\r\n\r\n </div>\r\n </div>\r\n</body>\r\n</html>' to include '<h1>testContent1</h1>'
Raw output
Failed 1 times.
Collection JSON ID: f9abea8b-4376-484c-94d0-7a7015f27f6c.
Collection name: Page API - [api/v1/page].
Request name: Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Request page and validate content.
Test description: Body contains <h1>testContent1</h1>.
Error message: expected '\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html>\r\n<head>\r\n<title>dotCMS: Page not found (404 error)</title>\r\n\r\n<style type="text/css">\r\nbody {\r\n font-family: helvetica, san-serif;\r\n padding: 20px;\r\n margin-top: 0px;\r\n}\r\n\r\n#main {\r\n width: 400px;\r\n}\r\n\r\n#footer {\r\n text-align: center;\r\n}\r\n\r\nh1 {\r\n font-size: 20px;\r\n}\r\n\r\n#logo {\r\n float: left;\r\n}\r\n\r\n#text {\r\n float: left;\r\n}\r\n</style>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n <div id="main">\r\n <div id="text">\r\n\r\n <h1>dotCMS: Page not found (404 error)</h1>\r\n\r\n <p>The Page or file you were looking for was not found.<br/>Please make sure that you have typed the correct URL.</p>\r\n\r\n </div>\r\n </div>\r\n</body>\r\n</html>' to include '<h1>testContent1</h1>'.
Stacktrace: AssertionError: expected '\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html>\r\n<head>\r\n<title>dotCMS: Page not found (404 error)</title>\r\n\r\n<style type="text/css">\r\nbody {\r\n font-family: helvetica, san-serif;\r\n padding: 20px;\r\n margin-top: 0px;\r\n}\r\n\r\n#main {\r\n width: 400px;\r\n}\r\n\r\n#footer {\r\n text-align: center;\r\n}\r\n\r\nh1 {\r\n font-size: 20px;\r\n}\r\n\r\n#logo {\r\n float: left;\r\n}\r\n\r\n#text {\r\n float: left;\r\n}\r\n</style>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n <div id="main">\r\n <div id="text">\r\n\r\n <h1>dotCMS: Page not found (404 error)</h1>\r\n\r\n <p>The Page or file you were looking for was not found.<br/>Please make sure that you have typed the correct URL.</p>\r\n\r\n </div>\r\n </div>\r\n</body>\r\n</html>' to include '<h1>testContent1</h1>'
at Object.eval sandbox-script.js:2:58).
github-actions / Test Report
Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Request page and validate content ► PageApiApiV1Page ► Status code is 200
Failed test found in:
/tmp/build-reports-test/build-reports-test-Postman page/dotcms-postman/target/failsafe-reports/TEST-PagesResourceTests.xml
Error:
AssertionFailure: expected response to have status code 200 but got 404
Raw output
Failed 1 times.
Collection JSON ID: f9abea8b-4376-484c-94d0-7a7015f27f6c.
Collection name: Page API - [api/v1/page].
Request name: Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Request page and validate content.
Test description: Status code is 200.
Error message: expected response to have status code 200 but got 404.
Stacktrace: AssertionError: expected response to have status code 200 but got 404
at Object.eval sandbox-script.js:1:61).
github-actions / Test Report
Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Request page and validate content ► PageApiApiV1Page ► Body contains <h1>testContent1</h1>
Failed test found in:
/tmp/build-reports-test/build-reports-test-Postman page/dotcms-postman/target/failsafe-reports/TEST-PagesResourceTests.xml
Error:
AssertionFailure: expected '\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html>\r\n<head>\r\n<title>dotCMS: Page not found (404 error)</title>\r\n\r\n<style type="text/css">\r\nbody {\r\n font-family: helvetica, san-serif;\r\n padding: 20px;\r\n margin-top: 0px;\r\n}\r\n\r\n#main {\r\n width: 400px;\r\n}\r\n\r\n#footer {\r\n text-align: center;\r\n}\r\n\r\nh1 {\r\n font-size: 20px;\r\n}\r\n\r\n#logo {\r\n float: left;\r\n}\r\n\r\n#text {\r\n float: left;\r\n}\r\n</style>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n <div id="main">\r\n <div id="text">\r\n\r\n <h1>dotCMS: Page not found (404 error)</h1>\r\n\r\n <p>The Page or file you were looking for was not found.<br/>Please make sure that you have typed the correct URL.</p>\r\n\r\n </div>\r\n </div>\r\n</body>\r\n</html>' to include '<h1>testContent1</h1>'
Raw output
Failed 1 times.
Collection JSON ID: f9abea8b-4376-484c-94d0-7a7015f27f6c.
Collection name: Page API - [api/v1/page].
Request name: Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Request page and validate content.
Test description: Body contains <h1>testContent1</h1>.
Error message: expected '\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html>\r\n<head>\r\n<title>dotCMS: Page not found (404 error)</title>\r\n\r\n<style type="text/css">\r\nbody {\r\n font-family: helvetica, san-serif;\r\n padding: 20px;\r\n margin-top: 0px;\r\n}\r\n\r\n#main {\r\n width: 400px;\r\n}\r\n\r\n#footer {\r\n text-align: center;\r\n}\r\n\r\nh1 {\r\n font-size: 20px;\r\n}\r\n\r\n#logo {\r\n float: left;\r\n}\r\n\r\n#text {\r\n float: left;\r\n}\r\n</style>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n <div id="main">\r\n <div id="text">\r\n\r\n <h1>dotCMS: Page not found (404 error)</h1>\r\n\r\n <p>The Page or file you were looking for was not found.<br/>Please make sure that you have typed the correct URL.</p>\r\n\r\n </div>\r\n </div>\r\n</body>\r\n</html>' to include '<h1>testContent1</h1>'.
Stacktrace: AssertionError: expected '\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html>\r\n<head>\r\n<title>dotCMS: Page not found (404 error)</title>\r\n\r\n<style type="text/css">\r\nbody {\r\n font-family: helvetica, san-serif;\r\n padding: 20px;\r\n margin-top: 0px;\r\n}\r\n\r\n#main {\r\n width: 400px;\r\n}\r\n\r\n#footer {\r\n text-align: center;\r\n}\r\n\r\nh1 {\r\n font-size: 20px;\r\n}\r\n\r\n#logo {\r\n float: left;\r\n}\r\n\r\n#text {\r\n float: left;\r\n}\r\n</style>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n <div id="main">\r\n <div id="text">\r\n\r\n <h1>dotCMS: Page not found (404 error)</h1>\r\n\r\n <p>The Page or file you were looking for was not found.<br/>Please make sure that you have typed the correct URL.</p>\r\n\r\n </div>\r\n </div>\r\n</body>\r\n</html>' to include '<h1>testContent1</h1>'
at Object.eval sandbox-script.js:2:61).
github-actions / Test Report
Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Request page and validate content ► PageApiApiV1Page ► Body contains <h1>testContent2</h1>
Failed test found in:
/tmp/build-reports-test/build-reports-test-Postman page/dotcms-postman/target/failsafe-reports/TEST-PagesResourceTests.xml
Error:
AssertionFailure: expected '\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html>\r\n<head>\r\n<title>dotCMS: Page not found (404 error)</title>\r\n\r\n<style type="text/css">\r\nbody {\r\n font-family: helvetica, san-serif;\r\n padding: 20px;\r\n margin-top: 0px;\r\n}\r\n\r\n#main {\r\n width: 400px;\r\n}\r\n\r\n#footer {\r\n text-align: center;\r\n}\r\n\r\nh1 {\r\n font-size: 20px;\r\n}\r\n\r\n#logo {\r\n float: left;\r\n}\r\n\r\n#text {\r\n float: left;\r\n}\r\n</style>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n <div id="main">\r\n <div id="text">\r\n\r\n <h1>dotCMS: Page not found (404 error)</h1>\r\n\r\n <p>The Page or file you were looking for was not found.<br/>Please make sure that you have typed the correct URL.</p>\r\n\r\n </div>\r\n </div>\r\n</body>\r\n</html>' to include '<h1>testContent2</h1>'
Raw output
Failed 1 times.
Collection JSON ID: f9abea8b-4376-484c-94d0-7a7015f27f6c.
Collection name: Page API - [api/v1/page].
Request name: Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Request page and validate content.
Test description: Body contains <h1>testContent2</h1>.
Error message: expected '\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html>\r\n<head>\r\n<title>dotCMS: Page not found (404 error)</title>\r\n\r\n<style type="text/css">\r\nbody {\r\n font-family: helvetica, san-serif;\r\n padding: 20px;\r\n margin-top: 0px;\r\n}\r\n\r\n#main {\r\n width: 400px;\r\n}\r\n\r\n#footer {\r\n text-align: center;\r\n}\r\n\r\nh1 {\r\n font-size: 20px;\r\n}\r\n\r\n#logo {\r\n float: left;\r\n}\r\n\r\n#text {\r\n float: left;\r\n}\r\n</style>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n <div id="main">\r\n <div id="text">\r\n\r\n <h1>dotCMS: Page not found (404 error)</h1>\r\n\r\n <p>The Page or file you were looking for was not found.<br/>Please make sure that you have typed the correct URL.</p>\r\n\r\n </div>\r\n </div>\r\n</body>\r\n</html>' to include '<h1>testContent2</h1>'.
Stacktrace: AssertionError: expected '\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html>\r\n<head>\r\n<title>dotCMS: Page not found (404 error)</title>\r\n\r\n<style type="text/css">\r\nbody {\r\n font-family: helvetica, san-serif;\r\n padding: 20px;\r\n margin-top: 0px;\r\n}\r\n\r\n#main {\r\n width: 400px;\r\n}\r\n\r\n#footer {\r\n text-align: center;\r\n}\r\n\r\nh1 {\r\n font-size: 20px;\r\n}\r\n\r\n#logo {\r\n float: left;\r\n}\r\n\r\n#text {\r\n float: left;\r\n}\r\n</style>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n <div id="main">\r\n <div id="text">\r\n\r\n <h1>dotCMS: Page not found (404 error)</h1>\r\n\r\n <p>The Page or file you were looking for was not found.<br/>Please make sure that you have typed the correct URL.</p>\r\n\r\n </div>\r\n </div>\r\n</body>\r\n</html>' to include '<h1>testContent2</h1>'
at Object.eval sandbox-script.js:3:61).
github-actions / Test Report
Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Request page and validate content ► PageApiApiV1Page ► Body contains <h1>testContent3</h1>
Failed test found in:
/tmp/build-reports-test/build-reports-test-Postman page/dotcms-postman/target/failsafe-reports/TEST-PagesResourceTests.xml
Error:
AssertionFailure: expected '\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html>\r\n<head>\r\n<title>dotCMS: Page not found (404 error)</title>\r\n\r\n<style type="text/css">\r\nbody {\r\n font-family: helvetica, san-serif;\r\n padding: 20px;\r\n margin-top: 0px;\r\n}\r\n\r\n#main {\r\n width: 400px;\r\n}\r\n\r\n#footer {\r\n text-align: center;\r\n}\r\n\r\nh1 {\r\n font-size: 20px;\r\n}\r\n\r\n#logo {\r\n float: left;\r\n}\r\n\r\n#text {\r\n float: left;\r\n}\r\n</style>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n <div id="main">\r\n <div id="text">\r\n\r\n <h1>dotCMS: Page not found (404 error)</h1>\r\n\r\n <p>The Page or file you were looking for was not found.<br/>Please make sure that you have typed the correct URL.</p>\r\n\r\n </div>\r\n </div>\r\n</body>\r\n</html>' to include '<h1>testContent3</h1>'
Raw output
Failed 1 times.
Collection JSON ID: f9abea8b-4376-484c-94d0-7a7015f27f6c.
Collection name: Page API - [api/v1/page].
Request name: Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Request page and validate content.
Test description: Body contains <h1>testContent3</h1>.
Error message: expected '\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html>\r\n<head>\r\n<title>dotCMS: Page not found (404 error)</title>\r\n\r\n<style type="text/css">\r\nbody {\r\n font-family: helvetica, san-serif;\r\n padding: 20px;\r\n margin-top: 0px;\r\n}\r\n\r\n#main {\r\n width: 400px;\r\n}\r\n\r\n#footer {\r\n text-align: center;\r\n}\r\n\r\nh1 {\r\n font-size: 20px;\r\n}\r\n\r\n#logo {\r\n float: left;\r\n}\r\n\r\n#text {\r\n float: left;\r\n}\r\n</style>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n <div id="main">\r\n <div id="text">\r\n\r\n <h1>dotCMS: Page not found (404 error)</h1>\r\n\r\n <p>The Page or file you were looking for was not found.<br/>Please make sure that you have typed the correct URL.</p>\r\n\r\n </div>\r\n </div>\r\n</body>\r\n</html>' to include '<h1>testContent3</h1>'.
Stacktrace: AssertionError: expected '\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\r\n<html>\r\n<head>\r\n<title>dotCMS: Page not found (404 error)</title>\r\n\r\n<style type="text/css">\r\nbody {\r\n font-family: helvetica, san-serif;\r\n padding: 20px;\r\n margin-top: 0px;\r\n}\r\n\r\n#main {\r\n width: 400px;\r\n}\r\n\r\n#footer {\r\n text-align: center;\r\n}\r\n\r\nh1 {\r\n font-size: 20px;\r\n}\r\n\r\n#logo {\r\n float: left;\r\n}\r\n\r\n#text {\r\n float: left;\r\n}\r\n</style>\r\n\r\n\r\n\r\n</head>\r\n<body>\r\n <div id="main">\r\n <div id="text">\r\n\r\n <h1>dotCMS: Page not found (404 error)</h1>\r\n\r\n <p>The Page or file you were looking for was not found.<br/>Please make sure that you have typed the correct URL.</p>\r\n\r\n </div>\r\n </div>\r\n</body>\r\n</html>' to include '<h1>testContent3</h1>'
at Object.eval sandbox-script.js:4:61).
github-actions / Test Report
Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Waiting page to be live ► PageApiApiV1Page ► 200 Status check failed due to timeout
Failed test found in:
/tmp/build-reports-test/build-reports-test-Postman page/dotcms-postman/target/failsafe-reports/TEST-PagesResourceTests.xml
Error:
AssertionFailure: timeout reached after 31104ms. Page with status Not Found - 10 attempts
Raw output
Failed 1 times.
Collection JSON ID: f9abea8b-4376-484c-94d0-7a7015f27f6c.
Collection name: Page API - [api/v1/page].
Request name: Add Content [/api/v1/page/{page-id}/content] / Live page cache invalidation / Waiting page to be live.
Test description: 200 Status check failed due to timeout.
Error message: timeout reached after 31104ms. Page with status Not Found - 10 attempts.
Stacktrace: AssertionError: timeout reached after 31104ms. Page with status Not Found - 10 attempts
at Object.eval sandbox-script.js:1:52).
github-actions / Test Report
Check Cache-Control ► PageApiApiV1Page ► Cache-Control is correct
Failed test found in:
/tmp/build-reports-test/build-reports-test-Postman page/dotcms-postman/target/failsafe-reports/TEST-PagesResourceTests.xml
Error:
AssertionFailure: expected response to have header with key 'Cache-Control'
Raw output
Failed 2 times.
Collection JSON ID: f9abea8b-4376-484c-94d0-7a7015f27f6c.
Collection name: Page API - [api/v1/page].
Request name: Check Cache-Control.
Test description: Cache-Control is correct.
Error message: expected response to have header with key 'Cache-Control'.
Stacktrace: AssertionError: expected response to have header with key 'Cache-Control'
at Object.eval sandbox-script.js:1:132).