summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0017_post_image_restore.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2021-11-10 12:24:30 +0100
committerJose M. Guisado <jguisado@soleta.eu>2021-11-12 11:06:13 +0100
commitac3ce22c35db2133816ca30a0a2148ca3dfa6da3 (patch)
treea7ad17cb6c9b1178f27a303bcfe4297a692f7225 /tests/units/test_0017_post_image_restore.py
parent6fc89cdfc42322899391404ef733185f996c0ce9 (diff)
#1064 revisit error handling from ogClient
200 => successful command, run next pending command 202 => successful command in progress, do not run next pending command 403 => server sent a malformed HTTP header, should not ever happen, close connection (server is buggy?). 500 => client fails to run command, report error and run next pending command 503 => client is busy, report error and do not run next pending command Anything else, should not ever happen (client is buggy?), close connection with client. On error, when processing response from ogClient, do not close the connection, instead annotate in the database that command was not successful and run next pending command. *Only* if client replies status code 500 set last_cmd to UNSPEC so its state is not BSY as reported by og_client_status function and pending cmds can be sent.
Diffstat (limited to 'tests/units/test_0017_post_image_restore.py')
0 files changed, 0 insertions, 0 deletions