Project

General

Profile

Actions

action #103917

closed

Improve error message when a test suite is not using client libyui-rest-api.

Added by JERiveraMoya about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
2021-12-14
Due date:
% Done:

0%

Estimated time:

Description

Motivation
Improve error message when a test suite is not using client libyui-rest-api.
Example of failure: https://openqa.opensuse.org/tests/2082968/modules/disable_online_repos/steps/2
where reviewers don't know exactly why some screen doesn't appear.

AC1: solution should take into account that we run code with lib/DistributionProvider.pm using REST API but also using needling (meaning it might be tricky do the change that level, because it has to work in both ways)

AC2: Failure should be clear for any test module schedule that is using libyui-rest-api but the test suite is not configured for it.

Suggestion
In lib/YuiRestClient.pm we have:

sub get_app {
    my (%args) = @_;
    $app = init_app(%args) unless $app;
    return $app;
}

which we run for each controller using REST API, here we could use is_libyui_rest_api with a descriptive error.

Actions

Also available in: Atom PDF