~raharper/curtin:feature/vmtest-enable-proposed

Last commit made on 2018-05-11
Get this branch:
git clone -b feature/vmtest-enable-proposed https://git.launchpad.net/~raharper/curtin
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Branch information

Name:
feature/vmtest-enable-proposed
Repository:
lp:~raharper/curtin

Recent commits

990dcce... by Ryan Harper

Add missing trailing )

fbf8434... by Ryan Harper

Add additional refactor from smoser

c9d62e2... by Ryan Harper

Make tox happy

fc034fe... by Ryan Harper

Rework apt repo structure, we needed apt_repo_XX: {source: <repo>}

166ca0f... by Ryan Harper

Fix up smoser refactor, need util.json_dumps

e13e992... by Scott Moser

suggested changes: simplify generate_repo_config, add proposed to apt.

2 things here:
 a.) use json_dumps (yaml.dumps would be fine) to render yaml from
     a dictionary rather than rendering it ourselves in
     generate_repo_config.
 b.) move the handling of the magic 'proposed' string to the apt
     module, meaning that anywhere we see:
        apt: {'sources': {'01': 'proposed'}}
     then proposed will get used. This makes it available to any
     user of curtin.

722527a... by Ryan Harper

Fix system_upgrade config, use -y with apt install

7ce34a2... by Ryan Harper

Add missing colon for apt_repo_XX section name

f6c113f... by Ryan Harper

vmtests: add env settings for adding repos, system_upgrade, and install pkgs

Add environment variables to support adding repositories, toggling
system_upgrade boolean, and installing packages.

This supports several use-cases where we want to test if a package
fixes an issue found in vmtest.

CURTIN_VMTEST_ADD_REPOS:
  Comma separated list of repos to add via apt: config
  Typically in the form: ppa:lpuser/pocket but also supports
  'proposed' to generate a sources entry for adding that pocket.
  extend the apt syntax to allow for the string 'proposed' to turn

CURTIN_VMTEST_SYSTEM_UPGRADE:
  Enable curtin's system_upgrade feature, default value is 0
  If there are values in CURTIN_VMTEST_ADD_REPOS, this will default to 1.
  Users may use ADD_REPOS and disable system_upgrade by setting value to 0.

CURTIN_VMTEST_UPGRADE_PACKAGES:
  Comma separated list of packages that will be installed/upgraded
  in a late command.

79c4b0f... by Ryan Harper

Simplify exporting CURTIN_VMTEST_* variables in jenkins-runner