*** Settings ***
Library           RequestsLibrary
Resource          flow_zmx.resource
Resource          res_zmx.resource

*** Variables ***
${path}           /api/v1/share/get_share

*** Test Cases ***
正例-获取分享会话成功
    [Tags]    F
    create session    URI    ${URL}
    ${full_path}    Catenate    ${path}/${share_id}
    ${content}    GET请求结果    ${full_path}    {}    200    ${EMPTY}
    Should Be Equal As Strings    ${content["code"]}    200
    Should Contain    ${content}    data

反例-使用不存在的分享ID
    [Tags]    E
    create session    URI    ${URL}
    ${full_path}    Catenate    ${path}/nonexistent1234567890
    ${content}    GET请求结果    ${full_path}    {}    404    ${EMPTY}
    Should Be Equal As Strings    ${content["code"]}    404

反例-使用空的分享ID
    [Tags]    E
    Comment    create session    URI    ${URL}
    Comment    ${full_path}    Catenate    ${path}/
    Comment    ${content}    GET请求结果    ${full_path}    {}    404    ${EMPTY}

反例-使用无效格式的分享ID
    [Tags]    E
    create session    URI    ${URL}
    ${full_path}    Catenate    ${path}/invalid-share-id-format
    ${content}    GET请求结果    ${full_path}    {}    404    ${EMPTY}
    Should Be Equal As Strings    ${content["code"]}    404
