config root man

Current Path : /compat/linux/proc/self/root/usr/share/fail2ban/testcases/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/share/fail2ban/testcases/actiontestcase.pyc

³ò
E²óSc@spdZdZdZddkZddkZddkZddklZddkl	Z	de	fd„ƒYZ
dS(	s
Cyril Jaquiers Copyright (c) 2004 Cyril JaquiertGPLiÿÿÿÿN(tAction(tLogCaptureTestCaset
ExecuteActioncBs}eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„ZRS(
cCs tdƒ|_ti|ƒdS(sCall before every test case.tTestN(Rt_ExecuteAction__actionRtsetUp(tself((s//usr/share/fail2ban/testcases/actiontestcase.pyR"scCsti|ƒ|iiƒdS(sCall after every test case.N(RttearDownRtexecActionStop(R((s//usr/share/fail2ban/testcases/actiontestcase.pyR's
cCsF|i|iiƒdƒ|iidƒ|i|iiƒdƒdS(NRsTricky Test(tassertEqualRtgetNametsetName(R((s//usr/share/fail2ban/testcases/actiontestcase.pyttestNameChange,scCsÅhdd<dd<dd<}|itihdd<ƒƒ|itihd	d<dd
<ƒƒ|itihd	d<dd
<dd<ƒƒ|itihdd<ƒhdd<ƒ|itihd
d<dd<ƒhdd<dd<ƒ|itihdd<dd
<ƒhdd<dd
<ƒ|itihdd<dd<dd<ƒhdd<dd<dd<ƒ|iti|ƒhdd<dd<dd<ƒdS(Ns	192.0.2.0tHOSTs
123 <HOST>tABCs	890 <ABC>txyzs<A>tAs<B>tBs<C>tCs<C> <D> <X>tfuntXs<C> <D> funs<C> <B>tcools<C> cools/to=<honeypot> fromip=<IP> evilperson=<honeypot>t	failregextpokiethoneypotttignoreregexs%to=pokie fromip=<IP> evilperson=pokies
123 192.0.2.0s890 123 192.0.2.0(tassertFalseRtsubstituteRecursiveTagsR
(RtaInfo((s//usr/share/fail2ban/testcases/actiontestcase.pyttestSubstituteRecursiveTags1s$		(1+==-
	
	cCsªhdd<dd<dd<}|i|iid|ƒdƒ|i|iid	|ƒd
ƒ|i|iid|ƒdƒ|i|iid
hdd<ƒdƒdS(Ns	192.0.2.0Rt123Rt890RsText<br>texts	Text
textsText <HOST> textsText 192.0.2.0 textsText <xyz> text <ABC> ABCsText 890 text 123 ABCs	<matches>s#some >char< should \< be[ escap}ed&tmatchess*some \>char\< should \\\< be\[ escap\}ed\&(R
Rt
replaceTag(RR((s//usr/share/fail2ban/testcases/actiontestcase.pyttestReplaceTagMs"		cCs,|iidƒ|i|iiƒdƒ|iidƒ|i|iiƒdƒ|iidƒ|i|iiƒdƒ|iidƒ|i|ii	ƒdƒ|ii
dƒ|i|iiƒdƒ|i|i
dƒƒ|i|iidƒƒ|i|i
dƒƒ|i|i
dƒƒdS(	Nstouch /tmp/fail2ban.testsrm -f /tmp/fail2ban.testsecho -ns[ -e /tmp/fail2ban.test ]ttruetreturnedsInvariant check failedsreturned successfully(RtsetActionStartR
tgetActionStartt
setActionStopt
getActionStoptsetActionBantgetActionBantsetActionChecktgetActionChecktsetActionUnbantgetActionUnbanRt
_is_loggedt
assertTruet
execActionBantNone(R((s//usr/share/fail2ban/testcases/actiontestcase.pyttestExecuteActionBanascCsC|iidƒ|i|iidƒƒ|i|idƒƒdS(NRs
Nothing to do(RR/R2texecActionUnbanR4R1(R((s//usr/share/fail2ban/testcases/actiontestcase.pyttestExecuteActionEmptyUnbantscCs]|iiddƒ|iidƒ|iidƒ|iidƒ|i|iiƒƒdS(NRs	192.0.2.0stouch /tmp/fail2ban.test.<HOST>srm -f /tmp/fail2ban.test.<HOST>s#[ -e /tmp/fail2ban.test.192.0.2.0 ](RtsetCInfoR'R)R-R2texecActionStart(R((s//usr/share/fail2ban/testcases/actiontestcase.pyttestExecuteActionStartCtagsys
cCss|iidƒ|iidƒ|iidƒ|iidƒ|i|iidƒƒ|i|i	dƒƒdS(NRsrm -f /tmp/fail2ban.testsrm /tmp/fail2ban.tests[ -e /tmp/fail2ban.test ]sUnable to restore environment(
RR'R)R+R-RR3R4R2R1(R((s//usr/share/fail2ban/testcases/actiontestcase.pyt(testExecuteActionCheckRestoreEnvironment€scCs\|iiddƒ|i|iidƒdƒ|iidƒ|it|iidƒdS(NtROSTs	192.0.2.0(RR8R
tgetCInfotdelCInfotassertRaisestKeyError(R((s//usr/share/fail2ban/testcases/actiontestcase.pyttestExecuteActionChangeCtagsˆscCsehdd<}|iidƒ|iidƒ|i|iidƒƒ|i|ii|ƒƒdS(NR Rstouch /tmp/fail2ban.test.123srm /tmp/fail2ban.test.<ABC>(RR+R/R2R3R4R6(RR((s//usr/share/fail2ban/testcases/actiontestcase.pyttestExecuteActionUnbanAinfoŽscCs@|iidƒ|i|iiƒƒ|i|idƒƒdS(NRs
Nothing to do(RR'R2R9R1(R((s//usr/share/fail2ban/testcases/actiontestcase.pyttestExecuteActionStartEmpty—scCs'tidƒ|i|idƒƒdS(Ns+/bin/ls >/dev/null
bogusXXX now 2>/dev/nulls!HINT on 7f00: "Command not found"(Rt
executeCmdR2R1(R((s//usr/share/fail2ban/testcases/actiontestcase.pyttestExecuteIncorrectCmdœs
(t__name__t
__module__RRR
RR$R5R7R:R;RARBRCRE(((s//usr/share/fail2ban/testcases/actiontestcase.pyR s													(t
__author__t
__copyright__t__license__ttimetloggingtsyst
server.actionRtutilsRR(((s//usr/share/fail2ban/testcases/actiontestcase.pys<module>s

Man Man