blob: 726d54ec3eb3f6d84051b739bbcb6ca4c541e31b (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#!/bin/bash
active=$(sudo -u test cat /home/test/active)
nonactive="blue"
echo "Active party: ${active}"
if test $active = "test-blue"; then
nonactive="green"
fi
if ! test 200 = $(curl \
-H "X-Taler-Deployment-Color: $nonactive" \
-s https://exchange.test.taler.net/ -o /dev/null \
-w "%{http_code}"); then
echo Exchange did not restart correctly
exit 1
fi
if ! test 200 = $(curl \
-H "X-Taler-Deployment-Color: $nonactive" \
-s http://backend.test.taler.net/ -o /dev/null \
-w "%{http_code}"); then
echo Merchant backend did not restart correctly
exit 1
fi
if ! test 200 = $(curl \
-H "X-Taler-Deployment-Color: $nonactive" \
-s https://shop.test.taler.net/ -o /dev/null \
-w "%{http_code}"); then
echo Blog did not restart correctly
exit 1
fi
if ! test 200 = $(curl \
-H "X-Taler-Deployment-Color: $nonactive" \
-s https://donations.test.taler.net/ -o /dev/null \
-w "%{http_code}"); then
echo Donations shop did not restart correctly
exit 1
fi
if ! test 302 = $(curl \
-H "X-Taler-Deployment-Color: $nonactive" \
-s https://bank.test.taler.net/ -o /dev/null \
-w "%{http_code}"); then
echo Bank did not restart correctly
exit 1
fi
if ! test 302 = $(curl \
-H "X-Taler-Deployment-Color: $nonactive" \
-s https://test.taler.net/ -o /dev/null \
-w "%{http_code}"); then
echo Landing page did not restart correctly
exit 1
fi
|