Package com.dtolabs.rundeck.core.common

Examples of com.dtolabs.rundeck.core.common.NodeEntryImpl


        testFileCopier testcopier = new testFileCopier();
        FileCopierService copyservice = FileCopierService.getInstanceForFramework(getFrameworkInstance());
        copyservice.registerInstance("local", testcopier);

        //execute command interpreter on local node
        final NodeEntryImpl test1 = new NodeEntryImpl("testhost1", "test1");
        test1.setOsFamily("unix");

        final StepExecutionContext context = ExecutionContextImpl.builder()
            .frameworkProject(PROJ_NAME)
            .framework(frameworkInstance)
            .user("blah")
View Full Code Here


        testFileCopier testcopier = new testFileCopier();
        FileCopierService copyservice = FileCopierService.getInstanceForFramework(getFrameworkInstance());
        copyservice.registerInstance("local", testcopier);

        //execute command interpreter on local node
        final NodeEntryImpl test1 = new NodeEntryImpl("testhost1", "test1");
        test1.setOsFamily("unix");
        test1.getAttributes().put("bingo", "fifty");

        final StepExecutionContext context = ExecutionContextImpl.builder()
            .frameworkProject(PROJ_NAME)
            .framework(frameworkInstance)
            .user("blah")
View Full Code Here

        testFileCopier testcopier = new testFileCopier();
        FileCopierService copyservice = FileCopierService.getInstanceForFramework(getFrameworkInstance());
        copyservice.registerInstance("local", testcopier);

        //execute command interpreter on local node
        final NodeEntryImpl test1 = new NodeEntryImpl("testhost1", "test1");
        test1.setOsFamily("unix");

        final StepExecutionContext context = ExecutionContextImpl.builder()
                .frameworkProject(PROJ_NAME)
                .framework(frameworkInstance)
                .user("blah")
View Full Code Here

        testFileCopier testcopier = new testFileCopier();
        FileCopierService copyservice = FileCopierService.getInstanceForFramework(getFrameworkInstance());
        copyservice.registerInstance("local", testcopier);

        //execute command interpreter on local node
        final NodeEntryImpl test1 = new NodeEntryImpl("testhost1", "test1");
        test1.setOsFamily("unix");

        final StepExecutionContext context = ExecutionContextImpl.builder()
            .frameworkProject(PROJ_NAME)
            .framework(frameworkInstance)
            .user("blah")
View Full Code Here

        testFileCopier testcopier = new testFileCopier();
        FileCopierService copyservice = FileCopierService.getInstanceForFramework(getFrameworkInstance());
        copyservice.registerInstance("local", testcopier);

        //execute command interpreter on local node
        final NodeEntryImpl test1 = new NodeEntryImpl("testhost1", "test1");
        test1.setOsFamily("unix");

        final StepExecutionContext context = ExecutionContextImpl.builder()
            .frameworkProject(PROJ_NAME)
            .framework(frameworkInstance)
            .user("blah")
View Full Code Here

        testNodeExecutor testexec = new testNodeExecutor();
        NodeExecutorService service = NodeExecutorService.getInstanceForFramework(getFrameworkInstance());
        service.registerInstance("local", testexec);

        //execute command interpreter on local node
        final NodeEntryImpl test1 = new NodeEntryImpl("testhost", "test1");
        final StepExecutionContext context = ExecutionContextImpl.builder()
            .frameworkProject(PROJ_NAME)
            .framework(frameworkInstance)
            .user("blah")
            .threadCount(1)
View Full Code Here

        testNodeExecutor testexec = new testNodeExecutor();
        NodeExecutorService service = NodeExecutorService.getInstanceForFramework(getFrameworkInstance());
        service.registerInstance("jsch-ssh", testexec);

        //execute command interpreter on local node
        final NodeEntryImpl test1 = new NodeEntryImpl("testhost2","testnode2");
        final StepExecutionContext context = ExecutionContextImpl.builder()
            .frameworkProject(PROJ_NAME)
            .framework(frameworkInstance)
            .user("blah")
            .threadCount(1)
View Full Code Here

    public static Test suite() {
        return new TestSuite(TestNodeSet.class);
    }

    protected void setUp() throws Exception {
        nodeimp1 = new NodeEntryImpl("test1.local", "testnode1");
        nodeimp1.setOsArch("x86");
        nodeimp1.setOsFamily("windows");
        nodeimp1.setOsName("Windows NT");
        nodeimp1.setOsVersion("5.1");
        final HashSet tags1 = new HashSet();
        tags1.add("priority1");
        tags1.add("devenv");
        tags1.add("serverbox");
        nodeimp1.setTags(tags1);

        nodeimp2 = new NodeEntryImpl("testnode2", "testnode2");
        nodeimp2.setOsArch("x386");
        nodeimp2.setOsFamily("unix");
        nodeimp2.setOsName("Mac OS X");
        nodeimp2.setOsVersion("10.5.1");
        final HashSet tags2 = new HashSet();
        tags2.add("priority2");
        tags2.add("devenv");
        tags2.add("workstation");
        nodeimp2.setTags(tags2);
        nodeimp2.getAttributes().put("testattribute1", "testvalue1");
        nodeimp2.getAttributes().put("testattribute2", "testvalue2");
        nodeimp2.getAttributes().put("testattribute3", "testvalue3");

        nodeimp3 = new NodeEntryImpl("testnode3.local", "testnode3");
        nodeimp3.setOsArch("intel");
        nodeimp3.setOsFamily("solaris");
        nodeimp3.setOsName("Solaris Something");
        nodeimp3.setOsVersion("3.7");
        final HashSet tags3 = new HashSet();
View Full Code Here

        testCreateScriptArgList(osFamily, dataContext, args, scriptinterpreter, filepath, interpreterargsquoted,
                expected);
    }
    private void testCreateScriptArgsArray(String osFamily, Map<String, Map<String, String>> dataContext, String[] args, String
            scriptinterpreter, String filepath, boolean interpreterargsquoted, String[] expected) {
        NodeEntryImpl node = null;
        if (null != osFamily) {
            node = new NodeEntryImpl("blah");
            node.setOsFamily(osFamily);
        }

        Map<String, Map<String, String>> localDataContext = dataContext;

        String[] scriptArgs = ScriptExecUtil.createScriptArgs(
View Full Code Here

        );
        Assert.assertArrayEquals(Arrays.asList(scriptArgs).toString(), expected, scriptArgs);
    }
    private void testCreateScriptArgList(String osFamily, Map<String, Map<String, String>> dataContext, String[] args, String
            scriptinterpreter, String filepath, boolean interpreterargsquoted, String[] expected) {
        NodeEntryImpl node = null;
        if (null != osFamily) {
            node = new NodeEntryImpl("blah");
            node.setOsFamily(osFamily);
        }

        ExecArgList arglist = ScriptExecUtil.createScriptArgList(
                filepath, null,
                args,
View Full Code Here

TOP

Related Classes of com.dtolabs.rundeck.core.common.NodeEntryImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.