You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python lint tests warn (well, after #975 is merged) due to too many locals in the pulp_smash.pulp_smash_cli.settings_create function. This change is directly caused by the addition of the selinux_enabled flag in #975.
Describe what version of Pulp and what OS is affected by the issue.
n/a
State steps to re-create the issue.
(pulp-smash) [vagrant@pulp2 pulp-smash]$ make lint
flake8 . --ignore E501,F401 --exclude docs/_build
pylint -j 4 --reports=n --disable=I \
docs/conf.py \
pulp_smash \
scripts/run_functional_tests.py \
setup.py \
tests
No config file found, using default configuration
************* Module pulp_smash.pulp_smash_cli
R: 44, 0: Too many local variables (16/15) (too-many-locals)
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
If there is a related pulp.plan.io issue, link to it, and set the "smash test" field.
Briefly discussed, but basically we may want to split out the settings_create into smaller functions to build up the larger configuration. (pulp, server, role, etc).
The text was updated successfully, but these errors were encountered:
When applied, this commit will redefine what a "valid" configuration
file is. Existing configuration files will continue to be valid. But in
addition, entirely new (and similar-looking) configuration files may
also be written.
The old configuration files are suitable for use when testing Pulp 2.
They let one declare information like "host pulp.example.com is running
rabbitmq." The new configuration files are suitable for testing Pulp 3.
They lew one declare information like "host pulp.example.com is running
redis."
In addition, this commit will update two pieces of machinery that are
related to the configuration file. Specifically, this commit will
overhaul the entire CLI interface (as accessed by the `pulp-smash`
executable) and re-implement the `PulpSmashConfig.get_services` method.
Fix: #965Fix: #980
Issue
pulp_smash lint tests should pass cleanly
Python lint tests warn (well, after #975 is merged) due to too many locals in the
pulp_smash.pulp_smash_cli.settings_create
function. This change is directly caused by the addition of theselinux_enabled
flag in #975.n/a
n/a
Plan?
Proposed Solution
Briefly discussed, but basically we may want to split out the settings_create into smaller functions to build up the larger configuration. (pulp, server, role, etc).
The text was updated successfully, but these errors were encountered: