(DIO-2700) Vmfloaty should not use the Colorize gem

removing cosmetic use of colorize
This commit is contained in:
Samuel Beaulieu 2022-02-16 13:07:05 -06:00
parent 1b64ce3b03
commit 6b9b4ea626
No known key found for this signature in database
GPG key ID: 12030F74136D0F34
5 changed files with 6 additions and 8 deletions

View file

@ -466,13 +466,13 @@ describe Utils do
subject
end
it 'prints in red when destroyed' do
it 'prints DESTROYED and hostname when destroyed' do
fallback = { 'vmpooler_fallback' => 'vmpooler' }
service.config.merge! fallback
response_body_vmpooler[fqdn_hostname]['state'] = 'destroyed'
default_output_second_line_red = " - #{fqdn} (destroyed, #{template}, 7.67/48 hours, user: bob, role: agent)".red
default_output_second_line = " - DESTROYED #{fqdn}"
expect($stdout).to receive(:puts).with(default_output_first_line)
expect($stdout).to receive(:puts).with(default_output_second_line_red)
expect($stdout).to receive(:puts).with(default_output_second_line)
subject
end