Project

General

Profile

Actions

action #178729

closed

coordination #169654: [epic] Create test scenarios for Agama

Create test to validate base product

Added by JERiveraMoya about 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
2025-03-12
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Product cannot be validate with cat /etc/os-release due it doesn't differentiate well between sles and sles sap.
Code to do so is create here:
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/21137/files#diff-e03bcc7e57ae5b5e9c171da22862fca99412be4cf5d8d71cc088fd69c9baa7baR16-R20

record_info("baseproduct", "Validate base product");
select_console 'root-console';
my $prod = script_output 'basename `readlink /etc/products.d/baseproduct ` .prod';
assert_equals(shift, $prod, "Wrong product name in '/etc/products.d/baseproduct");

As this PoC might not move forward without the whole squad effort, we can just start to move pieces of that to our production test coverage, so let's create a test module containing this logic.

Acceptance criteria

  • AC1: New test module is created to validate base product for default test suite in Online/Full medium replacing os-release-based one.
  • AC2: Drop from job group the EXCLUDE setting to not run the os-release test module.
Actions

Also available in: Atom PDF