From 48124ccc5fc456554b2934a6cfb1c2cb4b205b1c Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sat, 20 Feb 2021 15:51:40 -0600 Subject: [PATCH] Update tests --- .github/workflows/main.yml | 126 +++++++++++++++++++++---------------- 1 file changed, 72 insertions(+), 54 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fc09a91..7fd7e20 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -123,16 +123,21 @@ jobs: VPN_IPSEC_PSK='your_ipsec_pre_shared_key' \ VPN_USER='your_vpn_username' \ VPN_PASSWORD='your_vpn_password' \ + VPN_DNS_SRV1='1.1.1.1' \ + VPN_DNS_SRV2='1.0.0.1' \ sh vpnsetup.sh if [ "$1" = "centos" ] || [ "$1" = "amazon" ]; then systemctl restart ipsec fi sleep 10 - grep "your_ipsec_pre_shared_key" /etc/ipsec.secrets - grep "your_vpn_username" /etc/ppp/chap-secrets - grep "your_vpn_password" /etc/ppp/chap-secrets - grep "your_vpn_username" /etc/ipsec.d/passwd + grep -q "your_ipsec_pre_shared_key" /etc/ipsec.secrets + grep -q "your_vpn_username" /etc/ppp/chap-secrets + grep -q "your_vpn_password" /etc/ppp/chap-secrets + grep -q "your_vpn_username" /etc/ipsec.d/passwd + grep -q 'modecfgdns="1.1.1.1 1.0.0.1"' /etc/ipsec.conf + grep -q 'ms-dns 1.1.1.1' /etc/ppp/options.xl2tpd + grep -q 'ms-dns 1.0.0.1' /etc/ppp/options.xl2tpd wget -t 3 -T 30 -nv -O ikev2.sh https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/ikev2setup.sh # hwdsl2 sed -i '/swan_ver_latest=/s/^/#/' ikev2.sh @@ -146,9 +151,9 @@ jobs: y ANSWERS - ls -ld /etc/ipsec.d/vpnclient*.mobileconfig - ls -ld /etc/ipsec.d/vpnclient*.sswan - ls -ld /etc/ipsec.d/vpnclient*.p12 + ls -ld /etc/ipsec.d/vpnclient.mobileconfig + ls -ld /etc/ipsec.d/vpnclient.sswan + ls -ld /etc/ipsec.d/vpnclient.p12 if [ "$1" = "centos" ] || [ "$1" = "amazon" ]; then systemctl restart ipsec sleep 10 @@ -167,9 +172,9 @@ jobs: ANSWERS - ls -ld /etc/ipsec.d/vpnclient2*.mobileconfig - ls -ld /etc/ipsec.d/vpnclient2*.sswan - ls -ld /etc/ipsec.d/vpnclient2*.p12 + ls -ld /etc/ipsec.d/vpnclient2.mobileconfig + ls -ld /etc/ipsec.d/vpnclient2.sswan + ls -ld /etc/ipsec.d/vpnclient2.p12 rm -f /etc/ipsec.d/vpnclient2* bash ikev2.sh <