Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Add assert in test to ensure message field is always present
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-farache authored and openshift-merge-robot committed Jun 12, 2023
1 parent 85a3cc3 commit bdcfa6c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ public void testGetStatusWithFailedWorkflowAndTask() throws Exception {
.andExpect(MockMvcResultMatchers.jsonPath("$.works[1].type", Matchers.is(WorkType.TASK.name())))
.andExpect(
MockMvcResultMatchers.jsonPath("$.works[1].status", Matchers.is(WorkStatus.COMPLETED.name())))
.andExpect(MockMvcResultMatchers.jsonPath("$.works[1].message", Matchers.is("")))
.andExpect(MockMvcResultMatchers.jsonPath("$.works[2].name", Matchers.is(testFailedWorkFlowTask1)))
.andExpect(MockMvcResultMatchers.jsonPath("$.works[2].type", Matchers.is(WorkType.TASK.name())))
.andExpect(MockMvcResultMatchers.jsonPath("$.works[2].status", Matchers.is(WorkStatus.FAILED.name())))
Expand Down

0 comments on commit bdcfa6c

Please sign in to comment.