Skip to content

Commit

Permalink
test karate tests in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinogiardino committed Feb 17, 2025
1 parent 3ae0421 commit 6bba04c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test-karate/src/test/java/graphql/ftm/setup.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bba04c

Please sign in to comment.