Update tests
This commit is contained in:
parent
2af26b80f5
commit
9df4f937fa
22
.github/workflows/test_set_1.yml
vendored
22
.github/workflows/test_set_1.yml
vendored
@ -245,6 +245,10 @@ jobs:
|
||||
3
|
||||
ANSWERS
|
||||
|
||||
bash ikev2.sh <<ANSWERS | grep -i "2 clients"
|
||||
3
|
||||
ANSWERS
|
||||
|
||||
bash ikev2.sh <<ANSWERS
|
||||
4
|
||||
nonexistclient
|
||||
@ -258,6 +262,16 @@ jobs:
|
||||
|
||||
ANSWERS
|
||||
|
||||
bash ikev2.sh <<ANSWERS
|
||||
5
|
||||
vpnclient2
|
||||
y
|
||||
ANSWERS
|
||||
|
||||
bash ikev2.sh <<ANSWERS | grep -i "1 client"
|
||||
3
|
||||
ANSWERS
|
||||
|
||||
bash ikev2.sh <<ANSWERS 2>&1 | grep -i "abort"
|
||||
2
|
||||
vpnclient2
|
||||
@ -332,6 +346,7 @@ jobs:
|
||||
|
||||
bash ikev2.sh --listclients | grep "vpnclient1 \+valid"
|
||||
bash ikev2.sh --listclients | grep "vpnclient2 \+valid"
|
||||
bash ikev2.sh --listclients | grep "2 clients"
|
||||
|
||||
bash ikev2.sh --revokeclient nonexistclient 2>&1 | grep -i "does not exist"
|
||||
bash ikev2.sh --revokeclient vpnclient2 <<ANSWERS
|
||||
@ -342,6 +357,13 @@ jobs:
|
||||
|
||||
bash ikev2.sh --revokeclient vpnclient2 2>&1 | grep -i "already been revoked"
|
||||
bash ikev2.sh --exportclient vpnclient2 2>&1 | grep -i "revoked"
|
||||
|
||||
bash ikev2.sh --deleteclient nonexistclient 2>&1 | grep -i "does not exist"
|
||||
bash ikev2.sh --deleteclient vpnclient2 <<ANSWERS
|
||||
y
|
||||
ANSWERS
|
||||
bash ikev2.sh --listclients | grep "1 client"
|
||||
|
||||
bash ikev2.sh -h 2>&1 | grep -i "usage:"
|
||||
bash ikev2.sh --invalidoption 2>&1 | grep -i "usage:"
|
||||
|
||||
|
22
.github/workflows/test_set_2.yml
vendored
22
.github/workflows/test_set_2.yml
vendored
@ -251,6 +251,10 @@ jobs:
|
||||
3
|
||||
ANSWERS
|
||||
|
||||
bash ikev2.sh <<ANSWERS | grep -i "2 clients"
|
||||
3
|
||||
ANSWERS
|
||||
|
||||
bash ikev2.sh <<ANSWERS
|
||||
4
|
||||
nonexistclient
|
||||
@ -264,6 +268,16 @@ jobs:
|
||||
|
||||
ANSWERS
|
||||
|
||||
bash ikev2.sh <<ANSWERS
|
||||
5
|
||||
vpnclient2
|
||||
y
|
||||
ANSWERS
|
||||
|
||||
bash ikev2.sh <<ANSWERS | grep -i "1 client"
|
||||
3
|
||||
ANSWERS
|
||||
|
||||
bash ikev2.sh <<ANSWERS 2>&1 | grep -i "abort"
|
||||
2
|
||||
vpnclient2
|
||||
@ -343,6 +357,7 @@ jobs:
|
||||
|
||||
bash ikev2.sh --listclients | grep "vpnclient1 \+valid"
|
||||
bash ikev2.sh --listclients | grep "vpnclient2 \+valid"
|
||||
bash ikev2.sh --listclients | grep "2 clients"
|
||||
|
||||
bash ikev2.sh --revokeclient nonexistclient 2>&1 | grep -i "does not exist"
|
||||
bash ikev2.sh --revokeclient vpnclient2 <<ANSWERS
|
||||
@ -353,6 +368,13 @@ jobs:
|
||||
|
||||
bash ikev2.sh --revokeclient vpnclient2 2>&1 | grep -i "already been revoked"
|
||||
bash ikev2.sh --exportclient vpnclient2 2>&1 | grep -i "revoked"
|
||||
|
||||
bash ikev2.sh --deleteclient nonexistclient 2>&1 | grep -i "does not exist"
|
||||
bash ikev2.sh --deleteclient vpnclient2 <<ANSWERS
|
||||
y
|
||||
ANSWERS
|
||||
bash ikev2.sh --listclients | grep "1 client"
|
||||
|
||||
bash ikev2.sh -h 2>&1 | grep -i "usage:"
|
||||
bash ikev2.sh --invalidoption 2>&1 | grep -i "usage:"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user