mirror of
https://github.com/cmur2/openvpn-status-web.git
synced 2025-06-28 14:30:23 +02:00
gem: support date format used by OpenVPN 2.5
- smooth fallback
This commit is contained in:
@ -76,4 +76,8 @@ describe OpenVPNStatusWeb::Parser::ModernStateless do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
it 'parses status-version 2 of OpenVPN 2.5' do
|
||||
expect(status_2_5_v2).not_to be_nil
|
||||
end
|
||||
end
|
||||
|
@ -16,6 +16,11 @@ def status_v2
|
||||
OpenVPNStatusWeb::Parser::V2.new.parse_status_log text
|
||||
end
|
||||
|
||||
def status_2_5_v2
|
||||
text = File.binread('examples/status2_5.v2')
|
||||
OpenVPNStatusWeb::Parser::V2.new.parse_status_log text
|
||||
end
|
||||
|
||||
def status_v3
|
||||
text = File.binread('examples/status.v3')
|
||||
OpenVPNStatusWeb::Parser::V3.new.parse_status_log text
|
||||
|
Reference in New Issue
Block a user