Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cncf/cnf-conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
denverwilliams committed Jan 13, 2021
2 parents 24fa07e + 58b8ea3 commit 3cc9ad2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/tasks/litmus_setup.cr
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ module LitmusManager
puts "Checking experiment status #{experimentStatus_cmd}" if check_verbose(args)
experimentStatus = experimentStatus_response.to_s
LOGGING.info "#{chaos_experiment_name} experiment status: "+experimentStatus

emoji_test_failed= "🗡️💀♻️"
if (experimentStatus != "Waiting for Job Creation" && experimentStatus != "Running" && experimentStatus != "Completed")
resp = upsert_failed_task("pod-network-latency","✖️ FAILURE: #{chaos_experiment_name} chaos test failed 🗡️ 💀♻️")
resp = upsert_failed_task("pod-network-latency","✖️ FAILURE: #{chaos_experiment_name} chaos test failed #{emoji_test_failed}")
resp
end
end
Expand Down Expand Up @@ -63,10 +65,11 @@ end
puts "verdict: #{verdict_response.to_s}" if check_verbose(args)
verdict = verdict_response.to_s

emoji_test_failed= "🗡️💀♻️"
if verdict == "Pass"
true
else
puts "#{chaos_experiment_name} chaos test failed 🗡️💀♻️"
else
puts "#{chaos_experiment_name} chaos test failed #{emoji_test_failed}"
false
end
end
Expand Down

0 comments on commit 3cc9ad2

Please sign in to comment.