-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable POM structure and libyui for firstboot
- Loading branch information
Showing
19 changed files
with
320 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright © 2021 SUSE LLC | ||
# | ||
# Copying and distribution of this file, with or without modification, | ||
# are permitted in any medium without royalty provided the copyright | ||
# notice and this notice are preserved. This file is offered as-is, | ||
# without any warranty. | ||
|
||
package YaST::Installer::GenericPage; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
|
||
sub new { | ||
my ($class, $args) = @_; | ||
my $self = bless { | ||
app => $args->{app} | ||
}, $class; | ||
return $self->init(); | ||
} | ||
|
||
sub init { | ||
my ($self) = @_; | ||
$self->{btn_next} = $self->{app}->button({id => 'next'}); | ||
# $self->{debug_label} = $self->{app}->debug_label({debug_label => $debug_label}); # to be implemented as part of poo#89866 | ||
return $self; | ||
} | ||
|
||
sub assert_page { | ||
return; # to be implemented as part of poo#89866 | ||
} | ||
|
||
sub press_next { | ||
my ($self) = @_; | ||
return $self->{btn_next}->click(); | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright © 2021 SUSE LLC | ||
# | ||
# Copying and distribution of this file, with or without modification, | ||
# are permitted in any medium without royalty provided the copyright | ||
# notice and this notice are preserved. This file is offered as-is, | ||
# without any warranty. | ||
|
||
# Summary: Controller for firstboot page | ||
# Maintainer: QE YaST <qa-sle-yast@suse.de> | ||
|
||
package YaST::Installer::InstallerController; | ||
use strict; | ||
use warnings; | ||
use YuiRestClient; | ||
use YaST::Installer::GenericPage; | ||
# use YaST::Installer::Firstboot::LanPage; | ||
use testapi; | ||
|
||
sub new { | ||
my ($class, $args) = @_; | ||
my $self = bless {}, $class; | ||
return $self->init($args); | ||
} | ||
|
||
sub init { | ||
my ($self, $args) = @_; | ||
$self->{GenericPage} = YaST::Installer::GenericPage->new({app => YuiRestClient::get_app()}); | ||
# $self->{LanPage} = YaST::Firstboot::LanPage->new({app => YuiRestPage::get_app()}); | ||
return $self; | ||
} | ||
|
||
sub get_generic_page { | ||
my ($self) = @_; | ||
$self->{GenericPage}; | ||
} | ||
|
||
sub get_lan_page { | ||
my ($self) = @_; | ||
$self->{LanPage}; | ||
} | ||
|
||
# sub inst_lan { | ||
# my ($self) = @_; | ||
# $self->{GenericPage}->assert_page('Network_settings'); | ||
# $self->get_lan_page->is_shown(); | ||
# $self->{GenericPage}->press_next(); | ||
# } | ||
|
||
sub check_and_skip_page { | ||
my ($self, $debug_label) = @_; | ||
$self->get_generic_page->assert_page($debug_label); | ||
$self->get_generic_page->press_next(); | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ clients: | |
- firstboot_timezone | ||
- firstboot_user | ||
- firstboot_root | ||
- firstboot_finish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ clients: | |
- firstboot_user | ||
- firstboot_root | ||
- firstboot_registration | ||
- firstboot_finish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright © 2021 SUSE LLC | ||
# | ||
# Copying and distribution of this file, with or without modification, | ||
# are permitted in any medium without royalty provided the copyright | ||
# notice and this notice are preserved. This file is offered as-is, | ||
# without any warranty. | ||
|
||
# Summary: Check that libyui is available before firstboot | ||
# Maintainer: QE YaST <qa-sle-yast@suse.de> | ||
|
||
use base 'bootbasetest'; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
|
||
sub run { | ||
my ($self) = @_; | ||
YuiRestClient::connect_to_app(); | ||
} | ||
|
||
sub test_flags { | ||
return {fatal => 1, milestone => 1}; | ||
} | ||
|
||
1; |
Oops, something went wrong.