Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test scenario to verify AY installation while using disk as MD member #7913

Merged
merged 3 commits into from
Jul 18, 2019

Conversation

OleksandrOrlov
Copy link
Contributor

@OleksandrOrlov OleksandrOrlov commented Jul 17, 2019

The PR adds all the required perl modules and the yaml schedule to test autoyast installation while using disk as MD member.

After being merged, the PR requires the following configuration to be updated on openQA:

Test Suites:

  • Name: autoyast_disk_as_md_member
  • Settings:
HDDMODEL=scsi-hd
NUMDISKS=2
YAML_SCHEDULE=schedule/yast/autoyast_disk_as_md_member.yaml

Job Groups->SLE15->YaST->new test:

  • Test: autoyast_disk_as_md_member
  • x86_64

The commit extracts the part of the test_setup function related to
autoyast initialization to the separate function and makes the function
utilitarian by placing it in lib/autoyast.pm
The commit adds the function to have ability to find all the nodes in
xml file by xpath and returns them as an array.

That allows to manipulate with the found nodes in the manner that is
required for the certain test (e.g. get values from the nodes, count
them etc.)
</partition>
<partition>
<create config:type="boolean">true</create>
<mount>/boot</mount>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we implement feature to inject values from test_data structure, similarly to what we've done with vars.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never thought about that, but it might be great to have the feature I guess, as it will allow to change some data just in one place, rather then check all the places where it is used.

But, I guess it should be done in scope of another task?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Just wanted to hear your opinion. I will create a ticket for that.

Copy link
Member

@rwx788 rwx788 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The commit adds all the required perl modules and the yaml schedule to
test autoyast installation while using disk as MD member.
@rwx788 rwx788 merged commit 3034964 into os-autoinst:master Jul 18, 2019
@rwx788
Copy link
Member

rwx788 commented Jul 18, 2019

Please, enable the test suite for the relevant distributions and versions.

@OleksandrOrlov
Copy link
Contributor Author

Enabled for YaST Job group, Sle15, 64bit.

@OleksandrOrlov OleksandrOrlov deleted the 42731_disk_as_md_member branch July 10, 2020 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants