*** Settings ***
Resource          flow_zmx.resource
Resource          res_zmx.resource

*** Variables ***
${path}           /api/user/config

*** Test Cases ***
正例-正常获取到用户配置
    [Tags]    F
    create session    URI    ${URL}
    ${content}    GET请求结果    ${path}    {}    200    ${token}
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    200

反例-不传入token
    [Tags]    E
    create session    URI    ${URL}
    ${content}    GET请求结果    ${path}    {}    200
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    200

反例-传入错误的token
    [Tags]    E
    create session    URI    ${URL}
    ${content}    GET请求结果    ${path}    {}    401    testtoken
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    401
