Skip to content

Commit

Permalink
#25736 qa wants postman to fail is we pass an invalid CT (#27520)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrizzio-dotCMS authored Feb 7, 2024
1 parent fa55979 commit 189ed8f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dotCMS/src/curl-test/Announcements.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,17 @@
"pm.test(\"Announcements are created\", function() {",
" pm.expect(contents,'contents were created').not.undefined;",
" pm.expect(contents.length,'Verify contents length').to.be.at.least(3); ",
"",
"});",
"",
"pm.test(\"Announcements are error free\", function() {",
" for(let i in contents){",
" const content = contents[i];",
" const key = Object.keys(content)[0];",
" const object = content[key]; ",
" // humoring QA ",
" pm.expect(object.errorMessage,'No error should be reported back').to.be.undefined;",
" }",
"});"
],
"type": "text/javascript"
Expand Down

0 comments on commit 189ed8f

Please sign in to comment.