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

*** Variables ***
${path}           /api/v1/plan/page

*** Test Cases ***
正例-获取计划列表
    [Tags]    F
    create session    URI    ${URL}
    ${content}    POST请求结果    ${path}    {"page":1,"page_size":20}    200    ${token}
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    200
    Should Be Equal As Strings    ${content["data"][0]["id"]}    ${plan_id}

反例-不传入token
    [Tags]    E
    create session    URI    ${URL}
    ${content}    POST请求结果    ${path}    {"page":1,"page_size":20}    401    ${EMPTY}
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    401

反例-传入空白token
    [Tags]    E
    create session    URI    ${URL}
    ${content}    POST请求结果    ${path}    {"page":1,"page_size":20}    401    {}
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    401
