Skip to content

Commit

Permalink
Reverting the test-ca-certs.sh
Browse files Browse the repository at this point in the history
The file is currently used for JSS tests
  • Loading branch information
fmarco76 committed Oct 14, 2024
1 parent 34150e1 commit 9615b3b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/ca/bin/test-ca-certs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash -e

# list certs in CA
pki ca-cert-find | tee /tmp/certs.txt

# get the number of certs returned
sed -n "s/^\(\S*\) entries found$/\1/p" /tmp/certs.txt > /tmp/certs.count

# by default there should be 6 certs initially
echo 6 > /tmp/expected
diff /tmp/certs.count /tmp/expected

0 comments on commit 9615b3b

Please sign in to comment.