summaryrefslogtreecommitdiff
path: root/test/uid_zero_test.bats
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-10-12 14:39:39 -0600
committermo khan <mo.khan@gmail.com>2019-10-12 14:39:39 -0600
commitf87ad6a485a005890ae24b82caa643ef90c430e8 (patch)
treeb0b4c9e3c0115cc49ca1a0a21f54cea3d2c066c6 /test/uid_zero_test.bats
parenta7e0086ff90d462f47a27c24e74af3d98e2cae58 (diff)
add test for finding uid 0
Diffstat (limited to 'test/uid_zero_test.bats')
-rw-r--r--test/uid_zero_test.bats9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/uid_zero_test.bats b/test/uid_zero_test.bats
new file mode 100644
index 0000000..397312e
--- /dev/null
+++ b/test/uid_zero_test.bats
@@ -0,0 +1,9 @@
+#!/usr/bin/env bats
+
+load test_helper
+
+@test "it finds the user with uid 0" {
+ run ./bin/uid-zero test/fixtures/passwd
+
+ assert_success $'root:0'
+}