Skip to content

Commit b055cf4

Browse files
committed
Add test case
1 parent 7435e3e commit b055cf4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: tests/test_no_app.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
function clean() {
4+
docker rm -f no_app
5+
}
6+
7+
cd /tmp
8+
clean
9+
10+
docker run -d \
11+
--name no_app \
12+
-e ROOT_URL=http://no_app \
13+
-p 9090:80 \
14+
meteorhacks/meteord:base
15+
16+
sleep 10
17+
18+
appContent=`docker logs no_app`
19+
clean
20+
21+
if [[ $appContent != *"You don't have an meteor app"* ]]; then
22+
echo "Failed: To check whether actual meteor bundle exists or not"
23+
exit 1
24+
fi

0 commit comments

Comments
 (0)