@@ -9,12 +9,13 @@ import (
99)
1010
1111var (
12- configListCmd = "config:list --app={{.AppName}}"
13- configSetCmd = "config:set FOO=讲台 --app={{.AppName}}"
14- configSet2Cmd = "config:set FOO=10 --app={{.AppName}}"
15- configSet3Cmd = "config:set POWERED_BY=\" the Deis team\" --app={{.AppName}}"
16- configSet4Cmd = "config:set CAR='`star' --app={{.AppName}}"
17- configUnsetCmd = "config:unset FOO --app={{.AppName}}"
12+ configListCmd = "config:list --app={{.AppName}}"
13+ configSetCmd = "config:set FOO=讲台 --app={{.AppName}}"
14+ configSet2Cmd = "config:set FOO=10 --app={{.AppName}}"
15+ configSet3Cmd = "config:set POWERED_BY=\" the Deis team\" --app={{.AppName}}"
16+ configSet4Cmd = "config:set CAR='`star' --app={{.AppName}}"
17+ configSetBuildpackCmd = "config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-go#98f37cc --app={{.AppName}}"
18+ configUnsetCmd = "config:unset FOO --app={{.AppName}}"
1819)
1920
2021func TestConfig (t * testing.T ) {
@@ -48,6 +49,8 @@ func configSetup(t *testing.T) *utils.DeisTestConfig {
4849 // ensure envvars with backticks work too
4950 // https://github.com/deis/deis/issues/2980
5051 utils .Execute (t , configSet4Cmd , cfg , false , "`star" )
52+ // ensure custom buildpack URLS are in order
53+ utils .Execute (t , configSetBuildpackCmd , cfg , false , "https://github.com/heroku/heroku-buildpack-go#98f37cc" )
5154 utils .Execute (t , gitPushCmd , cfg , false , "" )
5255 utils .CurlWithFail (t , cfg , false , "the Deis team" )
5356 if err := utils .Chdir (".." ); err != nil {
@@ -63,13 +66,13 @@ func configListTest(
6366
6467func configSetTest (t * testing.T , params * utils.DeisTestConfig ) {
6568 utils .Execute (t , configSetCmd , params , false , "讲台" )
66- utils .CheckList (t , appsInfoCmd , params , "(v5)" , false )
67- utils .Execute (t , configSet2Cmd , params , false , "10" )
6869 utils .CheckList (t , appsInfoCmd , params , "(v6)" , false )
70+ utils .Execute (t , configSet2Cmd , params , false , "10" )
71+ utils .CheckList (t , appsInfoCmd , params , "(v7)" , false )
6972}
7073
7174func configUnsetTest (t * testing.T , params * utils.DeisTestConfig ) {
7275 utils .Execute (t , configUnsetCmd , params , false , "" )
73- utils .CheckList (t , appsInfoCmd , params , "(v7 )" , false )
76+ utils .CheckList (t , appsInfoCmd , params , "(v8 )" , false )
7477 utils .CheckList (t , "run env --app={{.AppName}}" , params , "FOO" , true )
7578}
0 commit comments