Project

General

Profile

action #65384

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] Use JSON in all responses from libyui-rest-api

Added by oorlov over 1 year ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
2020-04-07
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Currently, some of the responses from libyu-rest-api (defined in YHttpWidgetsActionHandler.cc) return plain text, whilst others return JSON.

Example with JSON from YHttpWidgetsActionHandler.cc:

65   if ( widgets.empty() )
66   {
67       body << "{ \"error\" : \"Widget not found\" }" << std::endl;

Example with plain text from YHttpWidgetsActionHandler.cc:

151        else
152        {
153            body << "Action is not supported for the selected widget: " << widget->widgetClass() << std::endl;
154            return MHD_HTTP_NOT_FOUND;
155        }

Task

In order to be consistent all the responses should be changed to JSON.

History

#1 Updated by riafarov over 1 year ago

  • Due date deleted (2020-04-21)
  • Target version set to future

#2 Updated by riafarov over 1 year ago

  • Status changed from New to Resolved
  • Assignee set to riafarov

Also available in: Atom PDF