调整Log纯接口测试关键字及用例
This commit is contained in:
@@ -19,18 +19,15 @@ Library String
|
||||
LogApiVerifyCase
|
||||
[Documentation] 验证日志查询纯接口测试
|
||||
${Logurl} Set Variable http://${host}:${port}/v1/log/list
|
||||
|
||||
${logTypelist} create list security_event_log proxy_event_log connection_record_log radius_record_log voip_record_log transaction_record_log live_session_record_log gtpc_record_log
|
||||
|
||||
${EndTime} get current date
|
||||
|
||||
${EndTime1} Get Substring ${EndTime} \ -4
|
||||
|
||||
${StartTime} add time to date ${EndTime} -01:00:00
|
||||
|
||||
${StartTime1} Get Substring ${StartTime} \ -4
|
||||
|
||||
logapiverify ${Logurl} ${token} ${StartTime1} ${EndTime1} ${host} ${port} ${logTypelist}
|
||||
${logTypelist} Set Variable security_event_log proxy_event_log connection_record_log radius_record_log voip_record_log live_session_record_log transaction_record_log gtpc_record_log
|
||||
${EndTime} get current date
|
||||
${EndTime1} Get Substring ${EndTime} \ -4
|
||||
${StartTime} add time to date ${EndTime} -01:00:00
|
||||
${StartTime1} Get Substring ${StartTime} \ -4
|
||||
FOR ${logType} in @{logTypelist}
|
||||
${Schemaurl} Set Variable http://${host}:${port}/v1/log/schema?logType=${logType}
|
||||
${a} logapiverify ${Schemaurl} ${Logurl} ${token} ${StartTime1} ${EndTime1} ${logType}
|
||||
END
|
||||
|
||||
|
||||
LogFieldVerifyCase
|
||||
@@ -39,7 +36,7 @@ LogFieldVerifyCase
|
||||
${logTypelist} create list security_event_log proxy_event_log connection_record_log radius_record_log voip_record_log live_session_record_log transaction_record_log gtpc_record_log
|
||||
${EndTime} get current date
|
||||
${EndTime1} Get Substring ${EndTime} \ -4
|
||||
${StartTime} add time to date ${EndTime} -01:00:00
|
||||
${StartTime} add time to date ${EndTime} -03:00:00
|
||||
${StartTime1} Get Substring ${StartTime} \ -4
|
||||
${filter} Set Variable
|
||||
FOR ${logType} in @{logTypelist}
|
||||
@@ -69,7 +66,7 @@ LogRetrieveVerifyCase
|
||||
${logTypelist} create list security_event_log proxy_event_log connection_record_log radius_record_log voip_record_log live_session_record_log transaction_record_log gtpc_record_log
|
||||
${EndTime} get current date
|
||||
${EndTime1} Get Substring ${EndTime} \ -4
|
||||
${StartTime} add time to date ${EndTime} -01:00:00
|
||||
${StartTime} add time to date ${EndTime} -03:00:00
|
||||
${StartTime1} Get Substring ${StartTime} \ -4
|
||||
${filter} Set Variable
|
||||
FOR ${logType} in @{logTypelist}
|
||||
|
||||
Reference in New Issue
Block a user