Module Expr Str Import alias Import alias Import alias ImportFrom 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 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 Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str AttributeLoad NameLoad 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 defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr 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 NameLoad keyword Num For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Print BinOpAdd Str AttributeLoad NameLoad attr Print BinOpAdd Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str 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 If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A 
Created on Sep 10, 2012
@author            : mmunn

Unit test          : EUCA_3460 euca-bundle-instance does not work with remote WALRUS (takes about 30 minutes to run)
setUp              : Install Credentials, download image
test               : Attempts to bundle a windows instance on a remote walrus. If a Bundle ID is returned the test passes,
                     the windows instance will then be terminated causing the bundle-task to fail, this is expected. 
                     As long bundle-instance can connect with walrus and start the task, the test passes.  
tearDown           : Removes Credentials, terminates instance

cloud.conf:( place in same directory as Euca3460.py )
IP_ADDRESS   CENTOS  6.3     64      BZR     [CLC]
IP_ADDRESS   CENTOS  6.3     64      BZR     [WS]
IP_ADDRESS   CENTOS  6.3     64      BZR     [CC00 SC00]
IP_ADDRESS   CENTOS  6.3     64      BZR     [NC00]
 N/A unittest N/A shutil N/A re eucaops Eucaops testcases.cloud_user.images.imageutils ImageUtils Euca3460 N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self conf cloud.conf N/A N/A self imgName windowsserver2003r2_ent_x64.kvm.img 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 self iu N/A ImageUtils tester N/A self tester config_file N/A self conf N/A N/A N/A N/A self iu create_emi_from_url N/A http://192.168.7.65/windows_images/ N/A self imgName 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 test_EUCA_3460 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 location N/A self imgName 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 is_reachable False timeout 720 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 ip N/A instance public_dns_name N/A N/A self instanceid N/A instance id N/A N/A Access  =  N/A self akey N/A N/A Secret  =  N/A self skey 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 str N/A self keypair  -p windows -o  N/A self akey  -w  N/A self skey 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 match N/A N/A re search bun-........ N/A N/A self out N/A output N/A match N/A N/A N/A N/A N/A self tester debug N/A Passed test_EUCA_3460: Bundle ID =  N/A N/A match group N/A N/A N/A N/A self fail Failed test_EUCA_3460: Bundle ID not returned 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 __name__ __main__ N/A N/A N/A N/A unittest main Euca3460 N/A