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

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

*** Test Cases ***
正例-正常删除计划
    [Tags]    F
    create session    URI    ${URL}
    ${content}    DEL请求结果    ${path}/${plan_id}    {}    200    ${token}
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    200

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

反例-传入空白token
    [Tags]    E
    create session    URI    ${URL}
    ${content}    DEL请求结果    ${path}/${plan_id}    {}    401    {}
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    401

反例-不传入plan_id
    [Tags]    E
    create session    URI    ${URL}
    ${content}    DEL请求结果    ${path}/    {}    404    ${token}
    log    ${content}
