The panko.hacking.checks Module

The panko.hacking.checks Module

Guidelines for writing new hacking checks

  • Use only for Panko specific tests. OpenStack general tests should be submitted to the common ‘hacking’ module.

  • Pick numbers in the range X3xx. Find the current test with the highest allocated number and then pick the next value.

  • Keep the test method code in the source file ordered based on the C3xx value.

  • List the new rule in the top level HACKING.rst file

@panko.hacking.checks.factory[source]
@panko.hacking.checks.no_log_warn[source]

Disallow ‘LOG.warn(‘

https://bugs.launchpad.net/tempest/+bug/1508442

C301

@panko.hacking.checks.no_os_popen[source]

Disallow ‘os.popen(‘

Deprecated library function os.popen() Replace it using subprocess https://bugs.launchpad.net/tempest/+bug/1529836

C302

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.