diff options
| author | fengweihao <[email protected]> | 2024-08-02 10:55:58 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2024-08-02 10:55:58 +0800 |
| commit | 41caf21f43df13785d2e1bee814a3005abc9b43e (patch) | |
| tree | ccf37a5032c4bd6fe990bde93107c76556589e03 /test/resource/VerifyPolicyHit.json | |
| parent | 60cd4283dbe1ca374cfb672fbc0c3e48fde9fa30 (diff) | |
修复Verify Policy中fqdn entry的命中路径错误,增加Verify Policy测试用例代码框架v4.0.22-20240802
Diffstat (limited to 'test/resource/VerifyPolicyHit.json')
| -rw-r--r-- | test/resource/VerifyPolicyHit.json | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/test/resource/VerifyPolicyHit.json b/test/resource/VerifyPolicyHit.json new file mode 100644 index 0000000..81487b4 --- /dev/null +++ b/test/resource/VerifyPolicyHit.json @@ -0,0 +1,101 @@ +{ + "compile_table": "PXY_CTRL_COMPILE", + "group2compile_table": "GROUP_PXY_CTRL_COMPILE_RELATION", + "group2group_table": "GROUP_GROUP_RELATION", + "rules": [ + { + "compile_id": 1021, + "service": 1, + "action": 48, + "do_blacklist": 1, + "do_log": 1, + "effective_range": 0, + "tags":"anything", + "user_region": "anything", + "is_valid": "yes", + "groups": [ + { + "not_flag": 0, + "group_id": 101, + "group_name":"IPv4TCPSoureVeiryPolicy01", + "virtual_table": "ATTR_SOURCE_IP", + "regions": [ + { + "table_type": "ip", + "table_name": "TSG_OBJ_IP_ADDR", + "table_content": { + "addr_type": "ipv4", + "addr_format": "range", + "ip1": "192.168.0.1", + "ip2": "192.168.0.1" + } + } + ] + } + ] + }, + { + "compile_id": 1022, + "service": 1, + "action": 48, + "do_blacklist": 1, + "do_log": 1, + "effective_range": 0, + "tags":"anything", + "user_region": "anything", + "is_valid": "yes", + "groups": [ + { + "group_id": 11, + "group_name": "IPv4TCPSoureEntry.11", + "virtual_table": "ATTR_SOURCE_IP" + }, + { + "group_id": 12, + "group_name": "IPv4TCPSoureEntry.12", + "virtual_table": "ATTR_INTERNAL_IP" + }, + { + "group_id": 1, + "group_name": "FQDNEntry.1", + "virtual_table": "ATTR_SERVER_FQDN" + } + ] + } + ], + "plugin_table": [ + { + "table_name": "FQDN_ENTRY", + "table_content": [ + "1\t1\twww.126.com\t1\t1", + "2\t2,3\twww.baidu.com\t1\t1", + "4\t4,5,6\twww.qq.com\t1\t1" + ] + }, + { + "table_name": "IP_ADDR_ENTRY", + "table_content": [ + "1\t11\t4\tsingle\t192.168.1.1\t192.168.1.1\t1", + "2\t12,13\t4\tsingle\t192.168.1.2\t192.168.1.2\t1", + "4\t14,15,16\t4\trange\t192.168.1.3\t192.168.1.3\t1" + ] + }, + { + "table_name": "LIBRARY_TAG", + "table_content": [ + "1\tnone\twebsite_category\tfqdn1\tsearch\\bengines\t1", + "2\tnone\twebsite_category\tfqdn2\tRecreation\band\bHobbies\t1", + "3\tnone\twebsite_category\tfqdn3\tbusiness\t1", + "4\tnone\twebsite_category\tfqdn4\tsearch bengines\t1", + "5\tnone\twebsite_category\tfqdn5\tsearch\\bengines\t1", + "6\tnone\twebsite_category\tfqdn6\tsearch\\bengines\t1", + "11\tnone\tgeoip\tadministrative_area\tColombia.Departamento\bdel\bVaupes\t1", + "12\tnone\tgeoip\tadministrative_area\tColombia.Departamento\bdel\bVaupes.Mitú\t1", + "13\tnone\tgeoip\tadministrative_area\tColombia.Antioquia.Marinilla\t1", + "14\tnone\tgeoip\tsuper_administrative_area\tColombia.Departamento\bdel\bVaupes\t1", + "15\tnone\tgeoip\tadministrative_area\tGermany.Bavaria.Mauern\t1", + "16\tnone\tgeoip\tadministrative_area\tGermany.Bavaria.Mellrichstadt\t1" + ] + } + ] +} |
