~raharper/cloud-init:snapuser-create

Last commit made on 2016-10-20
Get this branch:
git clone -b snapuser-create https://git.launchpad.net/~raharper/cloud-init
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Branch information

Name:
snapuser-create
Repository:
lp:~raharper/cloud-init

Recent commits

a353f18... by Ryan Harper

Revert "Merge branch 'fix-lp1619423' into snapuser-create"

This reverts commit 1b964281b506a7c5ba156730fd22d69091be957f, reversing
changes made to 3db49a7a586cab7df957ca0fca979b01431e49b3.

53d8cb4... by Ryan Harper

cc_snap_config: move snapuser creation out of handle and other cleanups

- Dropped distros = ['ubuntu']; snapd runs on other distros as well
- Dropped set_snappy_cmd; we require 'snap' for function
- Default assertions parameter to None to prevent object init
- Moved snapuser creation into method out of handle into add_snap_user
- Added unittests for new add_snap_user method

1b96428... by Ryan Harper

Merge branch 'fix-lp1619423' into snapuser-create

a55ae1f... by Ryan Harper

debian: add explicit dependencies for required binaries

3db49a7... by Ryan Harper

config/cc_snap_config: Add some config checking and unittests

- Make sure we only run on system_is_snappy == True
- Handle some expected scenarios for various levels of config input.
- Handle the case where the device is already managed
- Add unittests to cover snap_config module.

b543c0f... by Ryan Harper

unittest: add test for when snappy system-user assertion is provided

76774db... by Ryan Harper

snappy: try harder to import system-user assertion

a9b54d0... by Ryan Harper

Merge remote-tracking branch 'origin/master' into snapuser-create

808edb1... by Scott Moser

MAAS: improve the main of datasource to look at kernel cmdline config.

This just looks in one other maas related path for a config file.
The file '91_kernel_cmdline_url' is written by cloud-init when it
gets a cloud-config-url parameter.

Also now we read the config even if a url is specified to potentially
fill in credentials.

c4aeba3... by Scott Moser

tests: silence the Cheetah UserWarning about NameMapper C version.

This silences a warning made by Cheetah in pip installed environments:
  UserWarning: You don't have the C version of NameMapper installed!
  I'm disabling Cheetah's useStackFrames option ...

The reason for the monkey patching is that the warning goes to stderr
during nose and breaks up its expected output. The side affect of it
is that tests would run with Cheetah's 'useStackFrames'
enabled which is "painfully slow with the Python version of NameMapper".