Skip to content

Commit

Permalink
change to add test file..
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravsaini04 committed Aug 16, 2024
1 parent c3915be commit 054bdd5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/docker-in-docker/dockerIp6tablesEnabledTest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

set -e

# Optional: Import test library
source dev-container-features-test-lib

ip6tablesCheck() {
if command -v ip6tables > /dev/null 2>&1; then
if ip6tables -L > /dev/null 2>&1; then
echo "✔️ ip6tables is enabled."
else
echo "❌ ip6tables is disabled."
fi
else
echo "❕ip6tables command not found. ❕"
fi
}

check "ip6tables" ip6tablesCheck

reportResults

0 comments on commit 054bdd5

Please sign in to comment.