Skip to content

Commit

Permalink
Enable Beaker plans in provision CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
happz committed Jun 26, 2024
1 parent 9717fc4 commit e8b8710
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
tf_extra_params:
test:
tmt:
name: /plans/provision/virtual
name: /plans/provision/(beaker|virtual)
environments:
- tmt:
context:
Expand Down
38 changes: 38 additions & 0 deletions plans/provision/beaker.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
summary: Machines via Beaker

description: |
Verify functionality of the Beaker provision plugin. Run
tests which exercise various features of the Beaker plugin
even if not directly related to the provision implementation.

Each test should set the `provision-beaker` tag to
get picked by the plan, consume the `PROVISION_HOW`
variable and use `provision --how beaker` on their own.

discover:
how: fmf
filter: 'tag:provision-beaker'

environment:
PROVISION_HOW: beaker

adjust+:
- enabled: true
when: how == provision

- provision:
hardware:
memory: ">= 4 GB"
when: trigger == commit

- prepare+:
- name: Disable IPv6
how: shell
script:
- sysctl -w net.ipv6.conf.all.disable_ipv6=1
- sysctl -w net.ipv6.conf.default.disable_ipv6=1
because: Disable IPv6 in CI to avoid IPv6 connections that are disabled in CI
when: trigger == commit

# Once more tests start supporting Beaker, we may need to split plan to per-step subplans.
# See `/plans/provision/virtual` for inspiration/
12 changes: 0 additions & 12 deletions plans/provision/beaker/main.fmf

This file was deleted.

21 changes: 0 additions & 21 deletions plans/provision/beaker/sanity.fmf

This file was deleted.

0 comments on commit e8b8710

Please sign in to comment.