From 6bba04c273603b3bc0a7636dab0cd3509e30582c Mon Sep 17 00:00:00 2001 From: valentinogiardino Date: Mon, 17 Feb 2025 13:47:26 -0300 Subject: [PATCH] test karate tests in pipeline --- test-karate/src/test/java/graphql/ftm/setup.feature | 2 +- .../src/test/java/tests/graphql/ftm/CheckingTimeMachine.feature | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test-karate/src/test/java/graphql/ftm/setup.feature b/test-karate/src/test/java/graphql/ftm/setup.feature index 1415993a67b7..1764393e9907 100644 --- a/test-karate/src/test/java/graphql/ftm/setup.feature +++ b/test-karate/src/test/java/graphql/ftm/setup.feature @@ -36,7 +36,7 @@ Feature: Setting up the Future Time Machine Test * def newContentPiceOneVersion2 = callonce read('classpath:graphql/ftm/newContentVersion.feature') { contentTypeId: '#(contentTypeId)', identifier: '#(contentPieceOneId)', title: 'test 1 v2 (This ver will be publshed in the future)', publishDate: '#(formattedFutureDateTime)' } * def newContentPiceTwoVersion2 = callonce read('classpath:graphql/ftm/newContentVersion.feature') { contentTypeId: '#(contentTypeId)', identifier: '#(contentPieceTwoId)', title: 'test 2 v2' } - # Lets create a new non-published piece of content wiht a publish date in the future + # Lets create a new non-published piece of content with a publish date in the future * def nonPublishedPieceResult = callonce read('classpath:graphql/ftm/newContent.feature') { contentTypeId: '#(contentTypeId)', title: 'Working version Only! with publish date', publishDate: '#(formattedFutureDateTime)', action: 'NEW' } * def nonPublishedPiece = nonPublishedPieceResult.response.entity.results * def nonPublishedPieceId = nonPublishedPiece.map(result => Object.keys(result)[0]) diff --git a/test-karate/src/test/java/tests/graphql/ftm/CheckingTimeMachine.feature b/test-karate/src/test/java/tests/graphql/ftm/CheckingTimeMachine.feature index 5f84444a0526..88659a5119aa 100644 --- a/test-karate/src/test/java/tests/graphql/ftm/CheckingTimeMachine.feature +++ b/test-karate/src/test/java/tests/graphql/ftm/CheckingTimeMachine.feature @@ -13,7 +13,7 @@ Feature: Test Time Machine functionality Given url baseUrl + '/api/v1/page/render/'+pageUrl+'?language_id=1&mode=LIVE' And headers commonHeaders When method GET - Then status 200 + Then status 500 * def pageContents = extractContentlets (response) * def titles = pageContents.map(x => x.title) # This is the first version of the content, test 1 v2 as the title says it will be published in the future