@@ -256,6 +256,9 @@ def test_save(self):
256256 self .lb .sticky_sessions .cookie_ttl_seconds = 300
257257 self .lb .droplet_ids = [34153248 , 34153250 ]
258258 self .lb .vpc_uuid = self .vpc_uuid
259+ self .lb .redirect_http_to_https = True
260+ self .lb .enable_proxy_protocol = True
261+ self .lb .enable_backend_keepalive = True
259262 res = self .lb .save ()
260263
261264 lb = digitalocean .LoadBalancer (** res ['load_balancer' ])
@@ -292,9 +295,9 @@ def test_save(self):
292295 self .assertEqual (lb .sticky_sessions .cookie_ttl_seconds , 300 )
293296 self .assertEqual (lb .droplet_ids , [34153248 , 34153250 ])
294297 self .assertEqual (lb .tag , '' )
295- self .assertEqual (lb .redirect_http_to_https , False )
296- self .assertEqual (lb .enable_proxy_protocol , False )
297- self .assertEqual (lb .enable_backend_keepalive , False )
298+ self .assertEqual (lb .redirect_http_to_https , True )
299+ self .assertEqual (lb .enable_proxy_protocol , True )
300+ self .assertEqual (lb .enable_backend_keepalive , True )
298301 self .assertEqual (self .lb .vpc_uuid , self .vpc_uuid )
299302
300303 @responses .activate
0 commit comments