@@ -79,13 +79,13 @@ def test_app_actions(self):
7979 if os .path .exists (path ):
8080 os .remove (path )
8181 url = '/api/apps/{app_id}/logs' .format (** locals ())
82- response = self .client .post (url )
82+ response = self .client .get (url )
8383 self .assertEqual (response .status_code , 204 )
8484 self .assertEqual (response .data , 'No logs for {}' .format (app_id ))
8585 # write out some fake log data and try again
8686 with open (path , 'a' ) as f :
8787 f .write (FAKE_LOG_DATA )
88- response = self .client .post (url )
88+ response = self .client .get (url )
8989 self .assertEqual (response .status_code , 200 )
9090 self .assertEqual (response .data , FAKE_LOG_DATA )
9191 os .remove (path )
@@ -107,7 +107,7 @@ def test_app_release_notes_in_logs(self):
107107 app_id = response .data ['id' ] # noqa
108108 path = os .path .join (settings .DEIS_LOG_DIR , app_id + '.log' )
109109 url = '/api/apps/{app_id}/logs' .format (** locals ())
110- response = self .client .post (url )
110+ response = self .client .get (url )
111111 self .assertIn ('autotest created initial release' , response .data )
112112 self .assertEqual (response .status_code , 200 )
113113 # delete file for future runs
@@ -170,7 +170,7 @@ def test_admin_can_manage_other_apps(self):
170170 self .assertEqual (response .status_code , 200 )
171171 # check app logs
172172 url = '/api/apps/{app_id}/logs' .format (** locals ())
173- response = self .client .post (url )
173+ response = self .client .get (url )
174174 self .assertEqual (response .status_code , 200 )
175175 self .assertIn ('autotest2 created initial release' , response .data )
176176 # run one-off commands
0 commit comments