Module Expr Str Import alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Num keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print BinOpAdd BinOpAdd AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assert CompareGt Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd Str AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Created on = '10/1/13'
Author = 'mmunn'

Unit test          : EUCA-7710 missing input validation on CLC
setUp              : Install Credentials, starts instance
test               : run euca-bundle-instance, euca-attach-volume and euca-dettach-volume with bad input parameters
                     for bucket,prefix and device
tearDown           : Removes Credentials, terminates instance

cloud.conf:( place in same directory as this test)
IP ADDRESS CENTOS  6.3     64      BZR     [CC00 CLC SC00 WS]
IP ADDRESS CENTOS  6.3     64      BZR     [NC00]
 N/A unittest N/A shutil eucaops Eucaops Euca7710 N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self OK [1m[37m[42m N/A N/A self ENDC [0m N/A N/A self conf cloud.conf N/A N/A self tester N/A Eucaops config_file N/A self conf password foobar N/A N/A self source N/A N/A source  N/A N/A self tester credpath /eucarc &&  N/A N/A self clc1 N/A N/A N/A N/A self tester service_manager get_enabled_clc N/A N/A N/A self doAuth N/A doAuth N/A N/A self N/A N/A N/A N/A self keypair N/A N/A N/A self tester add_keypair N/A N/A self group N/A N/A N/A self tester add_group N/A N/A N/A N/A self tester authorize_group N/A self group N/A N/A N/A N/A self tester authorize_group N/A self group port 3389 protocol tcp N/A N/A self skey N/A N/A N/A self tester get_secret_key N/A N/A self akey N/A N/A N/A self tester get_access_key N/A runInstances N/A N/A self numMax N/A N/A N/A N/A self reservation N/A N/A N/A self tester run_instance N/A self emi type m1.large keypair N/A N/A self keypair name group N/A self group min 1 max numMax is_reachable False N/A instance N/A N/A self reservation instances N/A N/A N/A N/A instance state running N/A N/A N/A self instance instance N/A N/A self instanceid N/A instance id N/A runCmdTest N/A N/A self cmd N/A N/A N/A N/A self out N/A N/A N/A N/A self clc1 machine cmd N/A N/A self source N/A self cmd N/A N/A N/A N/A self OK N/A N/A self out N/A output N/A self ENDC N/A N/A N/A N/A N/A str N/A self out count InvalidParameterValue 0 N/A test N/A N/A self N/A N/A N/A N/A self emi N/A N/A N/A self tester get_emi N/A N/A N/A self runInstances 1 N/A N/A self badBucket xx N/A N/A self badPrefix xx$ N/A N/A self cmd N/A N/A N/A N/A N/A N/A N/A euca-bundle-instance  N/A self instanceid  -b  N/A self badBucket  -p goodPrefix -o  N/A self akey  -w  N/A self skey N/A N/A N/A self runCmdTest N/A self cmd N/A N/A self cmd N/A N/A N/A N/A N/A N/A N/A euca-bundle-instance  N/A self instanceid  -b goodBucket -p  N/A self badPrefix  -o  N/A self akey  -w  N/A self skey N/A N/A N/A self runCmdTest N/A self cmd N/A N/A self volume vol-BOGUS1 N/A N/A self badDevice1 sd$ N/A N/A self badDevice2 sdistoolong N/A N/A self cmd N/A N/A N/A N/A N/A euca-attach-volume -i  N/A self instanceid  -d  N/A self badDevice1 N/A self volume N/A N/A N/A self runCmdTest N/A self cmd N/A N/A self cmd N/A N/A N/A N/A N/A euca-attach-volume -i  N/A self instanceid  -d  N/A self badDevice1 N/A self volume N/A N/A N/A self runCmdTest N/A self cmd N/A N/A self cmd N/A N/A N/A N/A N/A euca-detach-volume -i  N/A self instanceid  -d  N/A self badDevice1 N/A self volume N/A N/A N/A self runCmdTest N/A self cmd N/A N/A self cmd N/A N/A N/A N/A N/A euca-detach-volume -i  N/A self instanceid  -d  N/A self badDevice1 N/A self volume N/A N/A N/A self runCmdTest N/A self cmd N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self reservation None N/A N/A N/A N/A N/A self tester terminate_instances N/A self reservation N/A N/A N/A N/A self tester delete_keypair N/A self keypair N/A N/A N/A N/A self tester local N/A N/A rm  N/A N/A self keypair name .pem N/A N/A N/A shutil rmtree N/A N/A self tester credpath N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main