*** Settings ***
Documentation    This suite is to test service user functionality via Redfish.

Resource         ../lib/connection_client.robot
Resource         ../lib/openbmc_ffdc.robot
Resource         ../lib/bmc_redfish_utils.robot

Suite Setup      Suite Setup Execution
Suite Teardown   Redfish.Logout
Test Teardown    FFDC On Test Case Fail


*** Test Cases ***

Verify service user availability
    [Documentation]  Verify service user avalability.

    # Verify that service user has administrator privilege.
    ${role_config}=  Redfish_Utils.Get Attribute
    ...  /redfish/v1/AccountService/Accounts/service  RoleId

    Should Be Equal  Administrator  ${role_config}


*** Keywords ***

Suite Setup Execution
    [Documentation]  Do suite setup tasks.

    Redfish.Login

Add testcase to verify if service user exists with admin role.
Add testcase to verify if service user exists with admin role.

     - Verify service user availability

Change-Id: I9ba386fecb6a80d3011260f39752f9d7d8f26567
Signed-off-by: manashsarma <bc095463df3ac81e71d6b05cdcfc30e87ec3c38e@in.ibm.com>

openbmc/openbmc-test-automation,openbmc/openbmc-test-automation