From 073a8d6d290d155956d3cdbb5b50330e56104354 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Tue, 21 Jul 2020 09:28:56 -0400 Subject: [PATCH] Fix the evm_application_spec for updated tabelize The tablize format from more_core_extensions changed in the latest release from using '-+-' to '-|-' as the header separator which breaks this evm:status spec. --- spec/lib/tasks/evm_application_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/lib/tasks/evm_application_spec.rb b/spec/lib/tasks/evm_application_spec.rb index 4f3842f284a..27b9798b78a 100644 --- a/spec/lib/tasks/evm_application_spec.rb +++ b/spec/lib/tasks/evm_application_spec.rb @@ -153,13 +153,13 @@ def pad(val, col, adjust = :rjust) expected_output = <<~SERVER_INFO Checking EVM status... #{header(:Region) } | #{header(:Zone, :ljust)} | Server | Status | PID | SPID | Workers | Version | #{header(:Started, :ljust) } | #{header(:Heartbeat, :ljust) } | MB Usage | Roles - -#{line_for(:Region)}-+-#{line_for(:Zone) }-+--------------------------+---------+-----+------+---------+---------+-#{line_for(:Started) }-+-#{line_for(:Heartbeat) }-+----------+------- + -#{line_for(:Region)}-|-#{line_for(:Zone) }-|--------------------------|---------|-----|------|---------|---------|-#{line_for(:Started) }-|-#{line_for(:Heartbeat) }-|----------|------- #{pad(rgn, :Region)} | #{local.zone.name } | #{ local.name } | started | | | 1 | 9.9.9.9 | #{local_started_on } | #{local_heartbeat } | | * marks a master appliance #{header(:Region) } | #{header(:Zone, :ljust)} | Type | Status | #{header(:PID) } | SPID | Server | Queue | Started | Heartbeat | MB Usage - -#{line_for(:Region)}-+-#{line_for(:Zone) }-+------+--------+-#{line_for(:PID) }-+------+--------------------------+-------+---------+-----------+---------- + -#{line_for(:Region)}-|-#{line_for(:Zone) }-|------|--------|-#{line_for(:PID) }-|------|--------------------------|-------|---------|-----------|---------- #{pad(rgn, :Region)} | #{local.zone.name } | Ui | ready | #{pad(ui.pid, :PID) } | | #{ local.name } | | | | SERVER_INFO @@ -178,7 +178,7 @@ def pad(val, col, adjust = :rjust) expected_output = <<~SERVER_INFO Checking EVM status... #{header(:Zone, :ljust) } | Server | Status | Workers | #{header(:Started, :ljust) } | #{header(:Heartbeat, :ljust).rstrip} - -#{line_for(:Zone) }-+---------------------------+---------+---------+-#{line_for(:Started) }-+-#{line_for(:Heartbeat)}- + -#{line_for(:Zone) }-|---------------------------|---------|---------|-#{line_for(:Started) }-|-#{line_for(:Heartbeat)}- #{pad(local.zone.name, :Zone, :ljust) } | #{ local.name } | started | 1 | #{local_started_on } | #{local_heartbeat} #{pad(remote.zone.name, :Zone, :ljust)} | #{ remote.name }* | started | 2 | #{remote_started_on } | @@ -186,7 +186,7 @@ def pad(val, col, adjust = :rjust) * marks a master appliance #{header(:Zone, :ljust) } | Type | Status | #{header(:PID) } | Server - -#{line_for(:Zone) }-+---------------+--------+-#{line_for(:PID) }-+-------------------------- + -#{line_for(:Zone) }-|---------------|--------|-#{line_for(:PID) }-|-------------------------- #{pad(local.zone.name, :Zone, :ljust) } | Ui | ready | #{pad(ui.pid, :PID) } | #{ local.name } #{pad(remote.zone.name, :Zone, :ljust)} | Base::Refresh | ready | #{pad(refresh.pid, :PID)} | #{ remote.name } #{pad(remote.zone.name, :Zone, :ljust)} | Generic | ready | #{pad(generic.pid, :PID)} | #{ remote.name }