~chad.smith/cloud-init:cc-ntp-testing

Last commit made on 2017-05-24
Get this branch:
git clone -b cc-ntp-testing https://git.launchpad.net/~chad.smith/cloud-init
Only Chad Smith can upload to this branch. If you are Chad Smith please log in for upload directions.

Branch merges

Branch information

Name:
cc-ntp-testing
Repository:
lp:~chad.smith/cloud-init

Recent commits

29d0bb1... by Chad Smith on 2017-05-24

calculate root_dir path for templates directory from util import as sys.path will be different on test environments

15a8bc4... by Chad Smith on 2017-05-23

add unit test for the real ntp templates for each distro. drop unused metadata param

49c4eb8... by Chad Smith on 2017-05-23

use util.read_file_or_url instead of open()read(). replace ntp_conf in write_.._template

e4f1154... by Chad Smith on 2017-05-23

lints

5ededba... by Chad Smith on 2017-05-23

bytestring the unittest stream.write and py3 import of StringIO

56bccbc... by Chad Smith on 2017-05-23

bytestring the unittest stream.write and py3 import of StringIO

ea1a3ba... by Chad Smith on 2017-05-23

restructure test_handler_cc_ntp to cut down on some mocks

9b244cc... by Chad Smith on 2017-05-23

add logging to unit tests

2669c2f... by Chad Smith on 2017-05-23

restructure some of ntp making it a more testable. Don't use globals as function defaults

3507b59... by Scott Moser on 2017-05-19

disk_setup: fix several issues with gpt disk partitions.

This fixes several shortcomings of disk_setup with gpt disks.
 * 'sgdisk -p' was being used to determine the size of a disk.
   this can fail if it believes there is a bad gpt partition table.
   Instead we just use blockdev now for both mbr or gpt disks.
 * parsing of sgdisk -p output assumed that the 'name' of the partition
   type would not have any spaces (Microsoft basic data)
 * interaction with sgdisk did not realize that sgdisk wants input
   of '8300' rather than '83' and will output the same.

LP: #1692087