*** Settings *** Force Tags tsg_adc_wp security_policy adc_verify 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_adc/FileOperation.robot Library Custometest Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot Resource ../../../05-Other/AllFlowCaseVariable.txt Library Custometest Library SSHLibrary *** Test Cases *** SecurityPolicy-Deny-SIP-00005-1 Open Connection ${voipListenIp} SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data Write sipp -sf reg.xml -inf reg14.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060 sleep ${policyModifySleepSeconds} Write sipp -sf uas.xml -inf reg14.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060 Open Connection ${voipCallIp} SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg112.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 Write sipp -sf uac_1.xml -d 10000 -s test15 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 007.log Write sipp -sf uac_1.xml -d 10000 -s test15 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 007.log sleep ${policyModifySleepSeconds} Write grep "480" /home/yyq/sipp-3.6.0/data/uac/007.log ${res} Read delay=5s Should Contain ${res} 480 Temporarily Unavailable Close All Connections # Write find . | xargs grep -ri "200 OK" -l # ${res} Read delay=2s # Should Contain ${res} 200 SecurityPolicy-Deny-SIP-00005-2 Open Connection ${voipListenIp} SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data Write sipp -sf reg.xml -inf reg15.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060 sleep ${policyModifySleepSeconds} Write sipp -sf uas.xml -inf reg15.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060 Open Connection ${voipCallIp} SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg113.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 Write sipp -sf uac_1.xml -d 10000 -s test16 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 008.log Write sipp -sf uac_1.xml -d 10000 -s test16 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 008.log sleep ${policyModifySleepSeconds} Write grep "480" /home/yyq/sipp-3.6.0/data/uac/008.log ${res} Read delay=5s Should Contain ${res} 500 Server Internal denySiperror Close All Connections SecurityPolicy-Deny-SIP-00005-3 Open Connection ${voipListenIp} SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data Write sipp -sf reg.xml -inf reg16.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060 sleep ${policyModifySleepSeconds} Write sipp -sf uas.xml -inf reg16.csv -p 6068 -i ${voipListenIp} -m 50 192.168.40.158:5060 Open Connection ${voipCallIp} SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg114.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 Write sipp -sf uac_1.xml -d 10000 -s test17 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 009.log Write sipp -sf uac_1.xml -d 10000 -s test17 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 009.log sleep ${policyModifySleepSeconds} Write grep "408" /home/yyq/sipp-3.6.0/data/uac/009.log ${res} Read delay=5s Should Contain ${res} 408 Request Timeout Close All Connections SecurityPolicy-Deny-SIP-00005-4 Open Connection ${voipOutListenIp} SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data Write sipp -sf reg.xml -inf reg17.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060 sleep ${policyModifySleepSeconds} Write sipp -sf uas.xml -inf reg17.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060 Open Connection ${voipCallIp} SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg115.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 Write sipp -sf uac_1.xml -d 10000 -s test18 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 010.log Write sipp -sf uac_1.xml -d 10000 -s test18 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 010.log sleep ${policyModifySleepSeconds} Write grep "480" /home/yyq/sipp-3.6.0/data/uac/010.log ${res} Read delay=5s Should Contain ${res} 480 Temporarily Unavailable Close All Connections # Write find . | xargs grep -ri "200 OK" -l # ${res} Read delay=2s # Should Contain ${res} 200 SecurityPolicy-Deny-SIP-00005-5 Open Connection ${voipOutListenIp} SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data Write sipp -sf reg.xml -inf reg18.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060 sleep ${policyModifySleepSeconds} Write sipp -sf uas.xml -inf reg18.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060 Open Connection ${voipCallIp} SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg116.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 Write sipp -sf uac_1.xml -d 10000 -s test19 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 011.log Write sipp -sf uac_1.xml -d 10000 -s test19 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 011.log sleep ${policyModifySleepSeconds} Write grep "480" /home/yyq/sipp-3.6.0/data/uac/011.log ${res} Read delay=5s Should Contain ${res} 500 Server Internal denySiperror Close All Connections SecurityPolicy-Deny-SIP-00005-6 Open Connection ${voipOutListenIp} SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data Write sipp -sf reg.xml -inf reg19.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060 sleep ${policyModifySleepSeconds} Write sipp -sf uas.xml -inf reg19.csv -p 6068 -i ${voipOutListenIp} -m 50 192.168.40.158:5060 Open Connection ${voipCallIp} SSHLibrary.Login root Xxg-PUB<>90 Write cd /home/yyq/sipp-3.6.0/data/uac Write sipp -sf reg.xml -inf reg117.csv -p 6067 -i ${voipCallIp} -m 50 192.168.40.158:5060 Write sipp -sf uac_1.xml -d 10000 -s test20 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 012.log Write sipp -sf uac_1.xml -d 10000 -s test20 192.168.40.158 -i ${voipCallIp} -r 1 -m 5 -trace_err -error_file 012.log sleep ${policyModifySleepSeconds} Write grep "408" /home/yyq/sipp-3.6.0/data/uac/012.log ${res} Read delay=5s Should Contain ${res} 408 Request Timeout Close All Connections # # sipp -sf uac_1.xml -d 10000 -s test3 192.168.40.158 -i 192.168.50.57 -r 1 -m 5 -trace_msg -message_file 0001.log -ringbuffer_size 10240