-
Notifications
You must be signed in to change notification settings - Fork 705
Refactor eco testing #4642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
ssbarnea
wants to merge
1
commit into
main
Choose a base branch
from
chore/eco
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Refactor eco testing #4642
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,3 +82,4 @@ node_modules | |
.direnv | ||
uv.lock | ||
.ansible | ||
test/fixtures/eco |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[submodule "test/fixtures/eco/bootstrap"] | ||
path = test/fixtures/eco/bootstrap | ||
url = https://github.com/robertdebock/ansible-role-bootstrap | ||
[submodule "test/fixtures/eco/cisco.nxos"] | ||
path = test/fixtures/eco/cisco.nxos | ||
url = https://github.com/ansible-collections/cisco.nxos | ||
[submodule "test/fixtures/eco/ansible_collection_system"] | ||
path = test/fixtures/eco/ansible_collection_system | ||
url = https://github.com/devroles/ansible_collection_system | ||
[submodule "test/fixtures/eco/ansible-docker-rootless"] | ||
path = test/fixtures/eco/ansible-docker-rootless | ||
url = https://github.com/konstruktoid/ansible-docker-rootless | ||
[submodule "test/fixtures/eco/ansible-role-hardening"] | ||
path = test/fixtures/eco/ansible-role-hardening | ||
url = https://github.com/konstruktoid/ansible-role-hardening | ||
[submodule "test/fixtures/eco/ansible-role-mysql"] | ||
path = test/fixtures/eco/ansible-role-mysql | ||
url = https://github.com/geerlingguy/ansible-role-mysql.git | ||
[submodule "test/fixtures/eco/debops"] | ||
path = test/fixtures/eco/debops | ||
url = https://github.com/debops/debops |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ansible-docker-rootless
added at
a8b465
Empty file.
Submodule ansible-role-hardening
added at
8316d2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This file contains ignores rule violations for ansible-lint | ||
molecule/default/verify.yml name[unique] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name[unique]: Task name 'Get PAM version' is not unique. It was first used on line 622. | ||
molecule/default/verify.yml:1124 | ||
|
Submodule ansible-role-mysql
added at
d1e921
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This file contains ignores rule violations for ansible-lint | ||
handlers/main.yml name[casing] | ||
meta/main.yml schema[meta] | ||
tasks/databases.yml fqcn[action] | ||
tasks/main.yml name[missing] | ||
tasks/replication.yml fqcn[action] | ||
tasks/replication.yml ignore-errors | ||
tasks/secure-installation.yml fqcn[action] | ||
tasks/secure-installation.yml jinja[spacing] | ||
tasks/secure-installation.yml no-changed-when | ||
tasks/setup-RedHat.yml fqcn[action-core] | ||
tasks/users.yml fqcn[action] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
name[casing]: All names should start with an uppercase letter. | ||
handlers/main.yml:2:9 Task/Handler: restart mysql | ||
|
||
schema[meta]: $.galaxy_info.min_ansible_version 2.12 is not of type 'string'. See https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_reuse_roles.html#using-role-dependencies | ||
meta/main.yml:1 Returned errors will not include exact line numbers, but they will mention | ||
the schema name being used as a tag, like ``schema[playbook]``, | ||
``schema[tasks]``. | ||
|
||
This rule is not skippable and stops further processing of the file. | ||
|
||
If incorrect schema was picked, you might want to either: | ||
|
||
* move the file to standard location, so its file is detected correctly. | ||
* use ``kinds:`` option in linter config to help it pick correct file type. | ||
[/] | ||
|
||
fqcn[action]: Use FQCN for module actions, such `community.mysql.mysql_db`. | ||
tasks/databases.yml:3:3 Action `mysql_db` is not FQCN. | ||
|
||
name[missing]: All tasks should be named. | ||
tasks/main.yml:3 Task/Handler: include_tasks variables.yml | ||
|
||
name[missing]: All tasks should be named. | ||
tasks/main.yml:6 Task/Handler: include_tasks setup-RedHat.yml | ||
|
||
name[missing]: All tasks should be named. | ||
tasks/main.yml:9 Task/Handler: include_tasks setup-Debian.yml | ||
|
||
name[missing]: All tasks should be named. | ||
tasks/main.yml:12 Task/Handler: include_tasks setup-Archlinux.yml | ||
|
||
name[missing]: All tasks should be named. | ||
tasks/main.yml:22 Task/Handler: include_tasks configure.yml | ||
|
||
name[missing]: All tasks should be named. | ||
tasks/main.yml:23 Task/Handler: include_tasks secure-installation.yml | ||
|
||
name[missing]: All tasks should be named. | ||
tasks/main.yml:24 Task/Handler: include_tasks databases.yml | ||
|
||
name[missing]: All tasks should be named. | ||
tasks/main.yml:25 Task/Handler: include_tasks users.yml | ||
|
||
name[missing]: All tasks should be named. | ||
tasks/main.yml:26 Task/Handler: include_tasks replication.yml | ||
|
||
fqcn[action]: Use FQCN for module actions, such `community.mysql.mysql_user`. | ||
tasks/replication.yml:3:3 Action `mysql_user` is not FQCN. | ||
|
||
fqcn[action]: Use FQCN for module actions, such `community.mysql.mysql_replication`. | ||
tasks/replication.yml:18:3 Action `mysql_replication` is not FQCN. | ||
|
||
fqcn[action]: Use FQCN for module actions, such `community.mysql.mysql_replication`. | ||
tasks/replication.yml:32:3 Action `mysql_replication` is not FQCN. | ||
|
||
ignore-errors: Use failed_when and specify error conditions instead of using ignore_errors. | ||
tasks/replication.yml:45 Task/Handler: Configure replication on the slave. | ||
|
||
fqcn[action]: Use FQCN for module actions, such `community.mysql.mysql_replication`. | ||
tasks/replication.yml:46:3 Action `mysql_replication` is not FQCN. | ||
|
||
fqcn[action]: Use FQCN for module actions, such `community.mysql.mysql_replication`. | ||
tasks/replication.yml:65:3 Action `mysql_replication` is not FQCN. | ||
|
||
fqcn[action]: Use FQCN for module actions, such `community.mysql.mysql_user`. | ||
tasks/secure-installation.yml:3:3 Action `mysql_user` is not FQCN. | ||
|
||
jinja[spacing]: Jinja2 spacing could be improved: {{ mysql_root_hosts.stdout_lines|default([]) }} -> {{ mysql_root_hosts.stdout_lines | default([]) }} (warning) | ||
tasks/secure-installation.yml:45 Jinja2 template rewrite recommendation: `{{ mysql_root_hosts.stdout_lines | default([]) }}`. | ||
|
||
no-changed-when: Commands should not change things if nothing needs doing. | ||
tasks/secure-installation.yml:45 Task/Handler: Update MySQL root authentication via socket for localhost (Linux, MySQL ≥ 8.4) | ||
|
||
jinja[spacing]: Jinja2 spacing could be improved: {{ mysql_root_hosts.stdout_lines|default([]) }} -> {{ mysql_root_hosts.stdout_lines | default([]) }} (warning) | ||
tasks/secure-installation.yml:61 Jinja2 template rewrite recommendation: `{{ mysql_root_hosts.stdout_lines | default([]) }}`. | ||
|
||
no-changed-when: Commands should not change things if nothing needs doing. | ||
tasks/secure-installation.yml:61 Task/Handler: Update MySQL root password for localhost root account (5.7.x ≤ MySQL < 8.4) | ||
|
||
jinja[spacing]: Jinja2 spacing could be improved: {{ mysql_root_hosts.stdout_lines|default([]) }} -> {{ mysql_root_hosts.stdout_lines | default([]) }} (warning) | ||
tasks/secure-installation.yml:80 Jinja2 template rewrite recommendation: `{{ mysql_root_hosts.stdout_lines | default([]) }}`. | ||
|
||
no-changed-when: Commands should not change things if nothing needs doing. | ||
tasks/secure-installation.yml:80 Task/Handler: Update MySQL root password for localhost root account (< 5.7.x). | ||
|
||
jinja[spacing]: Jinja2 spacing could be improved: {{ mysql_anonymous_hosts.stdout_lines|default([]) }} -> {{ mysql_anonymous_hosts.stdout_lines | default([]) }} (warning) | ||
tasks/secure-installation.yml:110 Jinja2 template rewrite recommendation: `{{ mysql_anonymous_hosts.stdout_lines | default([]) }}`. | ||
|
||
fqcn[action]: Use FQCN for module actions, such `community.mysql.mysql_user`. | ||
tasks/secure-installation.yml:111:3 Action `mysql_user` is not FQCN. | ||
|
||
fqcn[action]: Use FQCN for module actions, such `community.mysql.mysql_db`. | ||
tasks/secure-installation.yml:118:3 Action `mysql_db` is not FQCN. | ||
|
||
fqcn[action-core]: Use FQCN for builtin module actions (ansible.builtin.yum). | ||
tasks/setup-RedHat.yml:3:3 Use `ansible.builtin.dnf` or `ansible.legacy.dnf` instead. | ||
|
||
fqcn[action]: Use FQCN for module actions, such `community.mysql.mysql_user`. | ||
tasks/users.yml:3:3 Action `mysql_user` is not FQCN. | ||
|
Submodule ansible_collection_system
added at
bc8bd6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# This file contains ignores rule violations for ansible-lint | ||
.ansible/collections/ansible_collections/devroles/system/roles/authorized_key/defaults/main.yml var-naming[no-role-prefix] | ||
.ansible/collections/ansible_collections/devroles/system/roles/dotfiles/tasks/03_vim.yml yaml[octal-values] | ||
.ansible/collections/ansible_collections/devroles/system/roles/firewalld/defaults/main.yml yaml[comments] | ||
.ansible/collections/ansible_collections/devroles/system/roles/mariadb/tasks/configure_access.yml yaml[octal-values] | ||
.ansible/collections/ansible_collections/devroles/system/roles/mounts/defaults/main.yml var-naming[no-role-prefix] | ||
.ansible/collections/ansible_collections/devroles/system/roles/mythtv/handlers/main.yml no-changed-when | ||
.ansible/collections/ansible_collections/devroles/system/roles/mythtv/tasks/main.yml yaml[octal-values] | ||
.ansible/collections/ansible_collections/devroles/system/roles/sudoers/defaults/main.yml var-naming[no-role-prefix] | ||
.ansible/collections/ansible_collections/devroles/system/roles/sudoers/tasks/main.yml yaml[octal-values] | ||
.ansible/collections/ansible_collections/devroles/system/roles/update_ca_trust/handlers/main.yml no-changed-when | ||
.ansible/collections/ansible_collections/devroles/system/roles/update_ca_trust/tasks/main.yml yaml[octal-values] | ||
.ansible/collections/ansible_collections/devroles/system/roles/webserver/defaults/main.yml var-naming[no-role-prefix] | ||
.ansible/collections/ansible_collections/devroles/system/roles/webserver/tasks/letsencrypt.yml args[module] | ||
galaxy.yml galaxy[no-changelog] | ||
galaxy.yml galaxy[tags] | ||
meta/runtime.yml meta-runtime[unsupported-version] | ||
playbooks/molecule/dotfiles/prepare.yml fqcn[action-core] | ||
playbooks/molecule/dotfiles/prepare.yml name[play] | ||
playbooks/molecule/sudo/molecule.yml yaml[line-length] | ||
roles/authorized_key/defaults/main.yml var-naming[no-role-prefix] | ||
roles/authorized_key/molecule/shared/playbook.yml name[casing] | ||
roles/authorized_key/molecule/shared/playbook.yml var-naming[no-role-prefix] | ||
roles/common/molecule/shared/playbook.yml name[casing] | ||
roles/container/molecule/shared/playbook.yml name[casing] | ||
roles/copy_or_link/molecule/default/playbook.yml name[casing] | ||
roles/copy_or_link/molecule/default/prepare.yml fqcn[action-core] | ||
roles/copy_or_link/molecule/default/prepare.yml name[casing] | ||
roles/copy_or_link/molecule/default/prepare.yml name[play] | ||
roles/copy_or_link/molecule/default/prepare.yml yaml[octal-values] | ||
roles/copy_or_link/molecule/local/playbook.yml fqcn[action-core] | ||
roles/copy_or_link/molecule/local/playbook.yml name[casing] | ||
roles/copy_or_link/molecule/local/prepare.yml fqcn[action-core] | ||
roles/copy_or_link/molecule/local/prepare.yml fqcn[action] | ||
roles/copy_or_link/molecule/local/prepare.yml name[casing] | ||
roles/copy_or_link/molecule/local/prepare.yml name[play] | ||
roles/copy_or_link/molecule/local/prepare.yml yaml[octal-values] | ||
roles/copy_or_link/molecule/local/remote_playbook.yml name[play] | ||
roles/dev/molecule/shared/playbook.yml name[casing] | ||
roles/dev/molecule/shared/prepare.yml name[casing] | ||
roles/dotfiles/molecule/shared/playbook.yml fqcn[action-core] | ||
roles/dotfiles/molecule/shared/playbook.yml name[casing] | ||
roles/dotfiles/tasks/03_vim.yml yaml[octal-values] | ||
roles/epel/molecule/shared/playbook.yml name[casing] | ||
roles/firewalld/defaults/main.yml yaml[comments] | ||
roles/firewalld/molecule/shared/playbook.yml name[casing] | ||
roles/flatpak/molecule/shared/playbook.yml fqcn[action-core] | ||
roles/mariadb/molecule/shared/playbook.yml fqcn[action-core] | ||
roles/mariadb/molecule/shared/playbook.yml name[casing] | ||
roles/mariadb/tasks/configure_access.yml yaml[octal-values] | ||
roles/mirror/molecule/shared/playbook.yml fqcn[action-core] | ||
roles/mirror/molecule/shared/playbook.yml name[casing] | ||
roles/mirror/molecule/shared/playbook.yml name[play] | ||
roles/mounts/defaults/main.yml var-naming[no-role-prefix] | ||
roles/mta/tasks/main.yml syntax-check[specific] | ||
roles/mythtv/handlers/main.yml no-changed-when | ||
roles/mythtv/tasks/main.yml yaml[octal-values] | ||
roles/packages_server/molecule/shared/playbook.yml name[casing] | ||
roles/packages_workstation/tasks/Linux/03_libvirt.yml yaml[octal-values] | ||
roles/packages_workstation/tasks/Linux/05_kerberos.yml yaml[octal-values] | ||
roles/packages_workstation/tasks/Linux/06_blu_ray.yml yaml[octal-values] | ||
roles/packages_workstation/vars/MacOSX.yml var-naming[no-role-prefix] | ||
roles/python_prep/molecule/shared/playbook.yml fqcn[action-core] | ||
roles/python_prep/molecule/shared/playbook.yml name[casing] | ||
roles/sudoers/defaults/main.yml var-naming[no-role-prefix] | ||
roles/sudoers/molecule/shared/playbook.yml name[casing] | ||
roles/sudoers/molecule/shared/prepare.yml fqcn[action-core] | ||
roles/sudoers/molecule/shared/prepare.yml name[casing] | ||
roles/sudoers/tasks/main.yml yaml[octal-values] | ||
roles/system_repositories/molecule/container/playbook.yml fqcn[action-core] | ||
roles/system_repositories/molecule/container/playbook.yml name[casing] | ||
roles/system_repositories/molecule/container_fedora/playbook.yml fqcn[action-core] | ||
roles/system_repositories/molecule/container_fedora/playbook.yml name[casing] | ||
roles/update_ca_trust/handlers/main.yml no-changed-when | ||
roles/update_ca_trust/molecule/shared/playbook.yml name[casing] | ||
roles/update_ca_trust/molecule/shared/prepare.yml fqcn[action-core] | ||
roles/update_ca_trust/molecule/shared/prepare.yml name[casing] | ||
roles/update_ca_trust/molecule/shared/prepare.yml yaml[octal-values] | ||
roles/update_ca_trust/tasks/main.yml yaml[octal-values] | ||
roles/webserver/defaults/main.yml var-naming[no-role-prefix] | ||
roles/webserver/tasks/letsencrypt.yml args[module] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fixable by marking all uncovered code with
# pragma: no cover
or similar so that the coverage reaches 100%. With that, patch would be usable too.