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

Setup installer testing #848

Merged
merged 10 commits into from
Nov 10, 2021
Merged

Setup installer testing #848

merged 10 commits into from
Nov 10, 2021

Conversation

Itxaka
Copy link
Contributor

@Itxaka Itxaka commented Nov 5, 2021

No description provided.

@Itxaka Itxaka requested a review from mudler November 5, 2021 12:30
s.GatherAllLogs()
} else {
// Trash disk so we boot from iso after each test
s.EmptyDisk("/dev/sda")
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we should empty the disk before each one? Otherwise it depends from the first one to be able to run successfully (and can be a bit confusing?)

})
Context("Using legacy bios", func() {
Context("generic tests", func() {
It("booted from iso", func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

mmm and maybe we can do these assertion right after we empty the disk, before each suite?

@mudler
Copy link
Contributor

mudler commented Nov 8, 2021

Overall looks good! 💯

@mudler mudler linked an issue Nov 8, 2021 that may be closed by this pull request
2 tasks
Itxaka added 8 commits November 10, 2021 13:41
 - Add make target for creating a vm from the iso
 - Add some generic tests to check if we booted from cd
 - Add placeholders for future tests for installer

Signed-off-by: Itxaka <igarcia@suse.com>
Signed-off-by: Itxaka <igarcia@suse.com>
Signed-off-by: Itxaka <igarcia@suse.com>
Signed-off-by: Itxaka <igarcia@suse.com>
Signed-off-by: Itxaka <igarcia@suse.com>
Now we have 2 different paths to test both boot methods.
Both paths have distinct setups as they differ a bit in the boot steps

Signed-off-by: Itxaka <igarcia@suse.com>
Both iso and efi can now run

Signed-off-by: Itxaka <igarcia@suse.com>
Signed-off-by: Itxaka <igarcia@suse.com>
Signed-off-by: Itxaka <igarcia@suse.com>
Signed-off-by: Itxaka <igarcia@suse.com>
@Itxaka Itxaka merged commit 4985503 into rancher:master Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci: testing the installer
2 participants