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

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

*** Test Cases ***
正例-禁用计划
    [Tags]    F
    create session    URI    ${URL}
    # 构建带计划ID的完整路径
    ${inactive_path}    Catenate    SEPARATOR=/    ${path}    ${plan_id}
    ${content}    POST请求结果    ${inactive_path}    {}    200    ${token}
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    200

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

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