[PR #7196/40cad3e7 backport][stable-7] gconftool2: using yaml-specified unit tests (#7198)

gconftool2: using yaml-specified unit tests (#7196)

* gconftool2: using yaml-specified unit tests

* gconftool2_info: using yaml-specified unit tests

* adjust code for skip and xfail

(cherry picked from commit 40cad3e7a9)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot]
2023-09-02 18:49:53 +02:00
committed by GitHub
parent 16499072ff
commit 3785b656d6
6 changed files with 215 additions and 274 deletions

View File

@@ -381,6 +381,7 @@ TEST_CASES = [
id="simple case",
input={"name": ["hello-world"]},
output=dict(changed=True, snaps_installed=["hello-world"]),
flags={},
run_command_calls=[
RunCmdCall(
command=['/testbin/snap', 'info', 'hello-world'],
@@ -409,6 +410,7 @@ TEST_CASES = [
id="issue_6803",
input={"name": ["microk8s", "kubectl"], "classic": True},
output=dict(changed=True, snaps_installed=["microk8s", "kubectl"]),
flags={},
run_command_calls=[
RunCmdCall(
command=['/testbin/snap', 'info', 'microk8s', 'kubectl'],