aboutsummaryrefslogtreecommitdiff
path: root/test/sshd/test.sh
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-11-24 02:03:07 +0300
committerGitHub <noreply@github.com>2022-11-24 02:03:07 +0300
commit4b3ccf36eabcad859a13806a8dc47dfa651182a1 (patch)
tree31bebbe272b46d737093e1ea98bebf90b73f260b /test/sshd/test.sh
parent188f1ef26bc8fa942d552dfaa8596091a8a39126 (diff)
Adds test coverage (#308)
* Add test coverage * temp: debug test * Update tests
Diffstat (limited to 'test/sshd/test.sh')
-rwxr-xr-xtest/sshd/test.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/sshd/test.sh b/test/sshd/test.sh
index bd0a516..6aac9e5 100755
--- a/test/sshd/test.sh
+++ b/test/sshd/test.sh
@@ -5,7 +5,11 @@ set -e
# Optional: Import test library
source dev-container-features-test-lib
-echo 'NO TESTS FOR ME YET!'
+check "sshd-init-exists" bash -c "ls /usr/local/share/ssh-init.sh"
+check "sshd-log-exists" bash -c "ls /tmp/sshd.log"
+check "sshd-log-contents" bash -c "cat /tmp/sshd.log | grep 'Starting OpenBSD Secure Shell server'"
+check "sshd-log-has-sshd" bash -c "cat /tmp/sshd.log | grep 'sshd'"
+check "sshd" bash -c "ps -aux | grep -v grep | grep sshd"
# Report result
reportResults \ No newline at end of file