diff options
author | Jonathan Cave <jonathan.cave@canonical.com> | 2018-12-18 09:26:52 +0000 |
---|---|---|
committer | Jonathan Cave <jonathan.cave@canonical.com> | 2018-12-18 11:01:18 +0000 |
commit | 1eba869bb323e90db7c0d5372acde9e500ee0efc (patch) | |
tree | d101d4354015c24ea516b5fc194186a01c636936 | |
parent | ebbd0d96e23900e0c8cd3e04966c7ffaf2fa4653 (diff) |
oobm: initial tests for Intel AMT testing
One automated test to test if the LMS service is running. A set of manual tests to check output of meshcmd cli tool.
-rw-r--r-- | units/oob-management/category.pxu | 4 | ||||
-rw-r--r-- | units/oob-management/jobs.pxu | 133 | ||||
-rw-r--r-- | units/oob-management/test-plan.pxu | 32 |
3 files changed, 169 insertions, 0 deletions
diff --git a/units/oob-management/category.pxu b/units/oob-management/category.pxu new file mode 100644 index 0000000..b9c9ae5 --- /dev/null +++ b/units/oob-management/category.pxu @@ -0,0 +1,4 @@ + +unit: category +id: oob-management +_name: Out-Of-Band Management tools tests diff --git a/units/oob-management/jobs.pxu b/units/oob-management/jobs.pxu new file mode 100644 index 0000000..5615a65 --- /dev/null +++ b/units/oob-management/jobs.pxu @@ -0,0 +1,133 @@ + +id: oob-management/amt/amtinfo_cmd +_summary: Check the output of the AmtInfo command is valid +category_id: oob-management +plugin: user-interact-verify +user: root +requires: + executable.name == 'meshcmd' +_steps: + Checkbox will run the meshcmd AmtInfo command +command: + set -x + meshcmd amtinfo +_verification: + Check the command ran correctly. + Check the correct ME FW version is shown. + Correct Provisioning state is shown (should be pre-provisioning for + unprovisioned SUT). + + +id: oob-management/amt/smbios_cmd +_summary: Check the output of the SMBios command is valid +category_id: oob-management +plugin: user-interact-verify +user: root +requires: + executable.name == 'meshcmd' +_steps: + Checkbox will run the meshcmd SMBios command +command: + set -x + meshcmd smbios +_verification: + Check the Processor Info is correct. + Check the Memory Info is correct. + Check the System Info is correct. + Check the AMT info is correct. + + +id: oob-management/amt/amtversions_cmd +_summary: Check the output of the AmtVersions command is valid +category_id: oob-management +plugin: user-interact-verify +user: root +requires: + executable.name == 'meshcmd' +_steps: + Checkbox will run the meshcmd AmtVersions command +command: + set -x + meshcmd amtversions +_verification: + Check the MEI version is correct. + Check the AMT version is correct. + Check the Sku is correct. + Check the Build Number is correct. + + +id: oob-management/amt/amtccm_provisioning +_summary: Check that Client Control Mode can be reached +category_id: oob-management +plugin: user-interact-verify +user: root +requires: + executable.name == 'meshcmd' +_steps: + Checkbox will run the meshcmd amtccm command and set a password +command: + set -x + meshcmd amtccm --password intelamt + meshcmd amtinfo +_verification: + Check that the AmtCCM command returns Sucess. + Check that the output of the AmtInfo command now shows activated in client + control mode. + + +id: oob-management/amt/amtccm_webui +_summary: Check that Client Control Mode can be reached +category_id: oob-management +plugin: manual +depends: oob-management/amt/amtccm_provisioning +_steps: + Use a desktop PC on the same network as the SUT to attempt to connect to the WebUI. + In a browser enter http://<addres-of-sut>:16992 as the location. +_verification: + Verify that WebUI is shown. + Check the HW inventory is correct. + Run a couple of remote power commands and verify they are run successfully. + + +id: oob-management/amt/amtccm_deactivate +_summary: Check that Client Control Mode can be deactivated +category_id: oob-management +plugin: user-interact-verify +after: oob-management/amt/amtccm_webui +user: root +requires: + executable.name == 'meshcmd' +_steps: + Checkbox will run the meshcmd amtdeactivate command +command: + set -x + meshcmd amtdeactivate +_verification: + Check that the deactivation completed successfully. + + +id: oob-management/amt/lms_service_running +_summary: Check the LMS service is running +category_id: oob-management +plugin: shell +template-engine: jinja2 +requires: + {%- if __on_ubuntucore__ %} + # TODO: name is a guess until snap provided + snap.name == 'lms' + {%- else %} + package.name == 'lms' + {% endif -%} +command: + {%- if __on_ubuntucore__ %} + # TODO: name is a guess until snap provided + SERVICE_NAME="snap.lms.lms.service" + {%- else %} + SERVICE_NAME="lms.service" + {% endif -%} + systemctl is-active --quiet "$SERVICE_NAME" + RETVAL=$? + if [ $RETVAL -ne 0 ]; then + systemctl status "$SERVICE_NAME" + exit $RETVAL + fi \ No newline at end of file diff --git a/units/oob-management/test-plan.pxu b/units/oob-management/test-plan.pxu new file mode 100644 index 0000000..9a06b47 --- /dev/null +++ b/units/oob-management/test-plan.pxu @@ -0,0 +1,32 @@ + +id: oob-management-full +unit: test plan +_name: QA tests for Out-of-Band Management tools +_description: + Tests for tools for Out-of-Band Management tools such as Intel AMT +include: +nested_part: + oob-management-manual + oob-management-automated + +id: oob-management-manual +unit: test plan +_name: Maual Out-of-Band Management tools tests +_description: + Tests for tools for Out-of-Band Management tools such as Intel AMT +include: + oob-management/amt/amtinfo_cmd + oob-management/amt/smbios_cmd + oob-management/amt/amtversions_cmd + oob-management/amt/amtccm_provisioning + oob-management/amt/amtccm_webui + oob-management/amt/amtccm_deactivate + + +id: oob-management-automated +unit: test plan +_name: Automated Out-of-Band Management tools tests +_description: + Tests for tools for Out-of-Band Management tools such as Intel AMT +include: + oob-management/amt/lms_service_running \ No newline at end of file |