Project

General

Profile

Actions

action #57326

closed

[SLE][Migration][SLE12SP5][Improvement]: using setting instead of fix value in AY file

Added by coolgw over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2019-09-25
Due date:
% Done:

100%

Estimated time:
Difficulty:

Description

Base rodion's comments, we can using setting instead of fix value in AY file.
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8479
We can using 390 file for first try.

Actions #1

Updated by okurz over 4 years ago

  • Category set to Bugs in existing tests
Actions #2

Updated by coolgw over 4 years ago

  • Assignee set to tinawang123
Actions #3

Updated by tinawang123 over 4 years ago

  • Status changed from New to Workable
  • % Done changed from 0 to 70

It can be used like:
/usr/share/openqa/script/clone_job.pl --from http://openqa.suse.de --host http://openqa.suse.de 3452846 --skip-download --apikey 027124EEEF43FE4A --apisecret EDBA926F3182D8BF AY_EXPAND_VARS=SCC_URL,LOADER_TYPE SCC_URL=http://migration-smt.suse.de _GROUP=0
autoyast profile:
https://openqa.suse.de/tests/3471371/file/autoyast_profile.xml

Actions #4

Updated by tinawang123 over 4 years ago

  • Status changed from Workable to In Progress
Actions #5

Updated by tinawang123 over 4 years ago

Add Rodin's comments:
yutao wang Now I think I got it, the only trick you could do is trying to set some urls to empty string
yutao wang But I'm not sure if that's going to work. Alternative would be to inject whole section, so your injected variable will contain xml tags too, e.g.
URL_PART1='url1url2'' and URL_PART2='url3
but that will be less transparent

Actions #6

Updated by tinawang123 over 4 years ago

I have tested the profile like:
"""


{{URL1}}
{{URL2}}



"""

AY_EXPAND_VARS=URL1,URL2
URL1=http://dist.suse.de/install/SLP/SLE-12-SP5-Live-Patching-LATEST/x86_64/DVD1/
URL2=http://dist.suse.de/install/SLP/SLE-12-SP5-WE-LATEST/x86_64/DVD1/

And:
AY_EXPAND_VARS=URL1,URL2
URL1=http://dist.suse.de/install/SLP/SLE-12-SP5-Live-Patching-LATEST/x86_64/DVD1/
URL2=
https://openqa.suse.de/tests/3482015/file/autoyast_profile.xml

It can work.
I think we can use this method to reuse our autoyast profile

Actions #7

Updated by tinawang123 over 4 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 70 to 100

As finished research, close this ticket

Actions

Also available in: Atom PDF