Skip to content

Commit

Permalink
Merge pull request #1976 from cnti-testcatalog/issue-1974
Browse files Browse the repository at this point in the history
Update reliability.cr to remove unnecessary log output
  • Loading branch information
agentpoyo authored Apr 15, 2024
2 parents 5a8da5d + f9089d2 commit 8114e5d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/tasks/workload/reliability.cr
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,10 @@ task "pod_delete", ["install_litmus"] do |t, args|
if spec_labels.as_h.has_key?(key) && spec_labels[key] == value
current_pod_key = key
current_pod_value = value
puts "Match found for key: #{key} and value: #{value}"
Log.info { "Match found for key: #{key} and value: #{value}" }
true
else
puts "Match not found for key: #{key} and value: #{value}"
Log.info { "Match not found for key: #{key} and value: #{value}" }
false
end
end
Expand All @@ -432,9 +432,7 @@ task "pod_delete", ["install_litmus"] do |t, args|

if test_passed
Log.info { "Running for: #{spec_labels}"}
puts "Running for: #{spec_labels}"
Log.info { "Spec Hash: #{args.named["pod_labels"]?}" }
puts "Spec Hash: #{args.named["pod_labels"]?}"
if args.named["offline"]?
Log.info { "install resilience offline mode" }
AirGap.image_pull_policy("#{OFFLINE_MANIFESTS_PATH}/pod-delete-experiment.yaml")
Expand Down Expand Up @@ -488,9 +486,7 @@ task "pod_delete", ["install_litmus"] do |t, args|
).to_s
end

puts "template: #{template}"
Log.info { "template: #{template}" }

File.write("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml", template)
KubectlClient::Apply.file("#{destination_cnf_dir}/#{chaos_experiment_name}-chaosengine.yml")
LitmusManager.wait_for_test(test_name,chaos_experiment_name,total_chaos_duration,args, namespace: app_namespace)
Expand Down

0 comments on commit 8114e5d

Please sign in to comment.