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 Call NameLoad keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str 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 FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr 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 AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr NameLoad 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 decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str Num Assert CompareEq Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str Num Print BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Created on = '11/21/13"
Author = 'mmunn'

Unit test          : EUCA-5959 stopped instances show invalid value for public private DNS names
                     This test assumes you have a registered ebs-image, you can use:
                     bfebstest.py --imgurl http://mirror.eucalyptus-systems.com/images/bfebs-image/vmware/bfebs_vmwaretools.img
                                  --config ../../cloud_admin/3-4/cloud.conf --password foobar --tests RegisterImage
setUp              : Install Credentials,
test               : enable dns, start and then stop an ebs backed instance and check for public/private DNS names in
                      euca-descibe-instances output
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 EucaTest 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 tester N/A Eucaops config_file N/A self conf password foobar N/A N/A N/A self doAuth N/A N/A self OK [1m[37m[42m N/A N/A self ENDC [0m N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self tester cleanup_artifacts N/A N/A N/A N/A self tester modify_property bootstrap.webservices.use_instance_dns false 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 runInstances N/A N/A self numMax N/A N/A N/A N/A self emi N/A N/A N/A self tester get_emi root_device_type ebs N/A N/A self reservation N/A N/A N/A self tester run_instance N/A self emi 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 ip N/A instance public_dns_name N/A N/A self instanceid N/A instance id N/A runSysCmd N/A N/A self cmd N/A N/A N/A N/A self source N/A N/A source  N/A N/A self tester credpath /eucarc &&  N/A N/A self out N/A N/A N/A self tester sys N/A N/A self source cmd 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 test N/A N/A self N/A N/A N/A N/A N/A N/A self tester modify_property bootstrap.webservices.use_instance_dns true N/A N/A N/A self runInstances 1 N/A N/A N/A N/A self tester stop_instances N/A self reservation N/A N/A N/A self runSysCmd N/A euca-describe-instances  N/A self instanceid N/A N/A N/A N/A N/A str N/A self out count eucalyptus.internal 0 N/A N/A N/A N/A N/A str N/A self out count eucalyptus.localhost 0 N/A N/A N/A N/A self OK SUCCESS: publicdns and privatedns fields are empty in euca-descibe-instances output N/A self ENDC N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main