diff --git a/spec/features/l2tp_spec.rb b/spec/features/l2tp_spec.rb index ba3f940..7000575 100644 --- a/spec/features/l2tp_spec.rb +++ b/spec/features/l2tp_spec.rb @@ -55,7 +55,7 @@ # VPN already exists, not overwriting - arguments = 'create -c VPNTestL2TP -e northpole.example.com -u Bob -p letm3in -g AnotherL2TPGroup -s s3cret -t' + arguments = 'create -c VPNTestL2TP -e northpole.example.com -u Bob -p letm3in -g AnothL2TPGroup -s s3cret -t' output, status = Macosvpn.sudo arguments: arguments expect(output).to include 'You already have a service VPNTestL2TP' expect(output).to include 'If you want me to overwrite it' @@ -105,7 +105,7 @@ # Overwriting existing VPN - arguments = 'create -l VPNTestL2TP -e hawaii.example.com -u Carol -p letm3in -g AnotherL2TPGroup -s s3cret --split --force -t' + arguments = 'create -l VPNTestL2TP -e hawaii.example.com -u Carol -p letm3in -g AnothL2TPGroup -s s3cret --split --force -t' output, status = Macosvpn.sudo arguments: arguments expect(output).to include 'You already have a service VPNTestL2TP' expect(output).to include 'Successfully created L2TP over IPSec VPN VPNTestL2TP' @@ -117,7 +117,7 @@ expect(service.ipsec_authentication_method).to eq 'SharedSecret' expect(service.ipsec_shared_secret_id).to be_present expect(service.ipsec_shared_secret_encryption).to eq 'Keychain' - expect(service.ipsec_local_identifier).to eq 'AnotherL2TPGroup' + expect(service.ipsec_local_identifier).to eq 'AnothL2TPGroup' expect(service.ipsec_local_identifier_type).to eq 'KeyID' expect(service.ipsec_remote_address).to be nil expect(service.ipsec_xauth_name).to be nil diff --git a/spec/support/scutil/service.rb b/spec/support/scutil/service.rb index 6c76141..f147628 100644 --- a/spec/support/scutil/service.rb +++ b/spec/support/scutil/service.rb @@ -78,7 +78,6 @@ def ppp_common_remote_address end def ppp_disconnect_on_fast_user_switch - #p attributes attributes.fetch('PPP', {})['DisconnectOnFastUserSwitch'] end