@@ -111,6 +111,10 @@ def test_layer_scale(self):
111111 body = {'proxy' : 2 , 'runtime' : 4 }
112112 response = self .client .post (url , json .dumps (body ), content_type = 'application/json' )
113113 self .assertEqual (response .status_code , 200 )
114+ self .assertIn ('nodes' , response .data )
115+ self .assertIn ('containers' , response .data )
116+ self .assertIn ('proxy' , response .data )
117+ self .assertIn ('release' , response .data )
114118 url = '/api/formations/{formation_id}/nodes' .format (** locals ())
115119 response = self .client .get (url )
116120 self .assertEqual (response .status_code , 200 )
@@ -119,6 +123,11 @@ def test_layer_scale(self):
119123 url = '/api/formations/{formation_id}/scale/layers' .format (** locals ())
120124 body = {'proxy' : 1 , 'runtime' : 2 }
121125 response = self .client .post (url , json .dumps (body ), content_type = 'application/json' )
126+ self .assertEqual (response .status_code , 200 )
127+ self .assertIn ('nodes' , response .data )
128+ self .assertIn ('containers' , response .data )
129+ self .assertIn ('proxy' , response .data )
130+ self .assertIn ('release' , response .data )
122131 url = '/api/formations/{formation_id}/nodes' .format (** locals ())
123132 response = self .client .get (url )
124133 self .assertEqual (response .status_code , 200 )
@@ -128,6 +137,10 @@ def test_layer_scale(self):
128137 body = {'proxy' : 0 , 'runtime' : 0 }
129138 response = self .client .post (url , json .dumps (body ), content_type = 'application/json' )
130139 self .assertEqual (response .status_code , 200 )
140+ self .assertIn ('nodes' , response .data )
141+ self .assertIn ('containers' , response .data )
142+ self .assertIn ('proxy' , response .data )
143+ self .assertIn ('release' , response .data )
131144 url = '/api/formations/{formation_id}/nodes' .format (** locals ())
132145 response = self .client .get (url )
133146 self .assertEqual (response .status_code , 200 )
0 commit comments