forked from canonical/checkbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix quit option for manual jobs (bugfix) (canonical#989)
* Fix quit * Add new ui quit metabox test Minor: renamed urwidui -> ui * Test RemoteController change * Test also remote assistant remember_users_response
- Loading branch information
Showing
7 changed files
with
244 additions
and
1 deletion.
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
File renamed without changes.
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,56 @@ | ||
# This file is part of Checkbox. | ||
# | ||
# Copyright 2024 Canonical Ltd. | ||
# Written by: | ||
# Massimiliano Girardi <[email protected]> | ||
# | ||
# Checkbox is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License version 3, | ||
# as published by the Free Software Foundation. | ||
|
||
# | ||
# Checkbox is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with Checkbox. If not, see <http://www.gnu.org/licenses/>. | ||
import textwrap | ||
|
||
import metabox.core.keys as keys | ||
from metabox.core.actions import ( | ||
Expect, | ||
Send, | ||
Start, | ||
ExpectNot | ||
) | ||
from metabox.core.scenario import Scenario | ||
from metabox.core.utils import tag | ||
|
||
|
||
@tag("manual", "interact") | ||
class ManualInteractQuit(Scenario): | ||
launcher = textwrap.dedent( | ||
""" | ||
[launcher] | ||
launcher_version = 1 | ||
stock_reports = text | ||
[test plan] | ||
unit = 2021.com.canonical.certification::cert-blocker-manual-resume | ||
forced = yes | ||
[test selection] | ||
forced = yes | ||
""" | ||
) | ||
|
||
steps = [ | ||
Start(), | ||
Expect("Pick an action"), | ||
Send("p" + keys.KEY_ENTER), | ||
Expect("save the session and quit"), | ||
Send("q" + keys.KEY_ENTER), | ||
# if q is pressed, checkbox should exit instead of going ahead printing | ||
# results | ||
ExpectNot("Results") | ||
] |
File renamed without changes.