Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API tests: patch job/annotations, patch job #4351

Merged
merged 17 commits into from
Feb 22, 2022
Merged

Conversation

sizov-kirill
Copy link
Contributor

Motivation and context

How has this been tested?

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2022 Intel Corporation
#
# SPDX-License-Identifier: MIT

@sizov-kirill sizov-kirill changed the title [WIP] REST API tests: patch job/annotations, patch job REST API tests: patch job/annotations, patch job Feb 20, 2022
@sizov-kirill sizov-kirill changed the title REST API tests: patch job/annotations, patch job [WIP] REST API tests: patch job/annotations, patch job Feb 20, 2022
@sizov-kirill sizov-kirill changed the title [WIP] REST API tests: patch job/annotations, patch job REST API tests: patch job/annotations, patch job Feb 20, 2022
@nmanovic
Copy link
Contributor

@kirill-sizov ,

DROP DATABASE
CREATE DATABASE
_______ TestGetData.test_frame_content_type[image/x.point-cloud-data-6] ________

self = <rest_api.test_tasks.TestGetData object at 0x7faac2a5c160>
content_type = 'image/x.point-cloud-data', task_id = 6

    @pytest.mark.parametrize('content_type, task_id', [
        ('image/png',                1),
        ('image/png',                5),
        ('image/x.point-cloud-data', 6),
    ])
    def test_frame_content_type(self, content_type, task_id):
        response = get_method(self._USERNAME, f'tasks/{task_id}/data', type='frame', quality='original', number=0)
>       assert response.status_code == HTTPStatus.OK
E       assert 404 == <HTTPStatus.OK: 200>
E        +  where 404 = <Response [404]>.status_code
E        +  and   <HTTPStatus.OK: 200> = HTTPStatus.OK

tests/rest_api/test_tasks.py:19: AssertionError

@sizov-kirill
Copy link
Contributor Author

@kirill-sizov ,

DROP DATABASE
CREATE DATABASE
_______ TestGetData.test_frame_content_type[image/x.point-cloud-data-6] ________

self = <rest_api.test_tasks.TestGetData object at 0x7faac2a5c160>
content_type = 'image/x.point-cloud-data', task_id = 6

    @pytest.mark.parametrize('content_type, task_id', [
        ('image/png',                1),
        ('image/png',                5),
        ('image/x.point-cloud-data', 6),
    ])
    def test_frame_content_type(self, content_type, task_id):
        response = get_method(self._USERNAME, f'tasks/{task_id}/data', type='frame', quality='original', number=0)
>       assert response.status_code == HTTPStatus.OK
E       assert 404 == <HTTPStatus.OK: 200>
E        +  where 404 = <Response [404]>.status_code
E        +  and   <HTTPStatus.OK: 200> = HTTPStatus.OK

tests/rest_api/test_tasks.py:19: AssertionError

@nmanovic Fixed it.

Copy link
Contributor

@nmanovic nmanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nmanovic nmanovic merged commit 01eaf36 into develop Feb 22, 2022
@nmanovic nmanovic deleted the sk/extend-test-cases branch February 22, 2022 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants