Skip to content

integration_tests: restrict test_lxd_bridge appropriately#730

Merged
OddBloke merged 2 commits into
canonical:masterfrom
OddBloke:tests
Dec 15, 2020
Merged

integration_tests: restrict test_lxd_bridge appropriately#730
OddBloke merged 2 commits into
canonical:masterfrom
OddBloke:tests

Conversation

@OddBloke
Copy link
Copy Markdown
Collaborator

@OddBloke OddBloke commented Dec 15, 2020

Proposed Commit Message

integration_tests: restrict test_lxd_bridge appropriately

On xenial, the bridge test fails because xenial's LXD doesn't include
the network subcommand. On bionic, the bridge test fails within
containers, because LXD isn't able to manipulate the host kernel as it
expects.

(focal and later do run successfully in containers, but we don't have a
good way of expressing that presently.)

Test Steps

CLOUD_INIT_OS_IMAGE=xenial pytest tests/integration_tests/modules/test_lxd_bridge.py and CLOUD_INIT_OS_IMAGE=bionic pytest tests/integration_tests/modules/test_lxd_bridge.py fail currently, and with this change instead passes (with all skips).

CLOUD_INIT_PLATFORM=lxd_vm CLOUD_INIT_OS_IMAGE=xenial pytest tests/integration_tests/modules/test_lxd_bridge.py fails currently, and with this change instead passes (with 1 skip, the bridge test). CLOUD_INIT_PLATFORM=lxd_vm CLOUD_INIT_OS_IMAGE=bionic pytest tests/integration_tests/modules/test_lxd_bridge.py fails currently, and with this change instead passes.

Checklist:

  • My code follows the process laid out in the documentation
  • I have updated or added any unit tests accordingly
  • I have updated or added any documentation accordingly

On xenial, the bridge test fails because xenial's LXD doesn't include
the `network` subcommand.  On bionic, the bridge test fails within
containers, because LXD isn't able to manipulate the host kernel as it
expects.

(focal and later do run successfully in containers, but we don't have a
good way of expressing that presently.)
@OddBloke OddBloke changed the title test_lxd_bridge: add no_container mark integration_tests: restrict test_lxd_bridge appropriately Dec 15, 2020
@OddBloke OddBloke merged commit eadadaa into canonical:master Dec 15, 2020
@OddBloke OddBloke deleted the tests branch December 15, 2020 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants