新增 hijack 24种类型新增case
This commit is contained in:
@@ -0,0 +1,268 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Test Teardown TeardownDelete ${url} profileIds ${profileId}
|
||||||
|
Force Tags tsg_adc Security_Policy
|
||||||
|
Library OperatingSystem
|
||||||
|
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
||||||
|
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
||||||
|
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
||||||
|
Resource ../../../02-Keyword/tsg_bfapi/ApiRequest.robot
|
||||||
|
Resource ../../../03-Variable/AllFlowCaseVariable.txt
|
||||||
|
Resource ../../../03-Variable/Policy_Objects_Module.txt
|
||||||
|
Library Custometest
|
||||||
|
|
||||||
|
*** Variables ***
|
||||||
|
${url} /policy/profile/hijackfiles
|
||||||
|
${profileId} ${EMPTY}
|
||||||
|
|
||||||
|
*** Test Cases ***
|
||||||
|
Hijack_file_24_type-00000
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-0.apk contentType=application/vnd.android.package-archive
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00001
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-1.exe contentType=application/x-msdos-program
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00002
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-2.gif contentType=image/gif
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00003
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-3.html contentType=text/html
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00004
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-4.jpeg contentType=image/jpeg
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00005
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-5.png contentType=image/png
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00005-1
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-5.png contentType=application/x-png
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00006
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-6.svg contentType=image/svg+xml
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00007
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-7.rpm contentType=audio/x-pn-realaudio-plugin
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00008
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-8.dmg contentType=application/x-apple-diskimage
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00009
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-9.js contentType=application/x-javascript
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00010
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-10.rar contentType=application/octet-stream
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00011
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-11.zip contentType=application/x-zip-compressed
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00012
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-12.doc contentType=application/msword
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00013
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-13.docx contentType=application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00014
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-14.json contentType=application/json
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00015
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-15.xml contentType=text/xml
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00016
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-16.pdf contentType=application/pdf
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00017
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-17.xls contentType=application/vnd.ms-excel
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00017-1
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-17.xls contentType=application/x-xls
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00018
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-18.xlsx contentType=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00019
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-19.ppt contentType=application/vnd.ms-powerpoint
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00019-1
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-19.ppt contentType=application/x-ppt
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00020
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-20.pptx contentType=application/vnd.openxmlformats-officedocument.presentationml.presentation
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00021
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-21.odt contentType=application/vnd.oasis.opendocument.text
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00022
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-22.css contentType=text/css
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00023
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-23.csv contentType=text/comma-separated-values
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
|
|
||||||
|
Hijack_file_24_type-00024
|
||||||
|
#Hijack 需要修改的内容
|
||||||
|
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-24.plain contentType=text/plain
|
||||||
|
Comment 打印需要修改的json内容
|
||||||
|
log ${objectedit}
|
||||||
|
${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}
|
||||||
|
log ${objectDict}
|
||||||
|
${response} CreatePolicyFile4 ${url} hijack_files/ ${objectDict}
|
||||||
Reference in New Issue
Block a user