mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-19 14:15:50 +02:00
[263190][testing] Avoid test failures due to SSH connection without password
This commit is contained in:
parent
fe348860a0
commit
ea5789755a
1 changed files with 12 additions and 1 deletions
|
@ -50,6 +50,7 @@ public class RSEFileStoreTest extends FileServiceBaseTest {
|
||||||
private String fPropertiesFileName;
|
private String fPropertiesFileName;
|
||||||
//For testing the test: verify methods on Eclipse Local Filesystem
|
//For testing the test: verify methods on Eclipse Local Filesystem
|
||||||
public static String fDefaultPropertiesFile = null;
|
public static String fDefaultPropertiesFile = null;
|
||||||
|
//public static String fDefaultPropertiesFile = "sshConnection.properties"; //$NON-NLS-1$
|
||||||
|
|
||||||
private IRemoteFile fHomeDirectory;
|
private IRemoteFile fHomeDirectory;
|
||||||
private String fTestStorePath;
|
private String fTestStorePath;
|
||||||
|
@ -88,7 +89,7 @@ public class RSEFileStoreTest extends FileServiceBaseTest {
|
||||||
|
|
||||||
//// Add a test suite for each connection type
|
//// Add a test suite for each connection type
|
||||||
//String[] connTypes = { null, "local", "ssh", "ftp", "linux", "windows" };
|
//String[] connTypes = { null, "local", "ssh", "ftp", "linux", "windows" };
|
||||||
String[] connTypes = { null, "local", "ssh" };
|
String[] connTypes = { null, "local" };
|
||||||
//String[] connTypes = { "ssh" };
|
//String[] connTypes = { "ssh" };
|
||||||
|
|
||||||
for (int i = 0; i < connTypes.length; i++) {
|
for (int i = 0; i < connTypes.length; i++) {
|
||||||
|
@ -619,6 +620,16 @@ public class RSEFileStoreTest extends FileServiceBaseTest {
|
||||||
assertFalse("5.3", child2.fetchInfo().exists());
|
assertFalse("5.3", child2.fetchInfo().exists());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Test suite255files() {
|
||||||
|
String baseName = RSEFileStoreTest.class.getName();
|
||||||
|
TestSuite suite = new TestSuite(baseName);
|
||||||
|
suite.addTest(new RSEFileStoreTest("test255files", "sshConnection.properties"));
|
||||||
|
suite.addTest(new RSEFileStoreTest("test255files", "linuxConnection.properties"));
|
||||||
|
suite.addTest(new RSEFileStoreTest("test255files", "sshConnection.properties"));
|
||||||
|
suite.addTest(new RSEFileStoreTest("test255files", "linuxConnection.properties"));
|
||||||
|
return suite;
|
||||||
|
}
|
||||||
|
|
||||||
public void test255files() throws Exception {
|
public void test255files() throws Exception {
|
||||||
if (isTestDisabled())
|
if (isTestDisabled())
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue