Package com.xebialabs.overthere

Examples of com.xebialabs.overthere.ConnectionOptions


        return System.getProperty("os.name", "").toLowerCase().contains("windows");
    }

    @BeforeMethod
    public void setupOptions() {
        options = new ConnectionOptions();
        options.set(OPERATING_SYSTEM, WINDOWS);
        options.set(CONNECTION_TYPE, WINRM_NATIVE);
        options.set(PASSWORD, "foobar");
        options.set(PORT, PORT_DEFAULT_WINRM_HTTP);
        options.set(CIFS_PORT, CIFS_PORT_DEFAULT);
View Full Code Here


        return CIFS_PROTOCOL;
    }

    @Override
    protected ConnectionOptions getOptions() {
        ConnectionOptions options = new ConnectionOptions();
        options.set(OPERATING_SYSTEM, WINDOWS);
        options.set(CONNECTION_TYPE, WINRM_INTERNAL);
        options.set(ADDRESS, WindowsCloudHostListener.getHost().getHostName());
        options.set(USERNAME, ADMINISTRATIVE_USER_ITEST_USERNAME);
        options.set(PASSWORD, ADMINISTRATIVE_USER_ITEST_PASSWORD);
        options.set(WINRM_ENABLE_HTTPS, true);
        options.set(WINRM_HTTPS_CERTIFICATE_TRUST_STRATEGY, WinrmHttpsCertificateTrustStrategy.ALLOW_ALL);
        options.set(WINRM_HTTPS_HOSTNAME_VERIFICATION_STRATEGY, WinrmHttpsHostnameVerificationStrategy.ALLOW_ALL);
        return options;
    }
View Full Code Here

    private ConnectionOptions options;

    @BeforeMethod
    public void setupOptions() {
        options = new ConnectionOptions();
        options.set(OPERATING_SYSTEM, WINDOWS);
        options.set(CONNECTION_TYPE, TELNET);
        options.set(PASSWORD, "foobar");
        options.set(PORT, PORT_DEFAULT_TELNET);
        options.set(CIFS_PORT, CIFS_PORT_DEFAULT);
View Full Code Here

        return CIFS_PROTOCOL;
    }

    @Override
    protected ConnectionOptions getOptions() {
        ConnectionOptions options = new ConnectionOptions();
        options.set(OPERATING_SYSTEM, WINDOWS);
        options.set(CONNECTION_TYPE, TELNET);
        options.set(ADDRESS, WindowsCloudHostListener.getHost().getHostName());
        options.set(USERNAME, REGULAR_USER_ITEST_USERNAME);
        options.set(PASSWORD, REGULAR_USER_ITEST_PASSWORD);
        options.set(TEMPORARY_DIRECTORY_PATH, "C:\\overthere\\temp");
        options.set(PATH_SHARE_MAPPINGS, ImmutableMap.of("C:\\overthere", "sharethere"));
        return options;
    }
View Full Code Here

        return CIFS_PROTOCOL;
    }

    @Override
    protected ConnectionOptions getOptions() {
        ConnectionOptions options = new ConnectionOptions();
        options.set(OPERATING_SYSTEM, WINDOWS);
        options.set(CONNECTION_TYPE, WINRM_INTERNAL);
        options.set(ADDRESS, WindowsCloudHostListener.getHost().getHostName());
        options.set(USERNAME, ADMINISTRATIVE_USER_ITEST_USERNAME);
        options.set(PASSWORD, ADMINISTRATIVE_USER_ITEST_PASSWORD);
        return options;
    }
View Full Code Here

        return SSH_PROTOCOL;
    }

    @Override
    protected ConnectionOptions getOptions() {
        ConnectionOptions options = new ConnectionOptions();
        options.set(OPERATING_SYSTEM, WINDOWS);
        options.set(CONNECTION_TYPE, SFTP_WINSSHD);
        options.set(ADDRESS, WindowsCloudHostListener.getHost().getHostName());
        options.set(PORT, 2222);
        options.set(USERNAME, REGULAR_USER_ITEST_USERNAME);
        options.set(PASSWORD, REGULAR_USER_ITEST_PASSWORD);
        options.set(ALLOCATE_PTY, "xterm:80:24:0:0");
        return options;
    }
View Full Code Here

        return CIFS_PROTOCOL;
    }

    @Override
    protected ConnectionOptions getOptions() {
        ConnectionOptions options = new ConnectionOptions();
        options.set(OPERATING_SYSTEM, WINDOWS);
        options.set(CONNECTION_TYPE, TELNET);
        options.set(ADDRESS, WindowsCloudHostListener.getHost().getHostName());
        options.set(USERNAME, ADMINISTRATIVE_USER_ITEST_USERNAME);
        options.set(PASSWORD, ADMINISTRATIVE_USER_ITEST_PASSWORD);
        return options;
    }
View Full Code Here

    @BeforeMethod
    public void setTypeAndOptions() throws IOException {
        temp.create();
        protocol = LOCAL_PROTOCOL;
        options = new ConnectionOptions();
        options.set(OPERATING_SYSTEM, getLocalHostOperatingSystemFamily());
        options.set(TEMPORARY_DIRECTORY_PATH, temp.getRoot().getPath());
        connection = Overthere.getConnection(protocol, options);
        otherOptions = new ConnectionOptions();
        otherOptions.set(OPERATING_SYSTEM, getLocalHostOperatingSystemFamily());
        otherOptions.set(TEMPORARY_DIRECTORY_PATH, temp.newFolder("temp").getPath());
        otherConnection = Overthere.getConnection(protocol, otherOptions);
    }
View Full Code Here

    private ConnectionOptions connectionOptions;

    @BeforeClass
    public void init() {
        connectionOptions = new ConnectionOptions();
        connectionOptions.set(CONNECTION_TYPE, SFTP);
        connectionOptions.set(OPERATING_SYSTEM, UNIX);
        connectionOptions.set(ADDRESS, "nowhere.example.com");
        connectionOptions.set(USERNAME, "some-user");
        connectionOptions.set(PASSWORD, "foo");
View Full Code Here

    }

    @Test(expectedExceptions = IllegalArgumentException.class)
    @SuppressWarnings("resource")
    public void shouldNotAcceptPasswordPromptRegexWithWildcardStar() {
        ConnectionOptions options = new ConnectionOptions(connectionOptions);
        options.set(SUDO_PASSWORD_PROMPT_REGEX, "assword*");
        new SshInteractiveSudoConnection(SSH_PROTOCOL, options, new DefaultAddressPortMapper());
    }
View Full Code Here

TOP

Related Classes of com.xebialabs.overthere.ConnectionOptions

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.