Skip to content

Commit

Permalink
Add integration tests for --split
Browse files Browse the repository at this point in the history
  • Loading branch information
halo committed Jan 28, 2020
1 parent c04faf7 commit 66108b3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions spec/features/l2tp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
expect(service.ppp_auth_password_id).to be_present
expect(service.ppp_auth_password_encryption).to eq 'Keychain'
expect(service.ppp_common_remote_address).to eq 'vpntestl2tp.example.com'
expect(service.ppp_disconnect_on_fast_user_switch).to eq '1'
expect(service.ppp_disconnect_on_logout).to eq '0'
expect(service.ppp_disconnect_on_fast_user_switch).to eq 1
expect(service.ppp_disconnect_on_logout).to eq 0
expect(service.ipv4_override_primary).to eq 1

sleep 0.5
key = Keychain.find(name: "VPNTestL2TP#{id}", kind: :l2tp_password)
Expand Down Expand Up @@ -83,8 +84,8 @@
expect(service.ppp_auth_password_id).to_not include 'XAUTH'
expect(service.ppp_auth_password_encryption).to eq 'Keychain'
expect(service.ppp_common_remote_address).to eq 'vpntestl2tp.example.com'
expect(service.ppp_disconnect_on_fast_user_switch).to eq '1'
expect(service.ppp_disconnect_on_logout).to eq '0'
expect(service.ppp_disconnect_on_fast_user_switch).to eq 1
expect(service.ppp_disconnect_on_logout).to eq 0

sleep 0.5
key = Keychain.find(name: "VPNTestL2TP#{id}", kind: :l2tp_password)
Expand Down Expand Up @@ -129,8 +130,9 @@
expect(service.ppp_auth_password_id).to be_present
expect(service.ppp_auth_password_encryption).to eq 'Keychain'
expect(service.ppp_common_remote_address).to eq 'hawaii.example.com'
expect(service.ppp_disconnect_on_fast_user_switch).to eq '0'
expect(service.ppp_disconnect_on_logout).to eq '1'
expect(service.ppp_disconnect_on_fast_user_switch).to eq 0
expect(service.ppp_disconnect_on_logout).to eq 1
expect(service.ipv4_override_primary).to be nil

sleep 0.5
key = Keychain.find(name: "VPNTestL2TP#{id}", kind: :l2tp_password)
Expand Down

0 comments on commit 66108b3

Please sign in to comment.