Project

General

Profile

Actions

action #88059

closed

Implement vars.json variables expansion in test_data structure

Added by riafarov over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
SUSE QA - SLE 15 SP3
Start date:
2021-01-20
Due date:
% Done:

0%

Estimated time:

Description

As of now test_data allows only static data, but there are scenarios where we would need some dynamic values like VERSION, or DISTRI, etc.

We can allow and variables interpolation in the test data structure, e.g.:

test_data:
  repos:
    - name:  SLES-%VERSION%
      alias: SLES
      enabled: No

We already print test_data in os-autoinst log, we can check if we should improve it.

% is special symbol for yaml standard and therefore require wrapping in quotes.

Acceptance criteria

  1. Variables in test data are expanded, using same syntax as in openQA
  2. Resulting test_data is printed to the logs and/or as record_info
  3. In case vars.json variable is not defined, we should not expand it
  4. New functionality is documented
Actions #1

Updated by riafarov about 3 years ago

  • Description updated (diff)
  • Status changed from New to Workable
Actions #2

Updated by JERiveraMoya about 3 years ago

  • Status changed from Workable to In Progress
Actions #3

Updated by JERiveraMoya about 3 years ago

  • Assignee set to JERiveraMoya
Actions #4

Updated by JERiveraMoya about 3 years ago

  • Status changed from In Progress to Feedback
Actions #5

Updated by JERiveraMoya about 3 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF