@@ -19,15 +19,17 @@ const (
1919 "owner": "test",
2020 "created": "2016-08-22T17:40:16Z",
2121 "updated": "2016-08-22T17:40:16Z",
22- "https_enforced": false
22+ "https_enforced": false,
23+ "certs_auto_enabled": false
2324}`
2425 tlsEnabledFixture string = `{
2526 "uuid": "c4aed81c-d1ca-4ff1-ab89-d2151264e1a3",
2627 "app": "foo",
2728 "owner": "test",
2829 "created": "2016-08-22T17:40:16Z",
2930 "updated": "2016-08-22T17:40:16Z",
30- "https_enforced": true
31+ "https_enforced": true,
32+ "certs_auto_enabled": null
3133}`
3234 tlsEnableExpected string = `{"https_enforced":true}`
3335 tlsDisableExpected string = `{"https_enforced":false}`
@@ -123,12 +125,13 @@ func TestTLSInfo(t *testing.T) {
123125 t .Parallel ()
124126
125127 expected := api.TLS {
126- Created : "2016-08-22T17:40:16Z" ,
127- Updated : "2016-08-22T17:40:16Z" ,
128- App : "foo" ,
129- Owner : "test" ,
130- UUID : "c4aed81c-d1ca-4ff1-ab89-d2151264e1a3" ,
131- HTTPSEnforced : new (bool ),
128+ Created : "2016-08-22T17:40:16Z" ,
129+ Updated : "2016-08-22T17:40:16Z" ,
130+ App : "foo" ,
131+ Owner : "test" ,
132+ UUID : "c4aed81c-d1ca-4ff1-ab89-d2151264e1a3" ,
133+ HTTPSEnforced : new (bool ),
134+ CertsAutoEnabled : new (bool ),
132135 }
133136
134137 handler := fakeHTTPServer {}
@@ -187,7 +190,7 @@ func TestTLSEnable(t *testing.T) {
187190 t .Fatal (err )
188191 }
189192
190- actual , err := Enable (dClient , "foo" )
193+ actual , err := EnableHTTPSEnforced (dClient , "foo" )
191194
192195 if err != nil {
193196 t .Fatal (err )
@@ -207,7 +210,7 @@ func TestTLSEnable(t *testing.T) {
207210 t .Fatal (err )
208211 }
209212
210- if _ , err = Enable (dClient , "foo" ); err != nil {
213+ if _ , err = EnableHTTPSEnforced (dClient , "foo" ); err != nil {
211214 t .Errorf ("Expected Enable() with poorly JSON response to fail" )
212215 }
213216}
@@ -234,7 +237,7 @@ func TestTLSDisable(t *testing.T) {
234237 t .Fatal (err )
235238 }
236239
237- actual , err := Disable (dClient , "foo" )
240+ actual , err := DisableHTTPSEnforced (dClient , "foo" )
238241
239242 if err != nil {
240243 t .Fatal (err )
@@ -254,7 +257,7 @@ func TestTLSDisable(t *testing.T) {
254257 t .Fatal (err )
255258 }
256259
257- if _ , err = Disable (dClient , "foo" ); err != nil {
260+ if _ , err = DisableHTTPSEnforced (dClient , "foo" ); err != nil {
258261 t .Errorf ("Expected Disable() with poorly JSON response to fail" )
259262 }
260263}
0 commit comments