Add --whitelist option
Allows to mark some steps to be ignored in the results: allows tocontinue even when some checks are failing.
Full upgrade scenario
This commit intoroduces more structured upgrade scenario consisting ofthis scenarios:
Retain original objects while Tsorting. TSort create label graph and then convert to object graph
Define order using ruby TSort
1. Introduce 2 metadata: 'before' and 'after'2. Current order is:Checks::SyncPlans::WithEnabledStatusChecks::DiskSpeedMinimalChecks::SystemRegistrationChecks::ForemanTasks::NotPausedChecks::ForemanTasks::NotRunningChecks::ForemanTasks::Invalid::CheckOld...
Bump version to 0.0.3
Assumeyes option
Tests for preparation steps
Improve reporting on hammer setup and preparation steps
Hammer setup preparation step
Support running commands interactively
Introduce required params
Install required packages as the first one
RFE #23 - Add new status [WARNING] - Check: is system self registered
RFE #16 - Delete invalid tasks
Fixes #19 - Handled sync plans before & after upgrade
With this commit, below changes included -1. Two new checks - Disable sync plans before upgrade - Enable sync plans after upgrade which are disabled previously.
2. Created directory lib/foreman_maintain/storage in which...
Fixes #44 - Change tag 'basic' to 'default'
Rerun the check after a procedure
When user chooses a procedure, we now re-run the check again to make sure theissue if resolved. This allows to repeat the check/fix cycle several times:also the multiple steps for procedures make more sense now.
Decouple more reporter from runner
Before this commit, we required the reporter to call back runnermethods, which complicated the things. Also the multiple-steps selectwas not working properly.
After this change, the reporter just returns a decision as result of...
Add tests for tasks paused check and additional procedures
Namespace checks and procedures
Let's organize the stuff a bit better
Check count of paused tasks and offer next steps
Fixes #3 - Add option to skip the prompted step
Fixes #18 - introduce configuration file
Done changes for rubocop v0.48.1
Compatiblity with rubocop v0.48.0
1. Disabled: Use %i or %I for an array of symbols2. Fixed: Use 2 spaces for indentation in a heredoc by using some library(e.g. ActiveSupport's String#strip_heredoc). Created foreman_maintain/core_ext.rb extend String class....
Turn hammer feature into a utils class
After looking more into this, I think the util class is actually betterfit for the hammer case. I've also removed the detection of thecredentials from hammer configuration, as we actually don't needthe credentials by our own.
Shellescaping and password filtering support in system helper
Support code for allowing filering out sensitive data from logs+ properly escaping user-specified variables (such as password)
Fixes #5 - enhanced logger feature
1. Deleted existing lib/foreman_maintain/logger.rb files2. Now, logs are stored into file under foreman-maintain/log directory in debug mode3. Number of log files set to 10 i.ewhen, there would be 11 files remaining, the oldest one will be deleted...
Make the spinner opt-in, not opt-out
The default spinner caused issues when one needs to interact with theuser (printing additional messages). As it's needed only for longrunning actions, it should not be enforced by default.
Set next steps with the assert check
This allows adding more assertions to the check, each adding their ownnext steps.
Run confine against classes, not objects
This allows us to have multiple objects of the same procedure in thesystem, differing in the constructor parameters. Useful for parametrizedprocedures.
Extract metadata DSL to separate namespace
Having the DSL methods directly on the classes caused issues whenneeding to query the metadata later.
Bump version to 0.0.2
Better args handling
Allow running checks by label
Fixes #1 - IO operations on disk and file system
1) Removed feature DiskIO(Check is sufficent)2) rename Concerns::DiskUtility to Utils::Disk3) Move disk_utlity_concerns logic to Check itself4) confine hdparm and fio5) Error log message - verbore and descriptive...
Add travis
Fix loading of features from confine
With some ordering, the features could get tried to be detected twice.
Update readme
Add scaffold for definitions tests
tests for health commands
CLI basic structure
Refactor the choice of next steps
Update real definitions based on latest changes in lib
Refactor: make autodetect opt-out
Ability to define precedures
Unify finder and detector
The detector now can do both detection and filtering
Refactor
Rename feature_name to more generic label
Tests for runner and reporter
WIP: check scenarios
Ability to define and filter checks
Add first tests
Add rubocop
Basic gem structure
First version doing something: feature detection