Fix missing keywords in boot policy test

Resolves  openbmc/openbmc-test-automation#830

Change-Id: Ie3b0bc76c3bbd2b4a58c970d22ff650f5d6ea31c
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_boot_policies.robot b/tests/test_boot_policies.robot
index 0c5d283..49c5862 100644
--- a/tests/test_boot_policies.robot
+++ b/tests/test_boot_policies.robot
@@ -143,24 +143,31 @@
     ...  AND  FFDC On Test Case Fail
 
     # Record initial bootmode setting.
-    ${boot_mode}=  Get Host Setting
+    ${boot_mode}=  Read Attribute
     ...  ${CONTROL_HOST_URI}/boot_mode  BootMode
     Set Suite Variable  ${initial_boot_mode}  ${boot_mode}
 
     # Set bootmode to non default value.
-    Set Host Setting  ${CONTROL_HOST_URI}/boot_mode  BootMode  Safe
+    Set Boot Mode  xyz.openbmc_project.Control.Boot.Mode.Modes.Safe
 
     Initiate BMC Reboot
     Wait Until Keyword Succeeds  10 min  10 sec  Is BMC Ready
 
-    ${boot_mode_after}=  Get Host Setting
+    ${boot_mode_after}=  Read Attribute
     ...  ${CONTROL_HOST_URI}/boot_mode  BootMode
 
-    Should Be Equal As Strings  ${boot_mode_after}  Safe
+    Should Be Equal As Strings
+    ...  ${boot_mode_after}  xyz.openbmc_project.Control.Boot.Mode.Modes.Safe
 
 
 *** Keywords ***
 
+Set Boot Mode
+    [Arguments]    ${args}
+    ${bootmode}=  Set Variable   ${args}
+    ${valueDict}=  Create Dictionary  data=${bootmode}
+    Write Attribute  ${CONTROL_HOST_URI}/boot_mode  BootMode  data=${valueDict}
+
 Set Boot Policy
     [Arguments]    ${args}
     ${bootpolicy}=   Set Variable   ${args}
@@ -199,5 +206,4 @@
 Restore Bootmode Setting
     [Documentation]  Restore initial bootmode setting.
 
-    Set Host Setting  ${CONTROL_HOST_URI}/boot_mode  BootMode
-    ...  ${initial_boot_mode}
+    Set Boot Mode  ${initial_boot_mode}