daily-package-testing: add scripts and data for testing daily package

Unlike other tests this is not something we can run on each merge
request (yet). The test-in-vagrant.sh script ascertains the status of
the current package in the daily PPA

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
XML exporter: Added support for attachments

Binary attachments keep their base64 encoding but plain text attachments
are decoded to be exported as just text in the xml stream

3 specific attachments are part of the hardware section:
- dmi_attachment
- sysfs_attachment
- udev_attachment
They are filtered from the attachment_map to be exclusively be used by the
_add_hardware() method. Moreover all of them are considered as plain text.
XML exporter: new test to check the hardware section attachments
Add classmethod for generating cloud config data based on ISO in use

Signed-off-by: Jeff Marcom <jeff.marcom@canonical.com>
pep8 fixes
Updated Changelog
XML Exporter: Use the TestCaseWithParameters class for all dump tests
"[r=zkrynicki][bug=1155686][author=jeffmarcom] automatic merge by tarmac"
"[r=zkrynicki][bug=][author=zkrynicki] automatic merge by tarmac"
XML exporter: dump tests now define the parameter_values class attribute
"[r=zkrynicki][bug=][author=sylvain-pineau] XML exporter: Added support for attachments"
depmgr: bump copyright

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
depmgr: add DependencyError.affecting_job

This property helps distinguish between the job that is affected
by the problem (affected_job) and perhaps another job that is _causing_
the problem (affecting_job).

This is only the case for DependencyDuplicateError

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
depmgr: bump copyright

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
depmgr: add unit tests for DependencyError.affecting_job

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
depmgr: add more docstrings

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
depmgr: add test for duplicate jobs

This test is pretty much identical to
DependencySolverInternalsTests.test_get_job_map_find_duplicates()
but it's nice to see that it just works

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
depmgr: update docstrings about DependencyDuplicateError

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
session: bump copyright

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
session: add xfailure tests for bug lp: #1157264

SessionState.__init__() does not detect passing duplicate jobs like
other parts of session do. This later causes spurious errors in dependency
solver.

This patch adds tests that expect to fail until bug gets fixed

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Reported-by: Sean Feole <sean.feole@canonical.com>