-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests for satellite-maintain update command (#14883)
- Loading branch information
1 parent
5651769
commit 00ce6d0
Showing
2 changed files
with
51 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
""" | ||
Usage: | ||
satellite-maintain update [OPTIONS] SUBCOMMAND [ARG] ... | ||
Parameters: | ||
SUBCOMMAND subcommand | ||
[ARG] ... subcommand arguments | ||
Subcommands: | ||
check Run pre-update checks before updating | ||
run Run an update | ||
Options: | ||
-h, --help print help | ||
""" | ||
from robottelo.cli.base import Base | ||
|
||
|
||
class Update(Base): | ||
"""Manipulates Satellite-maintain's update command""" | ||
|
||
command_base = 'update' | ||
|
||
@classmethod | ||
def check(cls, options=None, env_var=None): | ||
"""Build satellite-maintain update check""" | ||
cls.command_sub = 'check' | ||
options = options or {} | ||
return cls.sm_execute(cls._construct_command(options), env_var=env_var) | ||
|
||
@classmethod | ||
def run(cls, options=None, env_var=None): | ||
"""Build satellite-maintain update run""" | ||
cls.command_sub = 'run' | ||
options = options or {} | ||
return cls.sm_execute(cls._construct_command(options), env_var=env_var) |
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