mς ώΜͺJc@s™dkZdklZlZdkZdkZdkZdkTdklZdk l Z ei ddddƒe ƒe_ ei Z d „Z d „ZdS( N(stestutilsdatabase(t*(smodel(sRoott configfiles ../test.cfgt modulenameshardware.configc$,CsPd}d}#d} d}d}d}d} d}d}d} d }d }d }d }d }d}d}t}d}d} titid|ƒ}|ddjpt‚|d}!titid|d|#d| d|d|d|d| d|d|d| d|d|d |d!|d|!d"|d#|d$|d%|d&|d'| ƒ}"ttƒid|ƒ}|i!|jpt‚|i"|#jpt‚|i| jpt‚|i#|jpt‚|i$|jpt‚|i%| jpt‚|i |jpt‚|i&|jpt‚|i |jpt‚|i |jpt‚|i|jpt‚|i'|jpt‚|i|jpt‚|i|jpt‚d(}d(} d)}d*}d+}d,}d-}d.}d/|| ||||||f}d0||f}titi1d|d1|ƒ}tt3ƒid2|ƒ} | i/|jpt‚| i(|jpt‚| i)| jpt‚| i*|jpt‚| i+|jpt‚| i,|jpt‚| i-|jpt‚| i5i.|jpt‚tt6ƒi7d3| i8ƒd}|i)| i8jpt‚|i:|i8jpt‚t;i<ƒd4S(5s;testing to make sure an add via the 0.91 protocol completesssheep!tWintendos Super Marioii€tDeathtF00FitNewspeakit eMachinessreboot O'MatictOOXMLsSparta!tNTs Security?s.91tuuidtprefered_protocolttokentOStplatformtbogomipst systemMemoryt systemSwapt CPUVendortCPUModeltnumCPUstCPUSpeedtlanguagetdefaultRunleveltvendortsystemt lsbReleaset formfactort kernelVersiontselinux_enabledtselinux_policyt smoltProtocoli*i+i,s the short onet santaclauset HEGEMONICse"It's hot enough to boil a monkey's bum!", the Prime Minister said, and her majesty smiled to herselfs%s|%s|%s|%s|%s|%s|%s|%ss%s %stDevicest descriptiont device_idN(=tUUIDR RRRRRRRRRRRRRRRtFalseRRRttestutiltcalltrootR t token_resulttAssertionErrortaddt add_resulttQuerytHostt selectone_byt test_hostR tost cpu_modeltnum_cpust cpu_speedtdefault_runleveltkernel_versiont vendor_idR$tsubsys_vendor_idtsubsys_device_idtbustdrivertclsR#tdevicet addDevicestaddDevice_resulttComputerLogicalDevicet test_devicethardware_classtHostLinkt select_bytidttest_host_linkt host_link_idtsessiontflush($R*RGRRRRRR9RRRBRR$RR=RRRR#R;R8R<R1R:R>R@RRRRR%RRR R-R ((t9/usr/share/smolt/smoon/hardware/tests/test_controllers.pyt test_add_olds¦  "c% Cs-d} d}d}$d} d}d}d}d}!d}d }d } d } d }d }d }d}d}d}t}d}d}d} d}d}d}d}d}d}hdd<dd<dd <dd <dd<dd<dd<d d<d!d <d"d <d#d<d$d<d%d <d&d <d'd<d(d<d)t<d*d<}hd+d<d,d<d-d<d.d<d/d<d0d<d1d<d2dGHd9|i?GHd:|GHt@iA|ƒt@iBƒt@iC| ƒd;| GH| i>GH| i;GH| iGHt@iA| ƒt@iBƒd<S(=s7Testing to make sure an add with the new protocol workss0.97ssheep!Rs Super Marioii€RRiRiRsreboot O'MaticRtskinnyR s Security?i*i+i,s the short oneR R!se"It's hot enough to boil a monkey's bum!", the Prime Minister said, and her majesty smiled to herselfR R2R6RRRt cpu_vendorR3R4R5t system_memoryt system_swapRRR7RRRR8R$R9R:R;R<ttypeR#tdevicestsmolt_protocolR R thosts device: %sshost: %sslink: %ssnew device: %sN(DRR%R RRRRRRRRRRRRRRRR&RRR8R$R9R:R;R<R=R#RTR>t simplejsontdumpst host_jsonR'R(R)t token_jsonR*R+R tadd_jsonR-R.R/R0R1R R2R3R4R5R6R7RARBRCRDRERFRGRHt host_linksRRRItdeleteRJtrefresh(%R*RGRRRRRR9RRRBRR$RR=RRRR#R;RWR8R<R1RTR:R>RRRRR%RRR R-R ((RKt test_add_newysž¨Q           (t turbogearsR'tdatabasetloggingtcherrypyRUthardware.modelthardwaretmodelthardware.controllerstRoott update_configR)RLR]( R'R`RaRUR_R)R]R^RLRdRf((RKt?s         h