diff options
author | Jonathan Cave <jonathan.cave@canonical.com> | 2018-06-18 12:53:05 +0100 |
---|---|---|
committer | Jonathan Cave <jonathan.cave@canonical.com> | 2018-06-19 10:32:20 +0100 |
commit | a06844f2badc6d020b4e1bdcd1669307e5d8d0a6 (patch) | |
tree | 66e51fe9a2a37740f6ea8b101415151185857d38 /units/disk | |
parent | 216f3095a5efe4741f1975a0ef860fbc6f766b8b (diff) |
Add disk encryption test
Diffstat (limited to 'units/disk')
-rw-r--r-- | units/disk/encryption.pxu | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/units/disk/encryption.pxu b/units/disk/encryption.pxu new file mode 100644 index 00000000..b7d41c8f --- /dev/null +++ b/units/disk/encryption.pxu @@ -0,0 +1,21 @@ + +id: disk/encryption/detect +category_id: com.canonical.plainbox::disk +plugin: shell +template-engine: jinja2 +user: root +requires: + executable.name == 'lsblk' + executable.name == 'dmsetup' + executable.name == 'cryptsetup' +_summary: Test that Full Disk Encryption is in use +_description: + Examine the system to detect if one of the standard full disk encryption + implementations is in use +command: + {%- if __on_ubuntucore__ %} + fde_tests.py + {%- else %} + fde_tests.py desktop + {% endif -%} +estimated_duration: 2.0 \ No newline at end of file |