Skip to content

Commit

Permalink
Move more test files inside examples (#1312)
Browse files Browse the repository at this point in the history
Move more files used for testing inside examples/ folder.
  • Loading branch information
ssbarnea committed Feb 7, 2021
1 parent ac68e55 commit bc8988e
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions examples/playbooks/playbook-parent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
- name: Importing another playbook
import_playbook: playbook-imported.yml
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion test/TestDependenciesInMeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@


def test_external_dependency_is_ok(default_rules_collection):
playbook_path = 'test/dependency-in-meta/meta/main.yml'.format_map(locals())
playbook_path = 'examples/roles/dependency-in-meta/meta/main.yml'.format_map(
locals()
)
good_runner = Runner(playbook_path, rules=default_rules_collection)
assert [] == good_runner.run()
2 changes: 1 addition & 1 deletion test/TestImportPlaybook.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

def test_task_hook_import_playbook(default_rules_collection):
"""Assures import_playbook includes are recognized."""
playbook_path = 'test/playbook-import/playbook_parent.yml'
playbook_path = 'examples/playbooks/playbook-parent.yml'
runner = Runner(playbook_path, rules=default_rules_collection)
results = runner.run()

Expand Down
2 changes: 1 addition & 1 deletion test/TestUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def test_cli_auto_detect(capfd):

def test_is_playbook():
"""Verify that we can detect a playbook as a playbook."""
assert utils.is_playbook("test/test/always-run-success.yml")
assert utils.is_playbook("examples/playbooks/always-run-success.yml")


@pytest.mark.parametrize(
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/config-with-relative-path.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
exclude_paths:
- ../test-role/
- ../../examples/roles/test-role/

# vim: et:sw=2:syntax=yaml:ts=2:
3 changes: 0 additions & 3 deletions test/playbook-import/playbook_parent.yml

This file was deleted.

4 changes: 0 additions & 4 deletions test/use-as-default-roles-path/test-role/tasks/main.yml

This file was deleted.

0 comments on commit bc8988e

Please sign in to comment.