Esempio n. 1
0
    def test_create_simple_binding_with_backslash(self):
        jboss7.create_simple_binding(self.jboss_config, "java:global/env", r"DEV\2")

        self.org_run_operation.assert_called_with(
            self.jboss_config,
            r'/subsystem=naming/binding="java:global/env":add(binding-type=simple, value="DEV\\\\2")',
        )
Esempio n. 2
0
    def test_create_simple_binding(self):
        jboss7.create_simple_binding(self.jboss_config, 'java:global/env',
                                     'DEV')

        self.org_run_operation.assert_called_with(
            self.jboss_config,
            '/subsystem=naming/binding="java:global/env":add(binding-type=simple, value="DEV")'
        )
Esempio n. 3
0
    def test_create_simple_binding_with_backslash(self):
        jboss7.create_simple_binding(self.jboss_config, 'java:global/env',
                                     r'DEV\2')

        __salt__['jboss7_cli.run_operation'].assert_called_with(
            self.jboss_config,
            r'/subsystem=naming/binding="java:global/env":add(binding-type=simple, value="DEV\\\\2")'
        )
Esempio n. 4
0
    def test_create_simple_binding_with_backslash(self):
        jboss7.create_simple_binding(self.jboss_config, 'java:global/env', r'DEV\2')

        __salt__['jboss7_cli.run_operation'].assert_called_with(self.jboss_config, r'/subsystem=naming/binding="java:global/env":add(binding-type=simple, value="DEV\\\\2")')