Project

General

Profile

Actions

action #174256

open

coordination #127031: [saga][epic] openQA for SUSE customers

coordination #130414: [epic] Improved code coverage in os-autoinst

Improved code coverage in os-autoinst - consoles/ssh_screen.pm size:S

Added by okurz 7 days ago. Updated about 16 hours ago.

Status:
In Progress
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
Start date:
2024-12-12
Due date:
% Done:

90%

Estimated time:

Description

Motivation

To be able to safely improve and extend os-autoinst, we need to have reliable and stable unit tests with even better code coverage, at least 100% statement coverage. Continue with the directory "consoles/"

Acceptance criteria

  • AC1: codecov.yml ensures that we have at least 100% statement coverage (with explicit Devel::Cover exceptions allowed) in consoles/ssh_screen.pm

Suggestions


Related issues 2 (1 open1 closed)

Copied from openQA Project (public) - action #174253: Improved code coverage in os-autoinst - consoles/video_stream.pm size:SWorkable2024-12-12

Actions
Copied to openQA Project (public) - action #174268: Improved code coverage in os-autoinst - consoles/video_base.pm size:SResolvedgpuliti2024-12-12

Actions
Actions #1

Updated by okurz 7 days ago

  • Copied from action #174253: Improved code coverage in os-autoinst - consoles/video_stream.pm size:S added
Actions #2

Updated by okurz 7 days ago

  • Copied to action #174268: Improved code coverage in os-autoinst - consoles/video_base.pm size:S added
Actions #3

Updated by gpuliti 1 day ago

  • Status changed from Workable to In Progress
  • Assignee set to gpuliti
Actions #4

Updated by gpuliti about 16 hours ago

  • % Done changed from 0 to 90

I've try several method to mock the ssh connection, but the one that works is to mock the write of channel in order to return the LIBSSH2_ERROR_EAGAIN error and to avoid an infinite loop of writing without exiting than return a valid value to let the type_string succeed.

Actions

Also available in: Atom PDF