Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the evm_application_spec for updated tabelize #20373

Merged
merged 1 commit into from
Jul 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions spec/lib/tasks/evm_application_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -178,15 +178,15 @@ 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 } |

All rows have the values: Region=#{rgn}, Version=9.9.9.9
* 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 }
Expand Down