Added test case to verify setting OCC's Turbo via REST.

This change includes:
    - Added test case to enable and disable turbo
      allowed via REST.
    - Added this test case in skip lists of NA system.

Resolves openbmc/openbmc-test-automation#631

Change-Id: I0b4f3e15dfa64ce74041cfb3364925994ffbe33b
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/test_lists/skip_test_barreleye b/test_lists/skip_test_barreleye
index 5270dfd..4b038f7 100644
--- a/test_lists/skip_test_barreleye
+++ b/test_lists/skip_test_barreleye
@@ -33,6 +33,7 @@
 -e LED_Group
 -e Verify_Enabling_OCC_Turbo_Setting_Via_IPMI
 -e Verify_Disabling_OCC_Turbo_Setting_Via_IPMI
+-e Verify_Setting_OCC_Turbo_Via_REST
 #https://github.com/openbmc/openbmc/issues/1283
 -e Inventory
 # NA until support for debug tarball is enabled
diff --git a/test_lists/skip_test_palmetto b/test_lists/skip_test_palmetto
index 7e6dfbb..83c7f77 100644
--- a/test_lists/skip_test_palmetto
+++ b/test_lists/skip_test_palmetto
@@ -28,6 +28,7 @@
 -e io_board_Fault
 -e Verify_Enabling_OCC_Turbo_Setting_Via_IPMI
 -e Verify_Disabling_OCC_Turbo_Setting_Via_IPMI
+-e Verify_Setting_OCC_Turbo_Via_REST
 #https://github.com/openbmc/openbmc/issues/928
 -e Set_Host_Time_With_Both_And_NTP
 #https://github.com/openbmc/openbmc/issues/901
diff --git a/tests/test_sensors.robot b/tests/test_sensors.robot
index 2722a83..4825554 100644
--- a/tests/test_sensors.robot
+++ b/tests/test_sensors.robot
@@ -176,6 +176,24 @@
     Response Should Be Equal  False
 
 
+Verify Setting OCC Turbo Via REST
+    [Documentation]  Verify enabling and disabling OCC's turbo allowed
+    ...  via REST.
+    # The allowed value for turbo allowed:
+    # True  - To enable turbo allowed.
+    # False - To disable turbo allowed.
+
+    [Tags]  Verify_Setting_OCC_Turbo_Via_REST
+
+    Set Turbo Setting Via REST  False
+    ${setting}=  Read Turbo Setting Via REST
+    Should Be Equal  ${setting}  False
+
+    Set Turbo Setting Via REST  True
+    ${setting}=  Read Turbo Setting Via REST
+    Should Be Equal  ${setting}  True
+
+
 CPU Present
     [Tags]  CPU_Present