-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aef3a46
commit 3b5b1ea
Showing
4 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
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,3 @@ | ||
git+https://github.com/ptoscano/pytest-client-tools@main | ||
pyyaml | ||
sh |
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,24 @@ | ||
""" | ||
This Python module contains integration tests for rhc. | ||
It uses pytest-client-tools Python module.More information about this | ||
module could be found: https://github.com/ptoscano/pytest-client-tools/ | ||
""" | ||
|
||
import contextlib | ||
import sh | ||
|
||
|
||
def test_busctl_get_consumer_uuid(): | ||
""" | ||
Simple smoke test using busctl CLI tool. It tries to call simple D-Bus method. | ||
""" | ||
with contextlib.suppress(Exception): | ||
sh.busctl( | ||
"call", | ||
"com.redhat.RHSM1", | ||
"/com/redhat/RHSM1/Consumer", | ||
"com.redhat.RHSM1.Consumer", | ||
"GetUuid", | ||
"s", | ||
'""', | ||
) |
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