@@ -17,7 +17,7 @@ const appSettingsFixture string = `
1717 "owner": "test",
1818 "app": "example-go",
1919 "routable": true,
20- "whitelist ": ["1.2.3.4", "0.0.0.0/0"],
20+ "allowlist ": ["1.2.3.4", "0.0.0.0/0"],
2121 "autoscale": {"cmd": {"min": 3, "max": 8, "cpu_percent": 40}},
2222 "label": {"git_repo": "https://github.com/drycc/controller-sdk-go", "team" : "drycc"},
2323 "created": "2014-01-01T00:00:00UTC",
@@ -31,7 +31,7 @@ const appSettingsUnsetFixture string = `
3131 "owner": "test",
3232 "app": "unset-test",
3333 "routable": true,
34- "whitelist ": ["1.2.3.4", "0.0.0.0/0"],
34+ "allowlist ": ["1.2.3.4", "0.0.0.0/0"],
3535 "autoscale": {"cmd": {"min": 3, "max": 8, "cpu_percent": 40}},
3636 "label": {"git_repo": "https://github.com/drycc/controller-sdk-go", "team" : "drycc"},
3737 "created": "2014-01-01T00:00:00UTC",
@@ -40,8 +40,8 @@ const appSettingsUnsetFixture string = `
4040}
4141`
4242
43- const appSettingsSetExpected string = `{"routable":true,"whitelist ":["1.2.3.4","0.0.0.0/0"],"autoscale":{"cmd":{"min":3,"max":8,"cpu_percent":40}},"label":{"git_repo":"https://github.com/drycc/controller-sdk-go","team":"drycc"}}`
44- const appSettingsUnsetExpected string = `{"routable":true,"whitelist ":["1.2.3.4","0.0.0.0/0"],"autoscale":{"cmd":{"min":3,"max":8,"cpu_percent":40}},"label":{"git_repo":"https://github.com/drycc/controller-sdk-go","team":"drycc"}}`
43+ const appSettingsSetExpected string = `{"routable":true,"allowlist ":["1.2.3.4","0.0.0.0/0"],"autoscale":{"cmd":{"min":3,"max":8,"cpu_percent":40}},"label":{"git_repo":"https://github.com/drycc/controller-sdk-go","team":"drycc"}}`
44+ const appSettingsUnsetExpected string = `{"routable":true,"allowlist ":["1.2.3.4","0.0.0.0/0"],"autoscale":{"cmd":{"min":3,"max":8,"cpu_percent":40}},"label":{"git_repo":"https://github.com/drycc/controller-sdk-go","team":"drycc"}}`
4545
4646type fakeHTTPServer struct {}
4747
@@ -116,7 +116,7 @@ func TestAppSettingsSet(t *testing.T) {
116116 Owner : "test" ,
117117 App : "example-go" ,
118118 Routable : api .NewRoutable (),
119- Whitelist : []string {"1.2.3.4" , "0.0.0.0/0" },
119+ Allowlist : []string {"1.2.3.4" , "0.0.0.0/0" },
120120 Autoscale : map [string ]* api.Autoscale {
121121 "cmd" : {
122122 Min : 3 ,
@@ -135,7 +135,7 @@ func TestAppSettingsSet(t *testing.T) {
135135
136136 appSettingsVars := api.AppSettings {
137137 Routable : api .NewRoutable (),
138- Whitelist : []string {"1.2.3.4" , "0.0.0.0/0" },
138+ Allowlist : []string {"1.2.3.4" , "0.0.0.0/0" },
139139 Autoscale : map [string ]* api.Autoscale {
140140 "cmd" : {
141141 Min : 3 ,
@@ -176,7 +176,7 @@ func TestAppSettingsUnset(t *testing.T) {
176176 Owner : "test" ,
177177 App : "unset-test" ,
178178 Routable : api .NewRoutable (),
179- Whitelist : []string {"1.2.3.4" , "0.0.0.0/0" },
179+ Allowlist : []string {"1.2.3.4" , "0.0.0.0/0" },
180180 Autoscale : map [string ]* api.Autoscale {
181181 "cmd" : {
182182 Min : 3 ,
@@ -195,7 +195,7 @@ func TestAppSettingsUnset(t *testing.T) {
195195
196196 appSettingsVars := api.AppSettings {
197197 Routable : api .NewRoutable (),
198- Whitelist : []string {"1.2.3.4" , "0.0.0.0/0" },
198+ Allowlist : []string {"1.2.3.4" , "0.0.0.0/0" },
199199 Autoscale : map [string ]* api.Autoscale {
200200 "cmd" : {
201201 Min : 3 ,
@@ -236,7 +236,7 @@ func TestAppSettingsList(t *testing.T) {
236236 Owner : "test" ,
237237 App : "example-go" ,
238238 Routable : api .NewRoutable (),
239- Whitelist : []string {"1.2.3.4" , "0.0.0.0/0" },
239+ Allowlist : []string {"1.2.3.4" , "0.0.0.0/0" },
240240 Autoscale : map [string ]* api.Autoscale {
241241 "cmd" : {
242242 Min : 3 ,
0 commit comments