diff options
Diffstat (limited to 'testdata/ui_data')
| -rw-r--r-- | testdata/ui_data/__init__.py | 0 | ||||
| -rw-r--r-- | testdata/ui_data/profiles_data/DoS_detection_profiles.json | 16 | ||||
| -rw-r--r-- | testdata/ui_data/profiles_data/__init__.py | 0 | ||||
| -rw-r--r-- | testdata/ui_data/profiles_data/dns_records.json | 184 | ||||
| -rw-r--r-- | testdata/ui_data/profiles_data/hijack_files.json | 49 | ||||
| -rw-r--r-- | testdata/ui_data/profiles_data/insert_scripts.json | 21 | ||||
| -rw-r--r-- | testdata/ui_data/profiles_data/response_pages.json | 17 | ||||
| -rw-r--r-- | testdata/ui_data/profiles_data/shaping_profiles.json | 69 | ||||
| -rw-r--r-- | testdata/ui_data/profiles_data/ssl_decryption_keyrings.json | 63 | ||||
| -rw-r--r-- | testdata/ui_data/profiles_data/ssl_decryption_profiles.json | 64 | ||||
| -rw-r--r-- | testdata/ui_data/profiles_data/traffic_mirroring_profiles.json | 44 |
11 files changed, 527 insertions, 0 deletions
diff --git a/testdata/ui_data/__init__.py b/testdata/ui_data/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/testdata/ui_data/__init__.py diff --git a/testdata/ui_data/profiles_data/DoS_detection_profiles.json b/testdata/ui_data/profiles_data/DoS_detection_profiles.json new file mode 100644 index 00000000..bc969470 --- /dev/null +++ b/testdata/ui_data/profiles_data/DoS_detection_profiles.json @@ -0,0 +1,16 @@ +{ + "comment": "shaping_profiles参数注解:item中为参数驱动测试,model可选为modify。'->'为创建修改数据分隔符,前为创建数据,后为修改数据。unit分隔符后为空则只创建数据,例如’bps->‘、'543->'。unit分隔符后非空,修改数据。544->表示不修改、654->456表示修改前后数据。", + "item": + [ + { + "ids": "创建Generic_bps用例", + "model": "create", + "attack_type": "DNS Flood->", + "target_IPs": [ + "1.1.1.1->" + ], + "packet_second": "0->", + "bits_second": "0->" + } + ] +} diff --git a/testdata/ui_data/profiles_data/__init__.py b/testdata/ui_data/profiles_data/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/testdata/ui_data/profiles_data/__init__.py diff --git a/testdata/ui_data/profiles_data/dns_records.json b/testdata/ui_data/profiles_data/dns_records.json new file mode 100644 index 00000000..801ac7b7 --- /dev/null +++ b/testdata/ui_data/profiles_data/dns_records.json @@ -0,0 +1,184 @@ +{ + "comment": "dns_records参数注解:item中为参数驱动测试,model可选为create、modify。type可选为A、AAAA、CNAME 。如果model=modify,例如:modify.'12.12.12.12->34.45.67.54'表示修改前后数据,'->'为前后数据分隔符。在修改中,分隔符前为空表示新增数据。分隔符后为空表示删除数据。其它同理。", + "item": + [ + { + "ids": "创建单个类型A用例", + "model": "create", + "type": "A", + "values": + [ + "45.23.122.223" + ], + "description": "test-description45.23.122.223" + }, + { + "ids": "创建单个类型A再修改为A用例", + "model": "modify", + "type": "A->A", + "values": + [ + "145.223.172.243->32.124.176.43" + ], + "description": "test-description32.124.176.43" + }, + { + "ids": "创建多个类型A用例", + "model": "create", + "type": "A", + "values": + [ + "2.2.2.2", + "3.3.3.3", + "4.4.4.4" + ], + "description": "test-description" + }, + { + "ids": "创建多个类型A,再修改为多个类型A用例", + "model": "modify", + "type": "A->A", + "values": + [ + "12.12.12.12->34.45.67.54", + "13.13.31.13->", + "->65.123.34.56", + "14.14.14.41->56.43.46.64", + "->165.123.134.56" + ], + "description": "test-description->tesst modify desc" + }, + { + "ids": "创建单个类型AAAA用例", + "model": "create", + "type": "AAAA", + "values": + [ + "32:12aa::34cd" + ], + "description": "test-32:12aa::34cd" + }, + { + "ids": "创建单个类型AAAA,再修改为AAAA用例", + "model": "modify", + "type": "AAAA->AAAA", + "values": + [ + "32:12aa::34cd->1231:3452:5643::aa" + ], + "description": "test-1231:3452:5643::aa" + }, + { + "ids": "创建多个类型AAAA用例", + "model": "create", + "type": "AAAA", + "values": + [ + "32:12aa::34cd", + "4265:5688:3345::4325:4456", + "1234::3456:53aa" + ], + "description": "test-sa14265:5688:3345::4325:4456" + }, + { + + "ids": "创建多类型AAAA,再修改为AAAA用例", + "model": "modify", + "type": "AAAA->AAAA", + "values": + [ + "3322:12aa::34cd->1231:3452:5643::aa", + "3252:123a::347d->", + "3352:127a::844d->1231:3752:9643::86aa", + "->1431:7652:5333::64aa" + ], + "description": "test-ssa1231:3752:9643::86aa" + }, + { + "ids": "创建单个类型CNAME用例", + "model": "create", + "type": "CNAME", + "values": + [ + "test.sds.asd.com" + ], + "description": "test-test.sds.asd.com" + }, + { + "ids": "创建单个类型CNAME,再修改为CNAME用例", + "model": "modify", + "type": "CNAME->CNAME", + "values": + [ + "test.sttds.adssd.com->test.sda.ddss.gec.cn" + ], + "description": "test-test.sda.ddss.gec.cn" + }, + { + "ids": "创建多个类型CNAME用例", + "model": "create", + "type": "CNAME", + "values": + [ + "test.sttds.adssd.com", + "test.sttsdssds.addfeessd.com", + "test.sttee2wads.adsssssd.com" + ], + "description": "test-sa1test.sttee2wads.adsssssd.com" + }, + { + "ids": "创建多类型CNAME,再修改为CNAME用例", + "model": "modify", + "type": "CNAME->CNAME", + "values": + [ + "->test.sddsg.sdsssdd.fco.cn", + "test.ssdsdssds.addsd.com->test.sdgoc.sdwa.caom.com", + "->test.sddsg.sdsd.fcfgo.cn", + "test.sassdo.caom.com->", + "test.sdoas.comada.com->test.sodmao.asdo.com", + "->test.sddsg.sdsd.fco.cn" + ], + "description": "test-est.sddsg.sdsd.fco.cn" + }, + { + "ids": "创建多类型A,再修改为CNAME用例", + "model": "modify", + "type": "A->CNAME", + "values": + [ + "112.12.32.12->test.sdgoc.sdwa.caom.com", + "53.23.234.21->", + "12.12.33.45->test.sodmao.asdo.com", + "->test.sddsg.sdsd.fco.cn" + ], + "description": "12.12.33.45->test.sodmao.asdo.com" + }, + { + "ids": "创建多类型CNAME,再修改为CNAME用例", + "model": "modify", + "type": "AAAA->CNAME", + "values": + [ + "42::4532:2234->test.sdgoc.sdwa.caom.com", + "5342:5322:3234::3213->", + "aa11:3214::4521->test.sodmao.asdo.com", + "->test.sddsg.sdsd.fco.cn" + ], + "description": "test-aa11:3214::4521->test.sodmao.asdo.com" + }, + { + "ids": "创建多类型CNAME,再修改为A用例", + "model": "modify", + "type": "CNAME->A", + "values": + [ + "test.ssdsdssds.addsd.com->23.42.234.12", + "test.sassdo.caom.com->", + "test.sdoas.comada.com->53.65.156.176", + "->12.45.168.123" + ], + "description": "test-est.test.sdoas.comada.com->53.65.156.176" + } + ] +} diff --git a/testdata/ui_data/profiles_data/hijack_files.json b/testdata/ui_data/profiles_data/hijack_files.json new file mode 100644 index 00000000..d65f9b0c --- /dev/null +++ b/testdata/ui_data/profiles_data/hijack_files.json @@ -0,0 +1,49 @@ +{ + "comment": "标识符'->'参数注解:model可选参数create、modify。标识符'->'为前后数据分隔符,分隔符前为创建数据,后为修改数据。例如:16->7:表示创建及修改;18->不修改:表示只创建不修改;18->删除:表示删除;->18:表示修改为新增(创建时不输入)", + "comment2": "1.file:文件名称。2.download_name in (Mirror Server Response, 或者其它输入内容)。3.file_type in (gif,jpeg,png,svg+xml,exe,apk,html)", + "item": + [ + { + "ids": "创建gif类型hijack_files数据", + "model": "create", + "file": "test_gif_1.gif->", + "download_name": "Mirror Server Response->", + "file_type": "gif->" + }, + { + "ids": "创建gif类型hijack_files数据再修改数据gif数据", + "model": "modify", + "file": "test_gif_1.gif->test_gif_2.gif", + "download_name": "test_gif_1.gif->Mirror Server Response", + "file_type": "gif->不修改" + }, + { + "ids": "创建jpeg类型hijack_files数据", + "model": "create", + "file": "test_jpeg_1.jpeg->", + "download_name": "test_jpeg_1.jpeg->", + "file_type": "jpeg->" + }, + { + "ids": "创建png类型hijack_files数据再修改数据svg+xml数据", + "model": "modify", + "file": "test_png_1.png->test_svg_1.svg", + "download_name": "test_png_1.gif->name_test_svg_1.svg", + "file_type": "png->svg+xml" + }, + { + "ids": "创建exe类型hijack_files数据", + "model": "create", + "file": "test_exe_1.exe->", + "download_name": "test_name_exe_1.exe->", + "file_type": "exe->" + }, + { + "ids": "创建apk类型hijack_files数据再修改数据html数据", + "model": "modify", + "file": "test_apk_1.apk->test_html_1.html", + "download_name": "Mirror Server Response->不修改", + "file_type": "apk->html" + } + ] +} diff --git a/testdata/ui_data/profiles_data/insert_scripts.json b/testdata/ui_data/profiles_data/insert_scripts.json new file mode 100644 index 00000000..fab53d86 --- /dev/null +++ b/testdata/ui_data/profiles_data/insert_scripts.json @@ -0,0 +1,21 @@ +{ + "comment": "标识符'->'参数注解:model可选参数create、modify。标识符'->'为前后数据分隔符,分隔符前为创建数据,后为修改数据。例如:16->7:表示创建及修改;18->不修改:表示只创建不修改;18->删除:表示删除;->18:表示修改为新增(创建时不输入)", + "comment2": "1.script:文件名称。2.script_type in (js, css)。3.insert_position in (After Page Load, Before Page Load)", + "item": + [ + { + "ids": "创建js类型insert_files数据11", + "model": "create", + "script": "test_js_1.js->", + "script_type": "js->", + "insert_position": "After Page Load->" + }, + { + "ids": "创建css类型css数据22", + "model": "create", + "script": "test_css_1.css->", + "script_type": "css->", + "insert_position": "->" + } + ] +} diff --git a/testdata/ui_data/profiles_data/response_pages.json b/testdata/ui_data/profiles_data/response_pages.json new file mode 100644 index 00000000..606a0f17 --- /dev/null +++ b/testdata/ui_data/profiles_data/response_pages.json @@ -0,0 +1,17 @@ +{ + "comment": "Resposne_pages参数注解,model可选参数create、modify。file中'->'为前后数据分隔符,分隔符前为创建数据,后为修改数据。例如:testa.html->表示只创建数据、testa.html->testb.html表示创建和修改数据。", + + "item": + [ + { + "ids": "创建respose_page文件11", + "model": "create", + "file": "testa.html->" + }, + { + "ids": "创建respose_page文件再修改", + "model": "modify", + "file": "testa.html->testb.html" + } + ] +} diff --git a/testdata/ui_data/profiles_data/shaping_profiles.json b/testdata/ui_data/profiles_data/shaping_profiles.json new file mode 100644 index 00000000..d94dc3fa --- /dev/null +++ b/testdata/ui_data/profiles_data/shaping_profiles.json @@ -0,0 +1,69 @@ +{ + "comment": "shaping_profiles参数注解:item中为参数驱动测试,model可选为modify。'->'为创建修改数据分隔符,前为创建数据,后为修改数据。unit分隔符后为空则只创建数据,例如’bps->‘、'543->'。unit分隔符后非空,修改数据。544->表示不修改、654->456表示修改前后数据。", + "item": + [ + { + "ids": "创建Generic_bps用例", + "model": "create", + "type": "Generic", + "argument": "", + "unit": "bps->", + "incoming": "0->", + "outgoing": "0->" + }, + { + "ids": "创建Generic_bps用例", + "model": "create", + "type": "Generic", + "argument": "", + "unit": "bps->", + "incoming": "876->", + "outgoing": "543->" + }, + { + "ids": "创建Fair_Share_Kbps用例", + "model": "create", + "type": "Fair Share", + "argument": "Max Min Host Fairness", + "unit": "Kbps->", + "incoming": "345->", + "outgoing": "678->" + }, + { + "ids": "创建Split_By_Mbps用例", + "model": "create", + "type": "Split By", + "argument": "Local Host", + "unit": "Mbps->", + "incoming": "678->", + "outgoing": "565->" + }, + { + "ids": "创建Generic_Gbps再修改为bps带宽", + "model": "modify", + "type": "Generic", + "argument": "", + "unit": "Gbps->bps", + "incoming": "500->876", + "outgoing": "800->543" + }, + { + "ids": "创建Fair_Share_bps再修改为Gps带宽", + "model": "modify", + "type": "Fair Share", + "argument": "Max Min Host Fairness", + "unit": "bps->Gbps", + "incoming": "670->856", + "outgoing": "550->543" + }, + { + "ids": "创建Split_By_Mps再修改为Mps带宽", + "model": "modify", + "type": "Split By", + "argument": "Local Host", + "unit": "Mbps->Mbps", + "incoming": "640->576", + "outgoing": "250->533" + } + ] +} diff --git a/testdata/ui_data/profiles_data/ssl_decryption_keyrings.json b/testdata/ui_data/profiles_data/ssl_decryption_keyrings.json new file mode 100644 index 00000000..01623df2 --- /dev/null +++ b/testdata/ui_data/profiles_data/ssl_decryption_keyrings.json @@ -0,0 +1,63 @@ +{ + "comment": "标识符'->'参数注解:model可选参数create、modify。标识符'->'为前后数据分隔符,分隔符前为创建数据,后为修改数据。例如:16->7:表示创建及修改;18->不修改:表示只创建不修改", + "comment2": "可选值参考certificate和private_key为文件名称。private_key=‘HSM-***’表示选择HSM格式,private_key=‘PKF-***’上次key文件名称。reissue_expiry_hours=‘MSC’表示默认时间,reissue_expiry_hours=‘C-***表示自定义时间’", + "comnent3": "可选值参考:type in (Root-Certificate,Intermediate-Certificate,End-entity)。 public_key_algorithm in (RSA-1024,RSA-2048,SECP-256r1,SECP-384r1)。 include_root in (on,off)", + "item": + [ + { + "ids": "创建root_根证书PKA设置为RSA-20481", + "model": "create", + "certificate": "test_root_cert_catest.cer->", + "private_key": "PKF-test_root_key_catest.key->", + "reissue_expiry_hours": "MSC->", + "type": "Root-Certificate->", + "public_key_algorithm": "RSA-2048->", + "certificate_revocation_list": "http://www.example.ABCD.com->", + "include_root": "off->" + }, + { + "ids": "创建root_根证书PKA设置为RSA-2048只修改PKA为SECP-384r1", + "model": "modify", + "certificate": "test_root_cert_catest.cer->不修改", + "private_key": "PKF-test_root_key_catest.key->不修改", + "reissue_expiry_hours": "MSC->不修改", + "type": "Root-Certificate->不修改", + "public_key_algorithm": "RSA-2048->SECP-384r1", + "certificate_revocation_list": "http://www.example.ABCD.com->不修改", + "include_root": "on->off" + }, + { + "ids": "创建root_根证书PKA设置为RSA-2048再修改为中间证书PKA设置为RSA-10243", + "model": "modify", + "certificate": "test_root_cert_catest.cer->test_mid_cert_camiddletest.chain.pem", + "private_key": "PKF-test_root_key_catest.key->PKF-test_mid_key_camiddletest.key", + "reissue_expiry_hours": "MSC->C-120", + "type": "Root-Certificate->Intermediate-Certificate", + "public_key_algorithm": "RSA-2048->RSA-1024", + "certificate_revocation_list": "->不修改", + "include_root": "on->off" + }, + { + "ids": "创建mid_中间书PKA设置为SECP-256r1再修改为实体证书PKA设置为SECP-384r1", + "model": "modify", + "certificate": "test_mid_cert_camiddletest.chain.pem->test_end_cert_caentitytest.chain.pem", + "private_key": "PKF-test_mid_key_camiddletest.key->PKF-test_end_keycaentitytest.key", + "reissue_expiry_hours": "C400->C-320", + "type": "Intermediate-Certificate->End-entity", + "public_key_algorithm": "SECP-256r1->SECP-384r1", + "certificate_revocation_list": "http://www.example.ABCD.cn.cmo->http://www.TESTAA.abcd.cn.cmo", + "include_root": "on->off" + }, + { + "ids": "创建mid_中间证书PKA设置为SECP-256r1私钥为HSM", + "model": "create", + "certificate": "test_mid_cert_camiddletest.chain.pem->", + "private_key": "HSM-453->", + "reissue_expiry_hours": "MSC->", + "type": "Intermediate-Certificate->", + "public_key_algorithm": "RSA-2048->", + "certificate_revocation_list": "http://www.www.ww->", + "include_root": "off->" + } + ] +} diff --git a/testdata/ui_data/profiles_data/ssl_decryption_profiles.json b/testdata/ui_data/profiles_data/ssl_decryption_profiles.json new file mode 100644 index 00000000..a8ab38ab --- /dev/null +++ b/testdata/ui_data/profiles_data/ssl_decryption_profiles.json @@ -0,0 +1,64 @@ +{ + "comment": "标识符'->'参数注解:model可选参数create、modify。标识符'->'为前后数据分隔符,分隔符前为创建数据,后为修改数据。例如:16->7:表示创建及修改;18->不修改:表示只创建不修改;18->删除:表示删除;->18:表示修改为新增(创建时不输入)", + "comment2": "开关的取值为:1.on、off。2.fail_action in (Fail-close,Pass-through)。3.min_client_version、max_client_version in (SSLv3.0,TLSv1.0,TLSv1.1,TLSv1.2,TLSv1.3)", + "item": + [ + { + "ids": "创建ssl_decryption_profiles_fail_action_on11", + "model": "create", + "common_name":"on->", + "issuer":"off->", + "self_signed":"off->", + "expiry_date":"on->", + "fail_action":"Pass-through->", + "ev_certificate":"on->", + "certificate_transparency":"on->", + "mutual_authentication":"on->", + "protocol_errors":"on->", + "certificate_pinning":"on->", + "certificate_not_installed":"on->", + "mirror_client_versions":"off->", + "min_client_version":"TLSv1.0->", + "max_client_version":"TLSv1.2->", + "allow_HTTP2":"off->" + }, + { + "ids": "创建ssl_decryption_profiles_fail_action_on再修改common_name_off22", + "model": "modify", + "common_name":"on->off", + "issuer":"on-off>", + "self_signed":"on->不修改", + "expiry_date":"on->不修改", + "fail_action":"Pass-through->不修改", + "ev_certificate":"on->off", + "certificate_transparency":"on->不修改", + "mutual_authentication":"on->不修改", + "protocol_errors":"on->不修改", + "certificate_pinning":"on->off", + "certificate_not_installed":"on->", + "mirror_client_versions":"off->off", + "min_client_version":"TLSv1.2->不修改", + "max_client_version":"TLSv1.3->不修改", + "allow_HTTP2":"off->on" + }, + { + "ids": "创建ssl_decryption_profiles_fail_action_on33", + "model": "create", + "common_name":"on->", + "issuer":"on->", + "self_signed":"on->", + "expiry_date":"on->", + "fail_action":"Pass-through->", + "ev_certificate":"off->", + "certificate_transparency":"off->", + "mutual_authentication":"on->", + "protocol_errors":"on->", + "certificate_pinning":"on->", + "certificate_not_installed":"off->", + "mirror_client_versions":"on->", + "min_client_version":"TLSv1.0->", + "max_client_version":"TLSv1.2->", + "allow_HTTP2":"on->" + } + ] +} diff --git a/testdata/ui_data/profiles_data/traffic_mirroring_profiles.json b/testdata/ui_data/profiles_data/traffic_mirroring_profiles.json new file mode 100644 index 00000000..934c3a04 --- /dev/null +++ b/testdata/ui_data/profiles_data/traffic_mirroring_profiles.json @@ -0,0 +1,44 @@ +{ + "comment": "traffic mirroring profiles参数注解,model可选参数create、modify。vlan_id为列表参数,标识符'->'为前后数据分隔符,分隔符前为创建数据,后为修改数据。例如:16->7:表示创建及修改;18->:表示只创建不修改;->23:表示修改中新增", + + "item": + [ + { + "ids": "创建traffic_mirroring_profiles_多vlanid", + "model": "create", + "vlan_id": + [ + "6->", + "58->" + ] + }, + { + "ids": "创建vlanid再修改", + "model": "modify", + "vlan_id": + [ + "16->7", + "18->", + "->23", + "25->45", + "55->55" + ] + }, + { + "ids": "创建一个vlanid", + "model": "create", + "vlan_id": + [ + "35->" + ] + }, + { + "ids": "创建一个vlanid再修改", + "model": "create", + "vlan_id": + [ + "45->25" + ] + } + ] +} |
