Module Expr Str Assign NameStore Str Assign NameStore Str Import alias Import alias Import alias Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str If CompareLt NameLoad Num body Assign NameStore Str orelse Assign NameStore BinOpAdd SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Slice BinOpAdd NameLoad Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Import alias Assign NameStore Str FunctionDef arguments args defaults body Print Str SubscriptLoad AttributeLoad NameLoad attr Index Num Str Print Str Print Str Print Str Print Str Print Str Print Str Print Str Print Str Return decorator_list FunctionDef arguments args defaults body Global identifier Global identifier Print Str For NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Num Num Num body Assign TupleStore NameStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body Print Call AttributeLoad BinOpMod Str TupleLoad NameLoad NameLoad attr Num orelse Print Call AttributeLoad BinOpMod Str TupleLoad NameLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body TryExcept body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Num handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Num Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad Call NameLoad Call NameLoad NameLoad Slice Num Num Str Call NameLoad NameLoad orelse Print BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Continue If CompareLt NameLoad Num body Print Str Print Str NameLoad Continue orelse Print Str decorator_list If CompareEq NameLoad Str body Global identifier Global identifier Assign NameStore ListLoad TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Str ListLoad Str Str Str Str Str Str Str Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Str NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore NameLoad Assign NameStore Str For TupleStore NameStore NameStore NameLoad body If CompareIn NameLoad TupleLoad Str Str body Expr Call NameLoad Expr Call AttributeLoad NameLoad attr orelse If CompareIn NameLoad TupleLoad Str Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse If CompareIn NameLoad TupleLoad Str Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse If CompareIn NameLoad TupleLoad Str Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse If CompareIn NameLoad TupleLoad Str Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse If CompareIn NameLoad TupleLoad Str Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse If CompareIn NameLoad TupleLoad Str Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse Assert NameLoad Str If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Print Str Expr Call AttributeLoad NameLoad attr Print Str NameLoad TryExcept body Print Call AttributeLoad Str attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword Dict Str Str Print Str handlers ExceptHandler type NameLoad name NameStore body Print Str Print BinOpAdd BinOpAdd SubscriptLoad Call NameLoad Call NameLoad NameLoad Slice Num Num Str Call NameLoad NameLoad Expr Call NameLoad Num If UnaryOpNot NameLoad body Assign NameStore Str Print Call AttributeLoad BinOpMod Str NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Str If CompareLt NameLoad Num body Print Str Print Str Print Str NameLoad Expr Call NameLoad Num orelse Print Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad NameLoad Assign NameStore Str Print Call AttributeLoad BinOpMod Str NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad If CompareLt NameLoad Num body Print Str Print Str NameLoad Expr Call NameLoad Num orelse Print Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad NameLoad Assign NameStore Str Print Call AttributeLoad BinOpMod Str NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareLt NameLoad Num body Print Str Print Str NameLoad Expr Call NameLoad Num orelse Print Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad NameLoad Assign NameStore Str Print Call AttributeLoad BinOpMod Str NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad Num body Print Str Print Str NameLoad Expr Call NameLoad Num orelse Print Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad NameLoad If UnaryOpNot NameLoad body TryExcept body Print Call AttributeLoad Str attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Print Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Str SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad name NameStore body Print Str Print Str BinOpAdd BinOpAdd SubscriptLoad Call NameLoad Call NameLoad NameLoad Slice Num Num Str Call NameLoad NameLoad Expr Call NameLoad Num Assign NameStore Str Print Call AttributeLoad BinOpMod Str NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Str If CompareLt NameLoad Num body Print Str Print Str NameLoad Expr Call NameLoad Num orelse Print Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad NameLoad Assign NameStore Str Print Call AttributeLoad BinOpMod Str NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad NameLoad ListLoad Dict Str Str NameLoad Str If CompareLt NameLoad Num body Print Str Print Str NameLoad Expr Call NameLoad Num orelse Print Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad NameLoad Print Str Print Str Expr Call NameLoad Str Expr Call NameLoad handlers ExceptHandler type NameLoad body Print Str ExceptHandler type NameLoad body Pass If Call NameLoad NameLoad body Expr Call NameLoad
N/A N/A 
test_osconnector.py makes a test over osconnector.py (openstack connector)
credentiasl must be provided with environment bash variables or arguments
 N/A __author__ Alfonso Tierno, Gerardo Garcia N/A __date__ $22-jun-2014 11:19:29$ N/A os N/A sys N/A getopt N/A r N/A N/A N/A N/A sys argv N/A 0 rfind / N/A N/A r 0 N/A N/A osconnector_path .. N/A N/A osconnector_path N/A N/A N/A N/A sys argv N/A 0 N/A N/A r 1 .. N/A N/A N/A N/A sys path insert 0 osconnector_path N/A osconnector N/A version 0.1 usage N/A N/A N/A N/A N/A Usage:  N/A N/A sys argv N/A 0 [options] N/A   -v|--version            openstack version (by default 2) N/A   -u|--username USER      user to authenticate (by default bash:OS_USERNAME) N/A   -p|--password PASSWD    password to authenticate (by default bash:OS_PASSWORD) N/A   -U|--auth_url URL       url of authentication over keystone (by default bash:OS_AUTH_URL) N/A   -t|--tenant_name TENANT password to authenticate (by default bash:OS_TENANT_NAME) N/A   -i|--image IMAGE        use this local path or url for loading image (by default cirros) N/A   --skip-admin-tests      skip tests that requires administrative permissions, like create tenants N/A   -h|--help               shows this help N/A N/A delete_items N/A N/A N/A N/A N/A myvim N/A rollback_list N/A Making rollback, deleting items N/A i N/A range N/A N/A len rollback_list 1 -1 -1 N/A N/A N/A item name id_ N/A rollback_list N/A i N/A N/A item creds N/A N/A N/A N/A N/A changing credentials %s='%s' N/A name id_ ljust 50 N/A N/A N/A N/A N/A deleting %s '%s' N/A item name ljust 50 N/A N/A N/A N/A sys stdout flush N/A N/A item flavor N/A N/A N/A result message N/A N/A myvim delete_tenant_flavor id_ N/A N/A N/A item image N/A N/A N/A result message N/A N/A myvim delete_tenant_image id_ N/A N/A N/A item tenant N/A N/A N/A result message N/A N/A myvim delete_tenant id_ N/A N/A N/A item user N/A N/A N/A result message N/A N/A myvim delete_user id_ N/A N/A N/A item network N/A N/A N/A result message N/A N/A myvim delete_tenant_network id_ N/A N/A N/A item vm N/A N/A N/A result message N/A N/A myvim delete_tenant_vminstance id_ N/A N/A N/A item creds N/A N/A N/A N/A N/A myvim N/A name id_ N/A result 1 N/A N/A N/A Exception N/A e N/A N/A result -1 N/A message N/A N/A N/A N/A N/A str N/A type e N/A 6 -1 :  N/A str e N/A N/A N/A Internal error unknown item rollback %s,%s,%s N/A item name id_ N/A N/A N/A result 0 N/A N/A  Fail N/A   VIM response: message N/A N/A N/A  Ok N/A N/A N/A __name__ __main__ N/A N/A myvim N/A rollback_list N/A rollback_list N/A N/A N/A N/A N/A opts args N/A N/A getopt getopt N/A N/A sys argv N/A 1 hv:u:U:p:t:i: N/A username= help version= password= tenant= url= skip-admin-tests image= N/A N/A N/A N/A getopt GetoptError N/A err N/A N/A Error: err N/A N/A usage N/A N/A N/A sys exit 2 N/A creds N/A N/A N/A creds N/A version N/A N/A N/A os environ get OS_VERSION 2 N/A N/A creds N/A username N/A N/A N/A os environ get OS_USERNAME N/A N/A creds N/A password N/A N/A N/A os environ get OS_PASSWORD N/A N/A creds N/A auth_url N/A N/A N/A os environ get OS_AUTH_URL N/A N/A creds N/A tenant_name N/A N/A N/A os environ get OS_TENANT_NAME N/A skip_admin_tests False N/A image_path http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img N/A N/A o a opts N/A N/A N/A o N/A -h --help N/A N/A N/A usage N/A N/A N/A sys exit N/A N/A N/A o N/A -v --version N/A N/A N/A creds N/A version a N/A N/A N/A o N/A -u --username N/A N/A N/A creds N/A username a N/A N/A N/A o N/A -p --password N/A N/A N/A creds N/A password a N/A N/A N/A o N/A -U --auth_url N/A N/A N/A creds N/A auth_url a N/A N/A N/A o N/A -t --tenant_name N/A N/A N/A creds N/A tenant_name a N/A N/A N/A o N/A -i --image N/A N/A image_path a N/A N/A N/A o --skip-admin-tests N/A N/A skip_admin_tests True N/A N/A False Unhandled option N/A N/A N/A creds N/A auth_url None N/A N/A you must provide openstack url with -U or bash OS_AUTH_URL N/A N/A N/A sys exit N/A creds: creds N/A N/A N/A N/A N/A load osconnector class ljust 50 N/A N/A N/A N/A sys stdout flush N/A N/A N/A myvim N/A N/A osconnector osconnector uuid None name test-openstack tenant N/A creds N/A tenant_name url N/A creds N/A auth_url url_admin None user N/A creds N/A username passwd N/A creds N/A password debug False config N/A network_vlan_ranges physnet_sriov N/A  Ok N/A N/A N/A Exception N/A e N/A N/A  Fail N/A N/A N/A N/A N/A str N/A type e N/A 6 -1 :  N/A str e N/A N/A exit -1 N/A N/A skip_admin_tests N/A N/A tenant_name tos-tenant N/A N/A N/A N/A creating new tenant '%s' tenant_name ljust 50 N/A N/A N/A N/A sys stdout flush N/A N/A result new_tenant N/A N/A myvim new_tenant tenant_name test tenant_description, trying a long description to get the limit. 2 trying a long description to get the limit. 3. trying a long description to get the limit. N/A N/A result 0 N/A N/A  Fail N/A   you can skip tenant creation with param'--skip-admin-tests' N/A   VIM response: new_tenant N/A N/A exit -1 N/A N/A  Ok new_tenant N/A N/A N/A rollback_list append N/A tenant tenant_name new_tenant N/A user_name tos-user N/A N/A N/A N/A creating new user '%s' user_name ljust 50 N/A N/A N/A N/A sys stdout flush N/A N/A result new_user N/A N/A myvim new_user user_name user_name tenant_id new_tenant N/A N/A result 0 N/A N/A  Fail N/A   VIM response: new_user N/A N/A exit -1 N/A N/A  Ok new_user N/A N/A N/A rollback_list append N/A user user_name new_user N/A name tos-fl1 N/A N/A N/A N/A creating new flavor '%s' name ljust 50 N/A N/A N/A N/A sys stdout flush N/A flavor N/A N/A N/A flavor N/A name name N/A N/A result new_flavor1 N/A N/A myvim new_tenant_flavor flavor True N/A N/A result 0 N/A N/A  Fail N/A   VIM response: new_flavor1 N/A N/A exit -1 N/A N/A  Ok new_flavor1 N/A N/A N/A rollback_list append N/A flavor name new_flavor1 N/A name tos-cirros N/A N/A N/A N/A creating new image '%s' name ljust 50 N/A N/A N/A N/A sys stdout flush N/A image N/A N/A N/A image N/A name name N/A N/A image N/A location image_path N/A N/A result new_image1 N/A N/A myvim new_tenant_image image N/A N/A result 0 N/A N/A  Fail N/A   VIM response: new_image1 N/A N/A exit -1 N/A N/A  Ok new_image1 N/A N/A N/A rollback_list append N/A image name new_image1 N/A N/A skip_admin_tests N/A N/A N/A N/A N/A N/A changing credentials to new tenant ljust 50 N/A N/A N/A N/A sys stdout flush N/A N/A myvim N/A tenant tenant_name N/A N/A myvim N/A user user_name N/A N/A myvim N/A passwd user_name N/A  Ok N/A N/A N/A rollback_list append N/A creds tenant N/A creds N/A tenant_name N/A N/A N/A rollback_list append N/A creds user N/A creds N/A username N/A N/A N/A rollback_list append N/A creds passwd N/A creds N/A password N/A N/A N/A Exception N/A e N/A N/A  Fail N/A  Error setting osconnector to new tenant: N/A N/A N/A N/A str N/A type e N/A 6 -1 :  N/A str e N/A N/A exit -1 N/A name tos-net-bridge N/A N/A N/A N/A creating new net '%s' name ljust 50 N/A N/A N/A N/A sys stdout flush N/A N/A result new_net1 N/A N/A myvim new_tenant_network name bridge N/A N/A result 0 N/A N/A  Fail N/A   VIM response: new_net1 N/A N/A exit -1 N/A N/A  Ok new_net1 N/A N/A N/A rollback_list append N/A network name new_net1 N/A name tos-vm-cloud N/A N/A N/A N/A creating new VM '%s' name ljust 50 N/A N/A N/A N/A sys stdout flush N/A N/A result new_vm1 N/A N/A myvim new_tenant_vminstance name vm-cloud-description False new_image1 new_flavor1 N/A N/A net_id type new_net1 virtio N/A N/A result 0 N/A N/A  Fail N/A   VIM response: new_vm1 N/A N/A exit -1 N/A N/A  Ok new_vm1 N/A N/A N/A rollback_list append N/A vm name new_vm1 N/A DONE  Ok N/A Type ENTER to delete items N/A N/A raw_input >  N/A N/A exit N/A N/A N/A KeyboardInterrupt N/A N/A  Canceled! N/A N/A SystemExit N/A N/A N/A N/A len rollback_list N/A N/A N/A delete_items