Skip to content

Commit

Permalink
Merge pull request #1858 from macaktom/ip-addresses-emoji
Browse files Browse the repository at this point in the history
emoji: Add emojis for ip_addresses test
  • Loading branch information
agentpoyo authored Jan 19, 2024
2 parents f704054 + 1bc1adc commit a06502f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tasks/workload/configuration.cr
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ task "ip_addresses" do |_, args|

cdir = FileUtils.pwd()
response = String::Builder.new
emoji_network_runtime = "📶🏃⏲️"
helm_directory = config.cnf_config[:helm_directory]
helm_chart_path = config.cnf_config[:helm_chart_path]
if File.directory?(helm_chart_path)
Expand All @@ -154,16 +155,16 @@ task "ip_addresses" do |_, args|
matching_line = line_parts.join(":").strip()
stdout_failure(" * In file #{file_name}: #{matching_line}")
end
resp = upsert_failed_task(testsuite_task,"✖️ FAILED: IP addresses found", task_start_time)
resp = upsert_failed_task(testsuite_task,"✖️ FAILED: IP addresses found #{emoji_network_runtime}", task_start_time)
else
resp = upsert_passed_task(testsuite_task, "✔️ PASSED: No IP addresses found", task_start_time)
resp = upsert_passed_task(testsuite_task, "✔️ PASSED: No IP addresses found #{emoji_network_runtime}", task_start_time)
end
resp
else
# TODO If no helm chart directory, exit with 0 points
# ADD SKIPPED tag for points.yml to allow for 0 points
Dir.cd(cdir)
resp = upsert_passed_task(testsuite_task, "✔️ PASSED: No IP addresses found", task_start_time)
resp = upsert_passed_task(testsuite_task, "✔️ PASSED: No IP addresses found #{emoji_network_runtime}", task_start_time)
end
end
end
Expand Down

0 comments on commit a06502f

Please sign in to comment.