Majic Projects
Majic Ansible Roles
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png Majic Ansible Roles / Closed Task MAR-163 Deduplicate and improve tests
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Task
  • Category
    Not determined
  • Targetted for
    6.0.0
  • Status
    Closed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    8 hours
  • Time spent
    4 hours
    Click here to see time logged against this issue
Issue details
  • Resolution
    RESOLVED
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description

The tests used for testing the Majic Ansible Roles have been created quite some time ago, and there is a number of improvements that could be made to them to improve reliability and reduce the duplication in a number of places.

The following should be done:

  • All roles
    • Avoid potential shell injection by using host.run parameter passing for parametrised strings (instead of using the % operator directly).
    • Clean-up the [ANSIBLEXXXX] QA suppression statements to use the noqa syntax which is limited to a single check being disabled instead of disabling all linting checks on a task.
    • Clean-up the names for [ANSIBLEXXXX] QA suppression statements to include only the number. This is a chance in format of linting issues.
    • Switch to using the nmap script ssl-enum-ciphers for testing the available TLS ciphers and protocol information in all tests where possible.
  • bootstrap role
    • Deduplicate tests for ansible_key.
  • mail_server role
    • Deduplicate tests related to TLS files and their content.
  • php_website role
    • Parametrize TLS file checks for the test_nginx_tls_files test similar to the in the wsgi_website role.
  • preseed role
    • Deduplicate tests for ansible_key and preseed_directory if possible.
  • Determine if any other roles are applicable for similar type of improvements, and apply the improvements to them as well.
Todos (0 / 0)
There are no comments