Revert "ci: cram: random: network_security.t cram test fails randomly due to missing 80/tcp port and 53/tcp port"
This reverts commit adc82ee3fd.
Problem: cram tests fail https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/15239300617#L983
Referene: PPW-455, PPW-887
Signed-off-by: FAOUZI YAHYA <faouzi.yahya_ext@softathome.com>
This commit is contained in:
parent
464d3c9530
commit
72f0994ee6
@ -1,22 +1,8 @@
|
||||
Create R alias:
|
||||
|
||||
$ alias R="${CRAM_REMOTE_COMMAND:-}"
|
||||
|
||||
Check that NO port is open from WAN:
|
||||
|
||||
$ nmap --open 10.0.0.2 | grep open
|
||||
[1]
|
||||
|
||||
Wait for services to become ready:
|
||||
|
||||
$ R '
|
||||
> timeout=10
|
||||
> while [ $timeout -gt 0 ] && (! pgrep lighttpd >/dev/null || ! pgrep dnsmasq >/dev/null); do
|
||||
> sleep 1
|
||||
> timeout=$((timeout - 1))
|
||||
> done
|
||||
> '
|
||||
|
||||
Check that only certain ports are open from LAN:
|
||||
|
||||
$ nmap --exclude-ports T:5000 --open 192.168.1.1 | grep open
|
||||
|
||||
Loading…
Reference in New Issue
Block a user