File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # Check that the configuration for deis-builder is valid.
4+ #
5+
6+ if grep -q " <no value>" $1 ; then
7+ exit 1
8+ fi
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ mode = "0600"
77keys = [
88 " /deis/builder/users" ,
99]
10+ check_cmd = " /app/bin/check {{ .src }}"
Original file line number Diff line number Diff line change 99 " /deis/builder" ,
1010 " /deis/registry" ,
1111]
12+ check_cmd = " /app/bin/check {{ .src }}"
Original file line number Diff line number Diff line change 88 " /deis/services" ,
99]
1010reload_cmd = " /home/git/check-repos"
11+ check_cmd = " /app/bin/check {{ .src }}"
Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ src = "gitreceive"
33dest = " /usr/local/bin/gitreceive"
44uid = 0
55gid = 0
6- mode = " 0755"
6+ mode = " 0755"
7+ check_cmd = " /app/bin/check {{ .src }}"
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ mode = "0755"
77keys = [
88 " /deis/controller" ,
99]
10+ check_cmd = " /app/bin/check {{ .src }}"
Original file line number Diff line number Diff line change @@ -38,10 +38,14 @@ func runDeisBuilderTest(
3838func TestBuilder (t * testing.T ) {
3939 setkeys := []string {
4040 "/deis/registry/protocol" ,
41- "deis/registry/host" ,
41+ "/ deis/registry/host" ,
4242 "/deis/registry/port" ,
4343 "/deis/cache/host" ,
4444 "/deis/cache/port" ,
45+ "/deis/controller/protocol" ,
46+ "/deis/controller/host" ,
47+ "/deis/controller/port" ,
48+ "/deis/controller/builderKey" ,
4549 }
4650 setdir := []string {
4751 "/deis/controller" ,
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # Check that the configuration for deis-router is valid.
4+ #
5+
6+ if grep -q " <no value>" $1 ; then
7+ exit 1
8+ fi
9+
10+ if ! /usr/sbin/nginx -t -c $1 ; then
11+ exit 1
12+ fi
Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ keys = [
1111 " /deis/controller" ,
1212 " /deis/builder" ,
1313]
14- check_cmd = " /usr/sbin/nginx -t -c {{ .src }}"
14+ check_cmd = " /app/bin/check {{ .src }}"
1515reload_cmd = " /usr/sbin/nginx -s reload"
You can’t perform that action at this time.
0 commit comments