Sha256: acfe496dcc573ea87c4073435bbd7964765d54d2f7a8e0e2662d585b6429d02f
Contents?: true
Size: 877 Bytes
Versions: 3
Compression:
Stored size: 877 Bytes
Contents
require 'spec_helper' feature 'Dashboard' do it 'should has uptime information' do visit '/' expect(page).to have_content /Uptime(\ )+[0-9]+\ days\ [0-9]+h\ [0-9]+m/ end it 'should has cpu load information' do visit '/' expect(page).to have_content /CPU\ usage(\ )+[0-9]+/ end it 'should has ram usage information' do visit '/' expect(page).to have_content /RAM\ used\ [0-9]+(\.[0-9]+)?Gb\ from\ [0-9]+(\.[0-9]+)?Gb\ total/ end it 'should show swap usage' do visit '/' expect(page).to have_content /Swap\ used\ [0-9]+(\.[0-9]+)?Gb\ from\ [0-9](\.[0-9]+)?Gb\ total/ end it 'should show network interfaces' do visit '/' expect(page).to have_content /lo.*127\.0\.0\.1/ end it 'should show disks status' do visit '/' expect(page).to have_content /\/.*used\ [0-9\.]+Gb\ from\ [0-9\.]+Gb\ total/ end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ServState-0.1.3 | spec/integration/dashboard_spec.rb |
ServState-0.1.2 | spec/dashboard_spec.rb |
ServState-0.1.1 | spec/dashboard_spec.rb |