Sweta Potthuri | 3925503 | 2018-03-28 10:12:14 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Secure boot keywords. |
| 3 | |
| 4 | *** Keywords *** |
| 5 | |
| 6 | Set TPMEnable Policy |
| 7 | [Documentation] Enable or disable TPM Policy. |
| 8 | [Arguments] ${tpm_policy} |
| 9 | |
| 10 | # Description of argument(s): |
| 11 | # tpm_policy Enable-1 or Disable-0. |
| 12 | |
| 13 | ${value_dict}= Create Dictionary data=${tpm_policy} |
| 14 | Write Attribute ${CONTROL_HOST_URI}/TPMEnable TPMEnable |
| 15 | ... data=${value_dict} |
| 16 | |
| 17 | |
| 18 | Set And Verify TPM Policy |
| 19 | [Documentation] Enable or disable and verify TPM Policy. |
| 20 | [Arguments] ${tpm_policy} |
| 21 | |
| 22 | # Description of argument(s): |
| 23 | # tpm_policy Enable-1 or Disable-0. |
| 24 | |
| 25 | Set TPMEnable Policy ${tpm_policy} |
| 26 | ${resp}= Verify The Attribute |
| 27 | ... ${CONTROL_URI}/host0/TPMEnable TPMEnable ${tpm_policy} |