blob: 614ebd27430df8980055e49b28f6986155e59c95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
# Test that the configuration runs.
set -ex
cd /go/src/github.com/haturatu/ci/test-project
ponzu run --dev-https &
# Smoke test
sleep 2
curl -Lk https://localhost:10443/admin | grep https://www.bosssauce.it
# Run unit tests
touch cookies
# Create initial admin user
curl -v --cookie-jar cookies \
-d "name=Test&domain=localhost&email=test@ponzu-cms.org&password=ponzu" \
-X POST localhost:8080/admin/init
#Test that content types were generated
curl -b cookies -c cookies http://localhost:8080/admin/contents?type=Person \
| grep Person
curl -b cookies -c cookies http://localhost:8080/admin/contents?type=Message \
| grep Message
|