11"""Test ability to import playbooks."""
22
3- import os
4-
5- import pytest
6-
73from ansiblelint .rules import RulesCollection
84from ansiblelint .runner import Runner
95
106
11- @pytest .mark .xfail (
12- "devel" in os .environ .get ("TOX_ENV_NAME" , "" ),
13- reason = "https://github.com/ansible/ansible/issues/85357" ,
14- )
157def test_task_hook_import_playbook (default_rules_collection : RulesCollection ) -> None :
168 """Assures import_playbook includes are recognized."""
179 playbook_path = "examples/playbooks/playbook-parent.yml"
@@ -27,10 +19,6 @@ def test_task_hook_import_playbook(default_rules_collection: RulesCollection) ->
2719 assert "All tasks should be named" in results_text
2820
2921
30- @pytest .mark .xfail (
31- "devel" in os .environ .get ("TOX_ENV_NAME" , "" ),
32- reason = "https://github.com/ansible/ansible/issues/85357" ,
33- )
3422def test_import_playbook_from_collection (
3523 default_rules_collection : RulesCollection ,
3624) -> None :
@@ -43,10 +31,6 @@ def test_import_playbook_from_collection(
4331 assert len (results ) == 0
4432
4533
46- @pytest .mark .xfail (
47- "devel" in os .environ .get ("TOX_ENV_NAME" , "" ),
48- reason = "https://github.com/ansible/ansible/issues/85357" ,
49- )
5034def test_import_playbook_invalid (
5135 default_rules_collection : RulesCollection ,
5236) -> None :
0 commit comments