Skip to content

Commit

Permalink
Merge pull request #278 from SUSE-Enceladus/ec2tswitch
Browse files Browse the repository at this point in the history
- Add test to ensure we have a dracut configuration that contains all…
  • Loading branch information
smarlowucf authored Nov 16, 2020
2 parents 5693c1e + 5cf760a commit c24d816
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions usr/share/lib/img_proof/tests/SLES/EC2/test_sles_ec2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ tests:
- test_sles_ec2_services
- test_sles_ec2_uuid
- test_sles_ec2_network
- test_test_sles_dracut_conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def test_sles_dracut_conf(host):
needed_drivers = ('ena', 'nvme', 'nvme-core', 'virtio', 'virtio_scsi',
'xen-blkfront', 'xen-netfront')
dracut_conf = host.file('/etc/dracut.conf.d/07-aws-type-switch.conf')
for driver in needed_drivers:
assert dracut_conf.contains(driver)

0 comments on commit c24d816

Please sign in to comment.