Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hwdsl2 committed Sep 12, 2023
1 parent a207d31 commit 174408f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test_set_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ jobs:
ANSWERS
netstat -anpu | grep openvpn
Expand All @@ -115,6 +116,26 @@ jobs:
netstat -anpu | grep openvpn && exit 1
rm -f ~/client*.ovpn
bash openvpn.sh <<ANSWERS
y
invalidfqdn
vpn.example.com
ANSWERS
grep -q 'local vpn.example.com' /etc/openvpn/server/server.conf
grep -q 'remote vpn.example.com 1194' /etc/openvpn/server/client-common.txt
grep -q 'remote vpn.example.com 1194' ~/client.ovpn
bash openvpn.sh <<ANSWERS
5
y
ANSWERS
exit 0
EOF
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/test_set_3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
ANSWERS
sudo netstat -anpu | grep openvpn
Expand All @@ -100,3 +101,23 @@ jobs:
sudo netstat -anpu | grep openvpn && exit 1
rm -f ~/client*.ovpn
sudo bash openvpn.sh <<ANSWERS
y
invalidfqdn
vpn.example.com
ANSWERS
grep -q 'local vpn.example.com' /etc/openvpn/server/server.conf
grep -q 'remote vpn.example.com 1194' /etc/openvpn/server/client-common.txt
grep -q 'remote vpn.example.com 1194' ~/client.ovpn
sudo bash openvpn.sh <<ANSWERS
5
y
ANSWERS

0 comments on commit 174408f

Please sign in to comment.