Added test cases for negate hit paths and multiple objects
This commit is contained in:
@@ -374,6 +374,53 @@
|
||||
}
|
||||
],
|
||||
"verify_type": "policy"
|
||||
},
|
||||
{
|
||||
"__item_id": 10,
|
||||
"vsys": 1,
|
||||
"verify_list": [
|
||||
{
|
||||
"type": "proxy_manipulation",
|
||||
"vsys": 1,
|
||||
"verify_session": {
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_value_type": "numeric",
|
||||
"attribute_name": "ATTR_IP_PROTOCOL",
|
||||
"attribute_value": {
|
||||
"addr_type": 4,
|
||||
"numeric": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"verify_type": "policy"
|
||||
},
|
||||
{
|
||||
"__item_id": 11,
|
||||
"vsys": 1,
|
||||
"verify_list": [
|
||||
{
|
||||
"type": "proxy_manipulation",
|
||||
"vsys": 1,
|
||||
"verify_session": {
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_value_type": "ip",
|
||||
"attribute_name": "ATTR_SOURCE_IP",
|
||||
"attribute_value": {
|
||||
"ip": "10.1.1.1",
|
||||
"port":"8080",
|
||||
"addr_type": 4
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"verify_type": "policy"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -702,6 +702,97 @@
|
||||
}
|
||||
},
|
||||
"success": true
|
||||
},
|
||||
{
|
||||
"__item_id": 10,
|
||||
"code": 200,
|
||||
"msg": "Success",
|
||||
"data": {
|
||||
"hit_rules": [
|
||||
{
|
||||
"uuid": "00101028-0000-0000-0000-000000000000",
|
||||
"policyName": "",
|
||||
"is_execute": true,
|
||||
"top_object_list": [
|
||||
{
|
||||
"object_uuid": "00000000-0000-0000-0000-000000000006",
|
||||
"attribute_name": "ATTR_IP_PROTOCOL",
|
||||
"negate_option": 1,
|
||||
"condition_index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"verify_session": {
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_value_type": "numeric",
|
||||
"attribute_name": "ATTR_IP_PROTOCOL",
|
||||
"attribute_value": {
|
||||
"addr_type": 4,
|
||||
"numeric": 1
|
||||
},
|
||||
"hit_paths": [
|
||||
{
|
||||
"item_uuid": "00000000-0000-0000-0000-000000000000",
|
||||
"superior_object_uuid": "00000000-0000-0000-0000-000000000005"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"success": true
|
||||
},
|
||||
{
|
||||
"__item_id": 11,
|
||||
"code": 200,
|
||||
"msg": "Success",
|
||||
"data": {
|
||||
"hit_rules": [
|
||||
{
|
||||
"uuid": "00101029-0000-0000-0000-000000000000",
|
||||
"policyName": "",
|
||||
"is_execute": true,
|
||||
"top_object_list": [
|
||||
{
|
||||
"object_uuid": "00000000-0000-0000-0000-000000090100",
|
||||
"attribute_name": "ATTR_SOURCE_IP",
|
||||
"negate_option": 0,
|
||||
"condition_index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"verify_session": {
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_value_type": "ip",
|
||||
"attribute_name": "ATTR_SOURCE_IP",
|
||||
"attribute_value": {
|
||||
"ip": "10.1.1.1",
|
||||
"port": "8080",
|
||||
"addr_type": 4
|
||||
},
|
||||
"hit_paths": [
|
||||
{
|
||||
"item_uuid": "00000000-0000-0000-0000-000000001016",
|
||||
"superior_object_uuid": "00000000-0000-0000-0000-000000090100"
|
||||
},
|
||||
{
|
||||
"item_uuid": "00000000-0000-0000-0000-000000001015",
|
||||
"superior_object_uuid": "00000000-0000-0000-0000-000000090100"
|
||||
},
|
||||
{
|
||||
"item_uuid": "00000000-0000-0000-0000-000000001014",
|
||||
"superior_object_uuid": "00000000-0000-0000-0000-000000090100"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"success": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -504,8 +504,70 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"uuid": "00101028-0000-0000-0000-000000000000",
|
||||
"service": 1,
|
||||
"action": "manipulate",
|
||||
"blacklist_option": 1,
|
||||
"log_option": "all",
|
||||
"action_parameter": "anything",
|
||||
"is_valid": "yes",
|
||||
"and_conditions": [
|
||||
{
|
||||
"attribute_name": "ATTR_IP_PROTOCOL",
|
||||
"negate_option": true,
|
||||
"object_uuids": [
|
||||
"00000000-0000-0000-0000-000000000006"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"uuid": "00101029-0000-0000-0000-000000000000",
|
||||
"service": 1,
|
||||
"action": "manipulate",
|
||||
"blacklist_option": 1,
|
||||
"log_option": "all",
|
||||
"action_parameter": "anything",
|
||||
"is_valid": "yes",
|
||||
"and_conditions": [
|
||||
{
|
||||
"attribute_name": "ATTR_SOURCE_IP",
|
||||
"negate_option": false,
|
||||
"objects": [
|
||||
{
|
||||
"object_name": "IPv4TCPSoureMultipleObject",
|
||||
"uuid": "00000000-0000-0000-0000-000000090100",
|
||||
"items": [
|
||||
{
|
||||
"table_name": "TSG_OBJ_IP_ADDR",
|
||||
"table_type": "ip",
|
||||
"table_content": {
|
||||
"ip": "10.1.1.1/8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"table_name": "TSG_OBJ_IP_ADDR",
|
||||
"table_type": "ip",
|
||||
"table_content": {
|
||||
"ip": "10.1.1.1/24"
|
||||
}
|
||||
},
|
||||
{
|
||||
"table_name": "TSG_OBJ_IP_ADDR",
|
||||
"table_type": "ip",
|
||||
"table_content": {
|
||||
"ip": "10.1.1.1/32"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
],
|
||||
"plugin_table": [
|
||||
{
|
||||
"table_name": "FQDN_ENTRY",
|
||||
|
||||
Reference in New Issue
Block a user