From 675b8dee57d7626ebea92cfb9eea5dc6a0be5965 Mon Sep 17 00:00:00 2001 From: Jeff Lane Date: Mon, 24 Aug 2020 17:38:11 -0400 Subject: Added new job to check BMC for the maas user account. lp: #1892786 --- units/miscellanea/jobs.pxu | 23 +++++++++++++++++++++++ units/miscellanea/test-plan.pxu | 1 + 2 files changed, 24 insertions(+) (limited to 'units/miscellanea') 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 -- cgit v1.2.3