ubuntu-advantage-script:reuse-vm-in-behave

Last commit made on 2020-07-15
Get this branch:
git clone -b reuse-vm-in-behave https://git.launchpad.net/ubuntu-advantage-script

Branch merges

Branch information

Name:
reuse-vm-in-behave
Repository:
lp:ubuntu-advantage-script

Recent commits

f0fa93a... by Chad Smith on 2020-07-15

Merge branch 'master' into reuse-vm-in-behave

54539dd... by Lucas Albuquerque Medeiros de Moura on 2020-07-15

Do not enable services if blocking services is active (#1113)

Users should not be able to enable livepatch if fips is active or fips if livepatch is active as stated in #1029 . We are now add the possibility for verifying if blocking services are enabled before activating a service. If this happens, we will not enable the service and show the user which services are responsible for that behavior.

Furthermore, we are only testing this feature now in Bionic. Although there are some improvements we can achieve for testing that feature, there are some potential issues that I have found (#1111 and #1112) that are posing a difficult for developing vm tests

Fixes: #1029

2a483be... by Lucas Albuquerque Medeiros de Moura on 2020-07-14

Fix typo

1e6e70a... by Lucas Albuquerque Medeiros de Moura on 2020-07-10

Add back release info to published vms

28c1954... by Lucas Albuquerque Medeiros de Moura on 2020-07-14

Add test more behave tests for livepatch (#1120)

This PR is an initial effort towards livepatch and FIPS deeper integration testing (beyond `ua status`).

It calls canonical-livepatch from the snap directly to confirm that the service is up and active without error.
It also begins to address deeper FIPS testing, per #1119, by validating that the fips kernel is active after system reboot
once enabled on Bionic. More FIPS testing to come for Xenial once fips-metapackage is available.

Fixes: #1118

7dd693d... by Chad Smith on 2020-07-10

tests: add xenial bionic integration test coverage (#1116)

Additionally, add separate tox env targets for behave to run
each Ubuntu release. This allows for more parallel job runs in travis
and avoiding the default 50 minute job timeout for travis on public
repos.

Travis job matrix now calls the separate tox envs:
   behave-14.04, behave-16.04, behave-18.04, behave-20.04

To avoid duplciation of test metadata:
 - introduce a @series.all tag alias for any tests which have common
   expectations on each Ubuntu release
 - Use Scenario Outlines to drive testing across multiple releases

There is some minor duplication in Scenario Outline Examples columns for
tests which represent the cartesion product of Releases by "expected outputs".
We may try to address that by providing separate custom example tables in a
subsequent PR.

Fixes: #1110

Co-authored-by: Lucas Moura <email address hidden>

7325cc2... by Lucas Albuquerque Medeiros de Moura on 2020-07-08

Merge pull request #1105 from canonical/test-token

Contract token test

62e1d9c... by Lucas Albuquerque Medeiros de Moura on 2020-07-08

Fix version behave test

46318fe... by Lucas Albuquerque Medeiros de Moura on 2020-07-07

Update version behave tests

17fc9f7... by Lucas Albuquerque Medeiros de Moura on 2020-07-03

Fix behave tests