Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
914e4879
Commit
914e4879
authored
Nov 30, 2021
by
Rafael Guterres Jeffman
Browse files
Options
Downloads
Patches
Plain Diff
tests/utils.py: Fix pylint issues.
parent
13cff635
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/sanity/ignore-2.12.txt
+0
-1
0 additions, 1 deletion
tests/sanity/ignore-2.12.txt
tests/utils.py
+6
-3
6 additions, 3 deletions
tests/utils.py
with
6 additions
and
4 deletions
tests/sanity/ignore-2.12.txt
+
0
−
1
View file @
914e4879
...
...
@@ -43,7 +43,6 @@ tests/sanity/sanity.sh shebang!skip
tests/user/users.sh shebang!skip
tests/user/users_absent.sh shebang!skip
tests/utils.py pylint:ansible-format-automatic-specification
tests/utils.py pylint:subprocess-run-check
utils/ansible-doc-test shebang!skip
utils/ansible-ipa-client-install shebang!skip
utils/ansible-ipa-replica-install shebang!skip
...
...
This diff is collapsed.
Click to expand it.
tests/utils.py
+
6
−
3
View file @
914e4879
...
...
@@ -174,6 +174,7 @@ def _run_playbook(playbook):
inventory_file
.
name
,
playbook
,
]
# pylint: disable=subprocess-run-check
process
=
subprocess
.
run
(
cmd
,
cwd
=
SCRIPT_DIR
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
...
...
@@ -300,11 +301,13 @@ class AnsibleFreeIPATestCase(TestCase):
host_connection_info
,
ssh_identity_file
=
ssh_identity_file
,
)
def
run_playbook
(
self
,
playbook
,
allow_failures
=
False
):
@staticmethod
def
run_playbook
(
playbook
,
allow_failures
=
False
):
return
run_playbook
(
playbook
,
allow_failures
)
def
run_playbook_with_exp_msg
(
self
,
playbook
,
expected_msg
):
result
=
self
.
run_playbook
(
playbook
,
allow_failures
=
True
)
@staticmethod
def
run_playbook_with_exp_msg
(
playbook
,
expected_msg
):
result
=
run_playbook
(
playbook
,
allow_failures
=
True
)
assert
(
expected_msg
in
result
.
stdout
.
decode
(
"
utf8
"
)
or
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment