31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
*** Settings ***
|
|
Test Teardown TeardownDelete ${url} certIds ${certId}
|
|
Force Tags tsg_bf_api Trusted_Certificate_Authorities
|
|
Library String
|
|
Library OperatingSystem
|
|
Library Selenium2Library
|
|
Library Collections
|
|
Resource ../../../02-Keyword/tsg_bfapi/common.robot
|
|
Resource ../../../02-Keyword/tsg_bfapi/policy_file_interface/functionalKeywords.robot
|
|
Resource ../../../03-Variable/bifangapivariable.txt
|
|
|
|
*** Variables ***
|
|
${url} /policy/profile/trustedcacertobj
|
|
${certId} ${EMPTY}
|
|
|
|
*** Test Cases ***
|
|
Trusted Cert Policy CRUD case
|
|
|
|
# 新增
|
|
${response} CreatePolicyFile ${url} Keyrings/root/ tango-ca-trust-ca-cer.pem
|
|
|
|
# 查询
|
|
${certId} Get From Dictionary ${response} certId
|
|
${certName} Get From Dictionary ${response} certName
|
|
QueryPolicyFile ${url} certId=${certId}&certName=${certName}
|
|
|
|
# 修改
|
|
${header_edit} Set Variable {"isValid":1,"opAction":"update","certName":"test_edit","certId":"${certId}","returnData":1}
|
|
UpdatePolicyFile ${url} Keyrings/Intermediate/ tang-ca-v3-intermediate-01-cer.pem ${header_edit}
|
|
|