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

*** Variables ***
${path}           /api/system/config/web

*** Test Cases ***
正例-正常获取到客户端配置
    [Tags]    F
    create session    URI    ${URL}
    ${content}    GET请求结果    ${path}    {}    200    ${token}
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    200
    Should Be Equal As Strings    ${content["message"]}    成功
    Should Be Equal As Strings    ${content["data"]}    {\"supportedModels\":[\"GPT-4o\",\"DeepSeek\"],\"supportVoiceMessage\":true,\"voiceMessageAppId\":\"55053e20\",\"authUrl\":\"http://accounts-4j.sit.ninetechone.com\"}

反例-不传入token
    [Tags]    E
    create session    URI    ${URL}
    ${content}    GET请求结果    ${path}    {}    200
    log    ${content}
    Should Be Equal As Strings    ${content["code"]}    200
    Should Be Equal As Strings    ${content["message"]}    成功
    Should Be Equal As Strings    ${content["data"]}    {\"supportedModels\":[\"GPT-4o\",\"DeepSeek\"],\"supportVoiceMessage\":true,\"voiceMessageAppId\":\"55053e20\",\"authUrl\":\"http://accounts-4j.sit.ninetechone.com\"}
