From e6b2a92f7fa3da87065d025812f46f723758aecd Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 7 Oct 2020 12:57:14 +0200 Subject: [PATCH] base of the test with out serial number --- tests/test_snapshot.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/test_snapshot.py b/tests/test_snapshot.py index 4482e66e..4f55a53e 100644 --- a/tests/test_snapshot.py +++ b/tests/test_snapshot.py @@ -473,3 +473,16 @@ def test_pc_rating_rate_none(user: UserClient): def test_pc_2(user: UserClient): s = file('laptop-hp_255_g3_notebook-hewlett-packard-cnd52270fw.snapshot') snapshot, _ = user.post(res=Snapshot, data=s) + + +@pytest.mark.one +def test_backup_snapshot_with_error_500(user: UserClient): + snapshot_no_hid = file('basic.snapshot.nohid') + response_snapshot, response_status = user.post(res=Snapshot, data=snapshot_no_hid) + assert response_snapshot['software'] == 'Workbench' + assert response_snapshot['version'] == '11.0b9' + assert response_snapshot['uuid'] == '9a3e7485-fdd0-47ce-bcc7-65c55226b598' + assert response_snapshot['elapsed'] == 4 + assert response_snapshot['author']['id'] == user.user['id'] + assert response_snapshot['severity'] == 'Warning' + assert response_status.status_code == 201