Project

General

Profile

action #65702

coordination #36712: [saga] Use YaST specific framework for GUI testing

coordination #50672: [funtional][y][epic] Use libyui-rest-api for YaST modules testing

[functional][y] 200 HTTP response status code is returned even though invalid filter type is used

Added by oorlov 12 months ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
2020-04-16
Due date:
% Done:

0%

Estimated time:

Description

libyui-rest-api returns 200 HTTP response status code, when sending request with the invalid/unsupported filter type (Other than id, label, type).

Steps to reproduce:

  1. Run any app with libyu-rest-api (e.g. xdg-su -c "env YUI_HTTP_PORT=9999 /sbin/yast2 timezone");
  2. Send GET request with wrong filter type (e.g. curl -s -o /dev/null -w "%{http_code}" http://localhost:9999/v1/widgets?idzzz=manuals).
  3. Note the response code.

Expected result:
404 or other error response code is returned.
Actual result:
200 (Success) response code is returned.

History

#1 Updated by riafarov 12 months ago

  • Target version set to future

#2 Updated by riafarov 12 months ago

As per our discussion, there is no good reason to add such check now. However, I've added it to POST request in case no search criteria is provided.

#3 Updated by riafarov 6 months ago

  • Project changed from openQA Tests to qe-yast

Also available in: Atom PDF