@@ -0,0 +1,1694 @@
+package nl.esciencecenter.octopus.integration;%0A%0Aimport java.net.URI;%0A%0Aimport nl.esciencecenter.octopus.credentials.Credential;%0Aimport nl.esciencecenter.octopus.credentials.Credentials;%0Aimport nl.esciencecenter.octopus.exceptions.OctopusException;%0Aimport nl.esciencecenter.octopus.files.FileSystem;%0A%0Apublic class SftpFileTests_SARA_UI extends AbstractFileTests%0A%7B%0A    public String getTestUser()%0A    %7B%0A        // actual test user %0A        return System.getProperty(%22user.name%22);%0A    %7D%0A    %0A    public java.net.URI getTestLocation() throws Exception %7B%0A        %0A        String user = getTestUser();%0A        return new URI(%22sftp://%22+user+%22@ui.grid.sara.nl/tmp/%22); %0A    %7D%0A    %0A    public Credential getSSHCredentials() throws OctopusException %7B%0A        %0A        Credentials creds = octopus.credentials();%0A        String user = getTestUser();%0A        Credential cred = creds.newCertificateCredential(%22ssh%22, null, %22/home/%22 + user + %22/.ssh/id_rsa%22, %0A                            %22/home/%22 + user + %22/.ssh/id_rsa.pub%22, user, %22%22);%0A        return cred; %0A    %7D%0A    %0A    /** %0A     * Get actual FileSystem implementation to run test on. %0A     * Test this before other tests: %0A     */%0A    protected FileSystem getFileSystem() throws Exception %7B%0A        %0A        synchronized(this) %7B%0A            if (fileSystem==null) %7B%0A                URI uri=getTestLocation();%0A                URI fsURI=new URI(uri.getScheme(),uri.getUserInfo(),uri.getHost(), uri.getPort(),null, null, null);%0A                fileSystem=getFiles().newFileSystem(fsURI, getSSHCredentials(),null);%0A            %7D%0A            %0A            return fileSystem;%0A        %7D%0A    %7D%0A    %0A    // ===%0A    // Sftp Specific tests here: %0A    // === %0A    %0A    %0A%7D%0A

Test SFTP to ui.grid.sara.nl