mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-26 20:15:31 +00:00
test: test for ssl
This commit is contained in:
21
docker-compose/setup-script/tests/install/ssl.bats
Normal file
21
docker-compose/setup-script/tests/install/ssl.bats
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user