summaryrefslogtreecommitdiff
diff options
-rw-r--r--units/miscellanea/jobs.pxu23
-rw-r--r--units/miscellanea/test-plan.pxu1
2 files changed, 24 insertions, 0 deletions
diff --git a/units/miscellanea/jobs.pxu b/units/miscellanea/jobs.pxu
index 45015d2..6eccdfe 100644
--- a/units/miscellanea/jobs.pxu
+++ b/units/miscellanea/jobs.pxu
@@ -471,3 +471,26 @@ requires: package.name == 'debsums'
command: debsums -c
_summary: Check the MD5 sums of installed Debian packages
_description: Verify installed Debian package files against MD5 checksum lists from /var/lib/dpkg/info/*.md5sums.
+
+plugin: shell
+category_id: com.canonical.plainbox::miscellanea
+id: miscellanea/maas_user_check
+requires:
+ executable.name == 'ipmitool'
+ cpuinfo.platform != 's390x'
+estimated_duration: 0.5
+user: root
+command:
+ CHAN=0
+ FOUND="false"
+ while [ $CHAN -le 15 ]; do
+ if ipmitool user list $CHAN 2>/dev/null |grep -E "maas.*ADMINISTRATOR"; then
+ break
+ fi
+ let "CHAN+=1"
+ done
+_description:
+ This will verify that the maas user was successfully created with admin
+ privileges
+_summary:
+ Verify BMC user called 'maas' was successfully created
diff --git a/units/miscellanea/test-plan.pxu b/units/miscellanea/test-plan.pxu
index e40dbaf..f1809e0 100644
--- a/units/miscellanea/test-plan.pxu
+++ b/units/miscellanea/test-plan.pxu
@@ -63,6 +63,7 @@ mandatory_include:
miscellanea/cpuid
miscellanea/get_make_and_model
miscellanea/get_maas_version certification-status=blocker
+ miscellanea/maas_user_check
miscellanea/efi_boot_mode certification-status=blocker
miscellanea/secure_boot_mode
miscellanea/reboot_firmware