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
Properly and consistently report changes in 'files' promises #4196
Properly and consistently report changes in 'files' promises #4196
Commits on Jun 10, 2020
-
Add a functions for recording changes, failures, etc.
More high-level function than just 'Log()' which, unlike 'cfPS()', say nothing about the state of the whole promise because one promise can cause multiple changes on the system. Ticket: ENT-5291 Changelog: None
-
Make it possible to check if MakeParentDirectory() created something
So that we can report the fact. Ticket: ENT-5291 Changelog: None
-
Properly report changes in the CfCreateFile function
It should report all changes it makes. And it should use LogChange() instead of cfPS() for doing so because cfPS() is for reporting status of a whole promise. Ticket: ENT-5291 Changelog: Directory and file creations are now properly reported as 'info' messages
-
Record that no change was required for file (not) existing as promised
Ticket: ENT-5291 Changelog: None
-
Properly report changes for files.transformer
Ticket: ENT-5291 Changelog: None
-
Properly report changes in VerifyName()
Ticket: ENT-5291 Changelog: None
-
Properly report changes in VerifyDelete
Ticket: ENT-5291 Changelog: None
-
Properly report about changes in TouchFile()
Ticket: ENT-5291 Changelog: None
-
Properly report changes in VerifyFileAttributes()
Ticket: ENT-5291 Changelog: None
-
Properly report changes in File Integrity Monitoring
Ticket: ENT-5291 Changelog: None
-
Properly report about changes in DepthSearch()
Ticket: ENT-5291 Changelog: None
-
Properly report changes when manipulating links
Ticket: ENT-5291 Changelog: None
-
Properly report about changes when copying
Ticket: ENT-5291 Changelog: None
-
Properly report changes when editing lines in files
Ticket: ENT-5291 Changelog: None
-
Properly report about changes when editing XML files
Also report failures as failures not interruptions. Ticket: ENT-5291 Changelog: Failures in edit_xml result in promises marked as failed not interrupted
-
Properly report changes when rendering contents from templates
Ticket: ENT-5291 Changelog: None
-
Properly report and record results of 'files' promises
Ticket: ENT-5291 Changelog: All changes made by 'files' promises are now reported
-
Adapt the 10_files/09_insert_lines/nothing_to_repeat_error.cf test
With the improved changes reporting the test now produces 'info:' lines which are expected. Ticket: ENT-5291 Changelog: None
-
Minor fixes for file changes reporting
Also adapt the 10_files/02_maintain/changes_update_hashes.cf test and add comments about why certain classes are (not) defined. Ticket: ENT-5291 Changelog: None
-
Do not define outcome classes for skipped files
Ticket: ENT-5291 Changelog: None
-
Adapt the 10_files/this_promiser.cf test to better changes reporting
The outcome classes are now defined for the top-level directory even if 'include_basedir' is 'false'. It makes more sense -- if there are changes made in the directory, the respective '_repaired' class is defined. And then it can be used for things like "Do we need to update the archive/backup of that directory?". Ticket: ENT-5291 Changelog: The outcome classes are now defined for the top-level directory when 'include_basedir' is 'false'
-
Use 'permissions' instead of 'permission' when (not) changing them
It's a set of permissions. Ticket: ENT-5291 Changelog: None
-
Adapt the 00_basics/02_switches/dry_run_perms_doesnt_lie.cf test
The log messages are now slightly different. Ticket: ENT-5291 Changelog: None
-
Do not overwrite xattrs if they are the same already
If 'preserve => "true"' is used in a copy_from body and the xattrs of the source and the destination are the same, the destination's xattrs should not be overwritten by the source's xattrs. Ticket: ENT-5291 Changelog: None
-
Properly report about changes in FinishEditContext()
Ticket: ENT-5291 Changelog: None
-
Report failures in 'fields_edit' promises that don't find a match
Ticket: ENT-5291 Changelog: None