Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list Call NameLoad CompareIs AttributeLoad NameLoad attr NameLoad Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad keyword NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore ListLoad Str Str Str For NameStore SubscriptLoad NameLoad Slice body If BoolOpOr CompareEq Call NameLoad NameLoad Num CompareNotIn SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr Num orelse Break If CompareIs Call NameLoad NameLoad Num body Return Call NameLoad orelse Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore ListLoad If NameLoad body Assign NameStore ListComp Call AttributeLoad Str attr NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Dict attr NameLoad Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Dict attr NameLoad Dict decorator_list decorator_list Call NameLoad CompareIs AttributeLoad NameLoad attr NameLoad Str
N/A __future__ absolute_import unittest2 skipIf integration.cloud.helpers random_name salt.utils virtualbox N/A json N/A logging N/A os N/A unittest N/A integration N/A INSTANCE_NAME N/A random_name N/A PROVIDER_NAME virtualbox N/A CONFIG_NAME N/A PROVIDER_NAME -config N/A PROFILE_NAME N/A PROVIDER_NAME -test N/A DEPLOY_PROFILE_NAME N/A PROVIDER_NAME -deploy-test N/A DRIVER_NAME virtualbox N/A BASE_BOX_NAME __temp_test_vm__ N/A BOOTABLE_BASE_BOX_NAME SaltMiniBuntuTest N/A log N/A N/A logging getLogger N/A log_handler N/A N/A logging StreamHandler N/A N/A N/A log_handler setLevel N/A logging INFO N/A N/A N/A log addHandler log_handler N/A N/A N/A log setLevel N/A logging INFO N/A info N/A log info VirtualboxTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self vbox N/A N/A virtualbox vb_get_box N/A assertMachineExists N/A N/A self name msg N/A None N/A N/A N/A N/A N/A N/A N/A self vbox findMachine name N/A N/A N/A Exception N/A e N/A N/A msg N/A N/A N/A N/A self fail msg N/A N/A N/A N/A self fail N/A e message N/A assertMachineDoesNotExist N/A N/A self name N/A N/A N/A N/A N/A self assertRaisesRegexp Exception Could not find a registered machine N/A N/A self vbox findMachine name N/A N/A N/A skipIf N/A N/A virtualbox HAS_LIBS False virtualbox has to be installed VirtualboxCloudTestCase N/A N/A integration ShellCase N/A run_cloud N/A N/A self arg_str catch_stderr timeout N/A False None N/A N/A 
        Execute salt-cloud with json output and try to interpret it

        @return:
        @rtype: dict
         N/A config_path N/A N/A N/A os path join N/A integration FILES conf N/A arg_str N/A N/A --out=json -c {0} {1} format config_path arg_str N/A N/A N/A log debug running salt-cloud with %s arg_str N/A output N/A N/A self run_script salt-cloud arg_str catch_stderr timeout timeout N/A N/A N/A isinstance output tuple N/A N/A len output 2 N/A N/A output N/A output N/A 0 N/A valid_initial_chars N/A { [ " N/A line N/A output N/A N/A N/A N/A N/A N/A len line 0 N/A N/A line N/A 0 valid_initial_chars N/A N/A N/A N/A output pop 0 N/A N/A N/A N/A N/A len output 0 N/A N/A N/A dict N/A N/A N/A N/A json loads N/A N/A join output N/A run_cloud_function N/A N/A self function kw_function_args N/A None kwargs N/A N/A 
        A helper to call `salt-cloud -f function provider`

        @param function:
        @type function:
        @param kw_function_args: Keyword arguments for the argument string in the commandline
        @type dict:
        @param kwargs: For the `run_cloud` function
        @type kwargs:
        @return:
        @rtype: dict
         N/A args N/A N/A kw_function_args N/A N/A args N/A N/A N/A {0}='{1}' format key value N/A N/A key value N/A N/A kw_function_args iteritems N/A output N/A N/A self run_cloud N/A N/A -f {0} {1} {2} format function CONFIG_NAME N/A N/A join args kwargs N/A N/A N/A N/A N/A output get CONFIG_NAME N/A get PROVIDER_NAME N/A N/A run_cloud_action N/A N/A self action instance_name N/A kwargs N/A N/A 
        A helper to call `salt-cloud -a action instance_name`

        @param action:
        @type action: str
        @param instance_name:
        @type instance_name: str
        @return:
        @rtype: dict
         N/A output N/A N/A self run_cloud N/A N/A -a {0} {1} --assume-yes format action instance_name kwargs N/A N/A N/A N/A N/A output get CONFIG_NAME N/A get PROVIDER_NAME N/A N/A N/A N/A skipIf N/A N/A virtualbox HAS_LIBS False salt-cloud requires virtualbox to be installed