Module ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias Expr Call NameLoad Str ImportFrom alias ImportFrom alias TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body ImportFrom alias identifier Assign AttributeStore NameLoad attr Dict ClassDef bases NameLoad body Assign NameStore Dict Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return Dict Str Str Str Dict Str Str Str Str decorator_list Assign AttributeStore SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareEq NameLoad Str body Return Dict Str Str Str Dict Str Dict Str Str Str Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str Str decorator_list Assign AttributeStore SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareEq NameLoad Str body Return Dict Str Str Str Dict Str Dict Str Dict Str Str decorator_list Assign AttributeStore SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareEq NameLoad Str body Return Dict Str Str Str Dict Str Dict Str Dict Str Str decorator_list Assign AttributeStore SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareEq NameLoad Str body Return Dict Str Str Str Dict Str Dict Str Dict Str Str decorator_list Assign AttributeStore SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareEq NameLoad Str body Return Dict Str Str Str Dict Str Dict Str Dict Str Str decorator_list Assign AttributeStore SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return Dict Str Str Str Dict Str Str Str Str Str Str Str Str Str Str decorator_list Assign AttributeStore SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareEq NameLoad Str body Return Dict Str Str Str Dict Str Dict Str Str Str Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str Str orelse If CompareEq NameLoad Str body Return Dict Str Str Str Dict Str Str Str Str Str Str Str Str Str Str orelse If CompareEq NameLoad Str body Return Dict Str Str Str NameLoad decorator_list Assign AttributeStore SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Str keyword NameLoad decorator_list decorator_list Call NameLoad NameLoad NameLoad
N/A __future__ absolute_import salttesting.unit skipIf TestCase salttesting.mock NO_MOCK NO_MOCK_REASON MagicMock salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../../ salt.utils.odict OrderedDict salt.modules jboss7 N/A N/A N/A __salt__ N/A N/A N/A NameError N/A salt.ext.six.moves builtins __builtin__ N/A N/A __builtin__ __salt__ N/A JBoss7TestCase N/A TestCase N/A N/A jboss_config N/A N/A org_run_operation None setUp N/A N/A self N/A N/A N/A N/A jboss7_cli.run_operation __salt__ N/A N/A N/A self org_run_operation N/A __salt__ N/A jboss7_cli.run_operation N/A N/A __salt__ N/A jboss7_cli.run_operation N/A MagicMock N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self org_run_operation None N/A N/A N/A __salt__ N/A jboss7_cli.run_operation N/A self org_run_operation N/A test_create_simple_binding N/A N/A self N/A N/A N/A N/A N/A jboss7 create_simple_binding N/A self jboss_config java:global/env DEV N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation assert_called_with N/A self jboss_config /subsystem=naming/binding="java:global/env":add(binding-type=simple, value="DEV") N/A test_create_simple_binding_with_backslash N/A N/A self N/A N/A N/A N/A N/A jboss7 create_simple_binding N/A self jboss_config java:global/env DEV\2 N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation assert_called_with N/A self jboss_config /subsystem=naming/binding="java:global/env":add(binding-type=simple, value="DEV\\\\2") N/A test_update_binding N/A N/A self N/A N/A N/A N/A N/A jboss7 update_simple_binding N/A self jboss_config java:global/env INT N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation assert_called_with N/A self jboss_config /subsystem=naming/binding="java:global/env":write-attribute(name=value, value="INT") N/A test_update_binding_with_backslash N/A N/A self N/A N/A N/A N/A N/A jboss7 update_simple_binding N/A self jboss_config java:global/env INT\2 N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation assert_called_with N/A self jboss_config /subsystem=naming/binding="java:global/env":write-attribute(name=value, value="INT\\\\2") N/A test_read_binding N/A N/A self N/A N/A cli_command_response N/A N/A jboss_config cli_command N/A N/A N/A N/A cli_command /subsystem=naming/binding="java:global/env":read-resource N/A N/A N/A outcome result success N/A binding-type value simple DEV N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation side_effect cli_command_response N/A result N/A N/A jboss7 read_simple_binding N/A self jboss_config java:global/env N/A N/A N/A self assertEqual N/A result N/A outcome success N/A N/A N/A self assertEqual N/A N/A result N/A result N/A value DEV N/A test_create_datasource_all_properties_included N/A N/A self N/A N/A cli_command_response N/A N/A jboss_config cli_command fail_on_error N/A False N/A N/A N/A cli_command /subsystem=datasources/data-source="appDS":read-resource-description N/A N/A N/A outcome result success N/A attributes N/A driver-name connection-url jndi-name user-name password N/A type STRING N/A type STRING N/A type STRING N/A type STRING N/A type STRING N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation side_effect cli_command_response N/A datasource_properties N/A OrderedDict N/A N/A datasource_properties N/A driver-name mysql N/A N/A datasource_properties N/A connection-url jdbc:mysql://localhost:3306/app N/A N/A datasource_properties N/A jndi-name java:jboss/datasources/appDS N/A N/A datasource_properties N/A user-name app N/A N/A datasource_properties N/A password app_password N/A N/A N/A jboss7 create_datasource N/A self jboss_config appDS datasource_properties N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation assert_called_with N/A self jboss_config /subsystem=datasources/data-source="appDS":add(driver-name="mysql",connection-url="jdbc:mysql://localhost:3306/app",jndi-name="java:jboss/datasources/appDS",user-name="app",password="app_password") fail_on_error False N/A test_create_datasource_format_boolean_value_when_string N/A N/A self N/A N/A cli_command_response N/A N/A jboss_config cli_command fail_on_error N/A False N/A N/A N/A cli_command /subsystem=datasources/data-source="appDS":read-resource-description N/A N/A N/A outcome result success N/A attributes N/A use-ccm N/A type BOOLEAN N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation side_effect cli_command_response N/A datasource_properties N/A OrderedDict N/A N/A datasource_properties N/A use-ccm true N/A N/A N/A jboss7 create_datasource N/A self jboss_config appDS datasource_properties N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation assert_called_with N/A self jboss_config /subsystem=datasources/data-source="appDS":add(use-ccm=true) fail_on_error False N/A test_create_datasource_format_boolean_value_when_boolean N/A N/A self N/A N/A cli_command_response N/A N/A jboss_config cli_command fail_on_error N/A False N/A N/A N/A cli_command /subsystem=datasources/data-source="appDS":read-resource-description N/A N/A N/A outcome result success N/A attributes N/A use-ccm N/A type BOOLEAN N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation side_effect cli_command_response N/A datasource_properties N/A OrderedDict N/A N/A datasource_properties N/A use-ccm True N/A N/A N/A jboss7 create_datasource N/A self jboss_config appDS datasource_properties N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation assert_called_with N/A self jboss_config /subsystem=datasources/data-source="appDS":add(use-ccm=true) fail_on_error False N/A test_create_datasource_format_int_value_when_int N/A N/A self N/A N/A cli_command_response N/A N/A jboss_config cli_command fail_on_error N/A False N/A N/A N/A cli_command /subsystem=datasources/data-source="appDS":read-resource-description N/A N/A N/A outcome result success N/A attributes N/A min-pool-size N/A type INT N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation side_effect cli_command_response N/A datasource_properties N/A OrderedDict N/A N/A datasource_properties N/A min-pool-size 15 N/A N/A N/A jboss7 create_datasource N/A self jboss_config appDS datasource_properties N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation assert_called_with N/A self jboss_config /subsystem=datasources/data-source="appDS":add(min-pool-size=15) fail_on_error False N/A test_create_datasource_format_int_value_when_string N/A N/A self N/A N/A cli_command_response N/A N/A jboss_config cli_command fail_on_error N/A False N/A N/A N/A cli_command /subsystem=datasources/data-source="appDS":read-resource-description N/A N/A N/A outcome result success N/A attributes N/A min-pool-size N/A type INT N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation side_effect cli_command_response N/A datasource_properties N/A OrderedDict N/A N/A datasource_properties N/A min-pool-size 15 N/A N/A N/A jboss7 create_datasource N/A self jboss_config appDS datasource_properties N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation assert_called_with N/A self jboss_config /subsystem=datasources/data-source="appDS":add(min-pool-size=15) fail_on_error False N/A test_read_datasource N/A N/A self N/A N/A cli_command_response N/A N/A jboss_config cli_command N/A N/A N/A N/A cli_command /subsystem=datasources/data-source="appDS":read-resource N/A N/A N/A outcome result success N/A driver-name connection-url jndi-name user-name password mysql jdbc:mysql://localhost:3306/app java:jboss/datasources/appDS app app_password N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation side_effect cli_command_response N/A ds_result N/A N/A jboss7 read_datasource N/A self jboss_config appDS N/A ds_properties N/A ds_result N/A result N/A N/A N/A self assertEqual N/A ds_properties N/A driver-name mysql N/A N/A N/A self assertEqual N/A ds_properties N/A connection-url jdbc:mysql://localhost:3306/app N/A N/A N/A self assertEqual N/A ds_properties N/A jndi-name java:jboss/datasources/appDS N/A N/A N/A self assertEqual N/A ds_properties N/A user-name app N/A N/A N/A self assertEqual N/A ds_properties N/A password app_password N/A test_update_datasource N/A N/A self N/A N/A N/A datasource_properties N/A driver-name connection-url jndi-name user-name password mysql jdbc:mysql://localhost:3306/app java:jboss/datasources/appDS newuser app_password cli_command_response N/A N/A jboss_config cli_command fail_on_error N/A False N/A N/A N/A cli_command /subsystem=datasources/data-source="appDS":read-resource-description N/A N/A N/A outcome result success N/A attributes N/A driver-name connection-url jndi-name user-name password N/A type STRING N/A type STRING N/A type STRING N/A type STRING N/A type STRING N/A N/A N/A cli_command /subsystem=datasources/data-source="appDS":read-resource N/A N/A N/A outcome result success N/A driver-name connection-url jndi-name user-name password mysql jdbc:mysql://localhost:3306/app java:jboss/datasources/appDS app app_password N/A N/A N/A cli_command /subsystem=datasources/data-source="appDS":write-attribute(name="user-name",value="newuser") N/A N/A N/A outcome success success True N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation side_effect cli_command_response N/A N/A N/A jboss7 update_datasource N/A self jboss_config appDS datasource_properties N/A N/A N/A N/A __salt__ N/A jboss7_cli.run_operation assert_any_call N/A self jboss_config /subsystem=datasources/data-source="appDS":write-attribute(name="user-name",value="newuser") fail_on_error False N/A N/A N/A skipIf NO_MOCK NO_MOCK_REASON