~chad.smith/curtin:collect-logs

Last commit made on 2018-01-20
Get this branch:
git clone -b collect-logs https://git.launchpad.net/~chad.smith/curtin
Only Chad Smith can upload to this branch. If you are Chad Smith please log in for upload directions.

Branch merges

Branch information

Name:
collect-logs
Repository:
lp:~chad.smith/curtin

Recent commits

98176df... by Chad Smith

Address Scott's review comments:
 * stderr instead of stdout
 * don't shell out to find . -exec sed. Use python os.walk re.sub to redact
 * move mkdtemp creation inside _create_tar
 * os.chmod on partitions/cmdline files as they are read-only when copying

c135058... by Chad Smith

additional unit test expressing absent post_files as a file item with content == None

35e2df3... by Chad Smith

fix stdout mocking. Can not use add_patch on trusty-py3 due to old mock issues. Need mock.patch context manager

890f1ae... by Chad Smith

mock specific stdout.write method instead of the top-level module

9cacd00... by Chad Smith

fix cmdline --tarfile parameter for collect-logs. Make dated subdir include the hour & minute. Drop duplicated mocks in unittests.

81a0852... by Chad Smith

add /proc/partitions and /proc/cmdline unit test tweaks

74f67eb... by Chad Smith

add /proc/partitions and /proc/cmdline to tarfile

a2f75e8... by Chad Smith

use minute granularity per rharper's review

c6fe83e... by Chad Smith

pass maas oauth credentials into redact_sensitive_information. Unit tests around redact. refactor unit tests for _create_tar into separate unit test class

dad584f... by Chad Smith

flakes