test: test for ssl

This commit is contained in:
Rohit T P
2024-05-02 14:50:39 +00:00
parent f139003e2f
commit f03bf62b6c
3 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bats
WORKING_DIR="$(pwd)"
RANDOM_NUMBER=$RANDOM
setup() {
cd "${WORKING_DIR}" || exit 1
./setup.sh
}
teardown() {
cd "${WORKING_DIR}" || exit 1
./setup.sh
}
@test "Should create SSL certificates" {
../expects/install/ssl.sh "$RANDOM_NUMBER"
curl -ksS --head "https://${RANDOM_NUMBER}.ssl.nocodb.dev" > /dev/null
}