Commit graph

114 commits

Author SHA1 Message Date
Mohamed El Mouctar Haidara
12cee0fbd5
feat: Add test cases for role dependencies (#127) 2022-10-11 00:32:23 +02:00
dependabot[bot]
0b1124b8f1
chore(deps): update ansible-core requirement from <2.13,>=2.11 to >=2.12,<2.14 (#115)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mohamed El Mouctar HAIDARA <elmhaidara@gmail.com>
2022-10-09 14:12:57 +02:00
dependabot[bot]
a8dfd02434
chore(deps): bump pytest from 7.1.2 to 7.1.3 (#126)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-01 14:07:13 +02:00
dependabot[bot]
1c329326a7
chore(deps): bump pytest-cov from 3.0.0 to 4.0.0 (#125)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-01 12:16:00 +02:00
Mohamed El Mouctar Haidara
75f26a9ea2
feat: Add a flag to group roles by name - Revert the old behavior (#122) 2022-08-20 14:35:27 +02:00
Mohamed El Mouctar Haidara
e7f23daee7
fix: Roles usages and do not use multiple edges for role tasks (#120) 2022-08-17 22:20:55 +02:00
Mohamed El Mouctar HAIDARA
4599b10f4f fix: Only render role once for multiple playbooks and refactor 2022-08-15 02:37:03 +02:00
Mohamed El Mouctar Haidara
af67fd5f60
feat: Add support multiple playbooks in one graph (#118) 2022-08-14 22:59:46 +02:00
Mohamed El Mouctar Haidara
89534c1fd3
feat: Add test case for community downloaded roles and collections (#117) 2022-07-30 20:54:55 +02:00
Mohamed El Mouctar Haidara
f3dbfd0ed1
fix: Render a single node when multiple playbooks use the same role (#111)
* fix: Render a single node when multiple playbooks use the same role

Related to #110
2022-07-02 11:40:00 +02:00
Mohamed El Mouctar HAIDARA
3f6dd6f27b tests: change assert order for consistency 2022-06-26 18:02:49 +02:00
dependabot[bot]
8f877a6d49
chore(deps): bump pytest from 7.1.1 to 7.1.2 (#107)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-19 00:02:42 +02:00
Mohamed El Mouctar Haidara
2d5f70d6f6
refactor(internal): Remove useless EdgeNode (#109) 2022-06-18 00:11:16 +02:00
dependabot[bot]
9f0ea1e7c8
chore(deps): bump pytest from 7.0.1 to 7.1.1 (#106)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.0.1 to 7.1.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.0.1...7.1.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-23 19:17:19 +02:00
dependabot[bot]
a4553455e2
chore(deps): bump pytest from 6.2.5 to 7.0.1 (#105)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.5 to 7.0.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.5...7.0.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-13 15:05:03 +01:00
Mohamed El Mouctar Haidara
d61ba1ed0b
fix: Properly rank the edges in the graphs and sub-graphs (#104) 2022-02-15 19:47:32 +01:00
Mohamed El Mouctar Haidara
0e16ceb53e
refactor: format the code with black (#102) 2022-02-07 23:41:13 +01:00
Mohamed El Mouctar Haidara
826c6ef284
feat: Open node file when double-clicking on it from a browser (#79) 2022-01-29 14:47:09 +01:00
Mohamed El Mouctar Haidara
2ce66443dc
fix: Do not pass display as param since it's a singleton + init locale to fix warning (#101) 2022-01-25 22:55:35 +01:00
Mohamed El Mouctar HAIDARA
8500784e09 test: Add assert to check if the warning is displayed to users 2022-01-11 22:42:03 +01:00
Mohamed El Mouctar Haidara
c05cc91aac
fix: Fix include_role with loop and list index out of range (#99)
Related to #80
2022-01-11 22:32:10 +01:00
Mohamed El Mouctar Haidara
5615043089
fix: Fix include_role with loop (#92) 2022-01-09 20:24:52 +01:00
Mohamed El Mouctar Haidara
1f2f2be408
fix: Properly manage include in pre_tasks and post_tasks (#97) 2022-01-06 23:49:52 +01:00
Mohamed El Mouctar HAIDARA
5f6d356fe9 style: replace .format by fstring and fix typo 2022-01-02 13:39:13 +01:00
Mohamed El Mouctar Haidara
3c4961dec0
fix: Block can only contain tasks regardless of the context (#96)
Fixes #95
2022-01-01 09:47:25 +01:00
Mohamed El Mouctar HAIDARA
c8f42e1ea3 refactor: Move test_install.sh to tests/ 2021-11-11 18:27:48 +01:00
dependabot[bot]
9c9327014b
chore(deps): bump pytest-cov from 2.12.1 to 3.0.0 (#90)
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 2.12.1 to 3.0.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.12.1...v3.0.0)

---
updated-dependencies:
- dependency-name: pytest-cov
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-07 18:32:46 +01:00
Mohamed El Mouctar HAIDARA
2bf42cd8d5 tests: Set display verbosity and use only one for all tests 2021-10-03 21:08:28 +02:00
Mohamed El Mouctar HAIDARA
f0a0d8b60e tests: Rename fake_role_2 and update tasks 2021-10-03 21:00:58 +02:00
Mohamed El Mouctar HAIDARA
dbdf3fb48f test: TEST_VIEW_GENERATED_FILE should be == 1 to view the graphs during testing [ci skip] 2021-10-03 20:01:02 +02:00
Mohamed El Mouctar Haidara
0dc6034992
feat: Parser improvements + tests (#89) 2021-10-03 16:04:08 +02:00
Mohamed El Mouctar HAIDARA
585eb6311f feat: Add support for when on include_role 2021-09-29 01:12:42 +02:00
Mohamed El Mouctar Haidara
77d3f2bd6a
feat: Add ability do distinguish the explicit block on the graph (#86) 2021-09-26 18:18:09 +02:00
Mohamed El Mouctar HAIDARA
9a0fdec592 fix(tests): Correctly insert --view option 2021-09-25 00:21:47 +02:00
Mohamed El Mouctar Haidara
8c9ad83206
feat: Add option to automatically view the generated file (#88)
This new option --view will automatically open the resulting SVG file with your system’s default viewer application for the file type
2021-09-25 00:09:20 +02:00
Mohamed El Mouctar HAIDARA
2c9c65a802 tests: Add missing docs + type annotations 2021-09-24 23:54:41 +02:00
Mohamed El Mouctar HAIDARA
a86aa6f9c1 fix: Remove counter from parser. It's the renderer's problem 2021-09-23 08:54:49 +02:00
Mohamed El Mouctar HAIDARA
7a92fe8e7a chore: type annotations + update signatures 2021-09-19 19:22:23 +02:00
Mohamed El Mouctar HAIDARA
9d022565ac style: Rename PostProcessor to GraphVizPostProcessor 2021-09-15 22:45:29 +02:00
Mohamed El Mouctar Haidara
dd0c4e5db2
feat: Consider inclue_role as normal role instead of task (#82) 2021-09-15 22:29:19 +02:00
dependabot[bot]
b7c68ba9f1
chore(deps): bump pytest from 6.2.4 to 6.2.5 (#83)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.4 to 6.2.5.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.4...6.2.5)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-13 20:35:18 +02:00
Mohamed El Mouctar HAIDARA
80e9fbf993 test: Make test verbose by default with -vv in the args 2021-08-29 20:10:34 +02:00
Mohamed El Mouctar Haidara
0c1094bdc2
Refactor the grapher. Part 2 (#81) 2021-08-29 18:43:27 +02:00
dependabot-preview[bot]
ed7afd6eae
build(deps): Bump pytest from 6.2.2 to 6.2.4 (#76)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.2 to 6.2.4.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.2...6.2.4)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-07-27 23:58:01 +02:00
dependabot-preview[bot]
ee6f9ea828
build(deps): Bump pytest-cov from 2.11.1 to 2.12.1 (#78)
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 2.11.1 to 2.12.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.11.1...v2.12.1)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-07-27 23:54:40 +02:00
Mohamed El Mouctar HAIDARA
9205d824a4 fix: Drop support for ansible 2.8 2021-05-09 16:12:47 +02:00
Mohamed El Mouctar HAIDARA
9acd5beb26 feat: add type hints to tests 2021-02-14 02:41:33 +01:00
Mohamed El Mouctar HAIDARA
7adcc90d9a fix: Fix test after adding a tooltip 2021-02-14 02:32:03 +01:00
dependabot-preview[bot]
4a1ab38611 build(deps): Bump pyquery from 1.4.1 to 1.4.3
Bumps [pyquery](https://github.com/gawel/pyquery) from 1.4.1 to 1.4.3.
- [Release notes](https://github.com/gawel/pyquery/releases)
- [Changelog](https://github.com/gawel/pyquery/blob/master/CHANGES.rst)
- [Commits](https://github.com/gawel/pyquery/compare/1.4.1...1.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-14 01:43:59 +01:00
dependabot-preview[bot]
bf6c573325 build(deps): Bump pytest-cov from 2.10.1 to 2.11.1
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 2.10.1 to 2.11.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.1...v2.11.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-14 01:30:24 +01:00