Skip to content

Commit

Permalink
backport of #3168
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood committed Jun 8, 2022
1 parent 7eaae54 commit 69d9d0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions services/controllerhandler/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ const messageConsumer = async function(msg) {
// that we get back from the controllers
case "kubernetes:route:migrate":
switch (meta.jobStatus) {
case "complete":
case "succeeded":
try {
// since the advanceddata contains a base64 encoded value, we have to decode it first
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/active-standby/deploy-active-standby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
body_format: json
body: '{ "query": "query($id: Int!) {taskById(id: $id){status}}", "variables": {"id":{{ apiresponse.json.data.switchActiveStandby.id }}}}'
register: taskresult
until: taskresult.json.data is defined and (taskresult.json.data.taskById.status == "succeeded" or taskresult.json.data.taskById.status == "failed")
until: taskresult.json.data is defined and (taskresult.json.data.taskById.status == "complete" or taskresult.json.data.taskById.status == "succeeded" or taskresult.json.data.taskById.status == "failed")
retries: 20
delay: 10
- name: "{{ testname }} - fail if task fails"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/tasks/create-register-and-test-image-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
body_format: json
body: '{ "query": "query($taskId: Int!) {taskById(id:$taskId){status}}", "variables": {"taskId": {{ invokeRegisteredTaskApiResponse.json.data.invokeRegisteredTask.id }}}}'
register: result
until: result.json.data.taskById.status == "succeeded"
until: (result.json.data.taskById.status == "complete" or result.json.data.taskById.status == "succeeded")
retries: 90
delay: 20

0 comments on commit 69d9d0b

Please sign in to comment.