Commit graph

159 commits

Author SHA1 Message Date
Mohamed El Mouctar HAIDARA
fb4c836cbe feat: Add tests for CLI verbosity 2020-11-15 01:50:27 +01:00
dependabot-preview[bot]
92fcbd14bd
Bump pytest from 6.1.0 to 6.1.2 (#51)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.1.0 to 6.1.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/6.1.0...6.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-11-04 09:00:05 +01:00
dependabot-preview[bot]
97ffc6507c
Bump pytest-cov from 2.10.0 to 2.10.1 (#49)
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 2.10.0 to 2.10.1.
- [Release notes](https://github.com/pytest-dev/pytest-cov/releases)
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v2.10.0...v2.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-11-04 08:55:51 +01:00
dependabot-preview[bot]
77450f8a15 Bump pytest from 6.0.1 to 6.1.0
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.0.1 to 6.1.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/6.0.1...6.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-23 20:05:28 +02:00
dependabot-preview[bot]
58c050ba5e Bump pytest from 5.4.3 to 6.0.1
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.4.3 to 6.0.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.4.3...6.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-01 18:59:01 +02:00
Mohamed El Mouctar HAIDARA
96969dcb59 fix: Do not run some tests with Ansible 2.8
Ansible 2.8  sets some global variables causing the tests to fail. To avoid that, theses tests are
marked to fail. This "mark" should be removed when we drop support for Ansible 2.8
2020-08-01 18:55:33 +02:00
Mohamed El Mouctar HAIDARA
9ab880765c fix: Do not add the skipped tags to the graph 2020-08-01 18:55:33 +02:00
Mohamed El Mouctar HAIDARA
d6412a7a9d fix(postprocessor): No need to remove graph title if we specify a name
This also adds a double quote around the graph name to avoid to handle the special characters.
2020-07-21 00:31:43 +02:00
Mohamed El Mouctar HAIDARA
f42d7d101e fix(tests): Remove tests rtype and return [ci skip] 2020-06-27 20:39:24 +02:00
Mohamed El Mouctar HAIDARA
50a25410eb Fix CLI tests 2020-06-27 00:59:21 +02:00
Mohamed El Mouctar HAIDARA
20cd85bd0a doc: Update README.md and examples 2020-06-27 00:27:37 +02:00
Mohamed El Mouctar HAIDARA
d1b1d2de7c Revert "Add note about ansible.cfg"
This reverts commit 13a33a4362.
2020-06-27 00:11:40 +02:00
Mohamed El Mouctar HAIDARA
13a33a4362 Add note about ansible.cfg 2020-06-22 20:20:13 +02:00
dependabot-preview[bot]
bc894f9292
Bump pytest from 5.4.2 to 5.4.3 (#42)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.4.2 to 5.4.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.4.2...5.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-22 16:32:48 +02:00
dependabot-preview[bot]
9e67215dbe
Bump pytest-cov from 2.9.0 to 2.10.0 (#43)
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 2.9.0 to 2.10.0.
- [Release notes](https://github.com/pytest-dev/pytest-cov/releases)
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v2.9.0...v2.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-22 16:07:45 +02:00
Mohamed El Mouctar HAIDARA
1c387d3329 Factorize tests: append FIXTURES_DIR in run_grapher 2020-06-18 16:58:57 +02:00
Mohamed El Mouctar HAIDARA
50135a2a22 Do not identity a task with its name on the graph.
This fixes #21
2020-06-05 23:03:42 +02:00
dependabot-preview[bot]
e8ee35d8f1
Bump pytest-cov from 2.8.1 to 2.9.0 (#40)
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 2.8.1 to 2.9.0.
- [Release notes](https://github.com/pytest-dev/pytest-cov/releases)
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v2.8.1...v2.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-05 11:58:26 +02:00
Mohamed El Mouctar Haidara
7b3c55d547
Fix playbook with relative var file (#36) 2020-05-16 22:54:50 +02:00
dependabot-preview[bot]
c245e3560f
Bump pytest from 5.4.1 to 5.4.2 (#34)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.4.1 to 5.4.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.4.1...5.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-15 19:14:57 +02:00
dependabot-preview[bot]
1a8ec3f613
Bump pytest from 5.3.5 to 5.4.1 (#32)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.3.5 to 5.4.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.3.5...5.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-13 13:25:26 +02:00
Mohamed El Mouctar Haidara
8b7e92cdc2
Update dependencies (#29)
* Update lxml to 4.5.0

* Update graphiz to 0.13.2 and ansible min version to 2.8.0

* Update packaging to 20.1

* Pin package versions in test requirements
2020-02-25 16:23:08 +00:00
Mohamed El Mouctar Haidara
d875b04115
Support for Ansible 2.9 (#25)
* Drop support for ansible 2.7 and new CLI for ansible 2.9

* Remove python2 support
2020-01-13 20:17:10 +01:00
Mohamed El Mouctar Haidara
5f051df6f6
fix #18: New CLI compatible with ansible 2.8 (#19)
This change is needed because of https://github.com/ansible/ansible/pull/50069.

The new CLI in this PR should be used in the future when we drop support
for Ansible < 2.8
2019-06-10 01:00:49 +02:00
Mohamed El Mouctar HAIDARA
78f75f6ad1 New tests for import_playbook 2019-03-30 01:43:41 +01:00
Mohamed El Mouctar HAIDARA
8e1e313f0c Warning if variable in include is undefined, uuid.uuid4() as id suffix 2019-03-27 23:58:27 +01:00
Mohamed El Mouctar HAIDARA
5b3336f296 Add when condition on the tasks 2019-03-27 22:39:19 +01:00
Mohamed El Mouctar HAIDARA
521875d50b Fix tests name 2019-03-27 22:28:25 +01:00
Mohamed El Mouctar HAIDARA
a51997dcce fix deprecation warning: using a loop via squash_actions 2019-03-27 22:04:47 +01:00
Mohamed El Mouctar HAIDARA
65b6013ea7 commont tests for test_nested_import_playbook 2019-03-27 00:03:52 +01:00
Mohamed El Mouctar HAIDARA
5f2817e7ff fix handle_include_path, update playbook level2.yml to use playbook_dir 2019-03-26 23:56:13 +01:00
Mohamed El Mouctar HAIDARA
6d47e52a92 Template the returned include_before trying to import it 2019-03-26 17:27:18 +01:00
Mohamed El Mouctar HAIDARA
aa556c67c3 Add test for nested import playbook and include 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
92df88d156 New tests for import_playbook 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
e03889ccde Remove example prefix from tests 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
7dbaccd781 Do not include role from "import_role" to prevent duplicate 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
58175a0917 Make test test_example_import_role the last test. Need to fix that later 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
0df5618013 move tests related files to tests/, FIXTURES_DIR relative to tests 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
4c17684a98 Update tests: run_grapher, remove os.remove 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
0e344e19ad Update tests to generated svg based on the function name 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
0619c9124a include_role_tasks as field of the Grapher, Update fixtures fake_role_2 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
e3e916f1d7 Parametrize test related to roles with the option --include-role-tasks 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
54ad58e610 Do not remove the generated svg after the tests 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
99f86cae8c Check also roles_number in the svg 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
1cc8f5fb6a Improve handling of include_role, use fake_role_2 for the tests 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
8eefcd2851 add new tests for include_role and import_role, new role with variables 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
dd0a2d3649 Add new fake_role 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
4aea1da2ae Update test_example_with_roles with a test with 'import_role' 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
dbde9e2cf8 Proper handling of nested include and relative path 2019-03-26 00:25:34 +01:00
Mohamed El Mouctar HAIDARA
c93c6d09ba fix: main should not return anything, update tests 2019-02-19 00:28:51 +01:00
Mohamed El Mouctar HAIDARA
c4c5ac06fe Add a new test for block 2019-02-18 19:40:54 +01:00
Mohamed El Mouctar Haidara
a2529de6bf
Add support for include_tasks. Fixes #13 (#15)
* Add support for include_tasks. Fixes #13

* Use keyword arguments for _include_tasks_in_blocks

* Pass correct variable manager to load_list_of_blocks

* Option fail_on_undefined during template

* Rewrite test_grapher_simple_playbook

* add id to the root node, prefix for play and task ids

* make post_process_svg return output_filename

* Tests using Pyquery which use more user friendly
2019-02-18 02:52:54 +01:00
Mohamed El Mouctar HAIDARA
a7b7a80b2e Move images to img 2018-12-30 22:26:09 +01:00
Mohamed El Mouctar HAIDARA
29b4ac73d0 Delete example folders. Put files in tests/fixtures 2018-12-30 21:58:06 +01:00
Mohamed El Mouctar HAIDARA
cf16aebc36 Fix tests after output ansible version 2018-12-30 21:49:03 +01:00
Mohamed HAIDARA
ce09177596 fix test_cli_version for python2 2017-11-27 11:58:58 +01:00
Mohamed HAIDARA
47eabf7c57 Some tests for the cli 2017-11-27 11:42:21 +01:00
Haidara Mohamed El Mouctar
a363eae94b
Tests and Travis Integration (#9)
* Test for grapher and post_processor (To complete)

* Udpate readme 

* Add requirements.txt and update setup.py

* Add .travis.yml
2017-11-21 12:17:33 +01:00
Mohamed HAIDARA
f5f29c1c6f initial commit 2017-10-25 12:14:33 +02:00