Merge ~smoser/cloud-init:bug/1354694-whitespace-in-group-string into cloud-init:master
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merged at revision: | ca3ae67211d907b4cfdcd685c0ae4f9530cb7da1 | ||||
| Proposed branch: | ~smoser/cloud-init:bug/1354694-whitespace-in-group-string | ||||
| Merge into: | cloud-init:master | ||||
| Diff against target: |
202 lines (+160/-9) 2 files modified
cloudinit/distros/__init__.py (+13/-9) tests/unittests/test_distros/test_create_users.py (+147/-0) |
||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Scott Moser | Resubmit on 2016-12-19 | ||
|
Review via email:
|
|||
| Scott Moser (smoser) wrote : | # |
Would like to test that this config works:
#cloud-config
users:
- default
- name: foobar
gecos: "My User"
groups: sudo, adm
- name: wark
groups: [sudo, adm]
- name: wark2
groups: [sudo, "adm "]
- name: allnew
groups: group1, group2, group3
It is probably sufficient to test the distros add_user specifically.
| Scott Moser (smoser) wrote : | # |
In addition to the unit tests, I've tested the user-data below and verified expected groups and users are added and now WARN in cloud-init.log.
#cloud-config
users:
- default
- name: foobar
gecos: "My User"
groups: sudo, adm
- name: wark
groups: [sudo, adm]
- name: wark2
groups: [sudo, "adm "]
- name: allnew
groups: group1, group2, group3


this needs a test added.