From d0692da27122c0e6441336d2fbadae23c0b5c85e Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Tue, 31 Jul 2007 19:59:16 +0000
Subject: [PATCH] disabled quicksetup tests that stop/start server as they are causing memory use problems with the test machines
---
opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/ConfigurationTest.java | 20 +++---
opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/ServerControllerTest.java | 4
opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/FileManagerTest.java | 30 +++++-----
opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/InstallationTest.java | 74 ++++++++++++------------
4 files changed, 64 insertions(+), 64 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/ConfigurationTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/ConfigurationTest.java
index 6efc4a2..289553a 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/ConfigurationTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/ConfigurationTest.java
@@ -46,57 +46,57 @@
config = TestUtilities.getInstallation().getCurrentConfiguration();
}
- @Test
+ @Test(enabled = false)
public void testGetDirectoryManagerDns() throws IOException {
Set<String> dns = config.getDirectoryManagerDns();
assertTrue(dns.size() > 0);
}
- @Test
+ @Test(enabled = false)
public void testGetPort() throws IOException {
assertTrue(TestUtilities.ldapPort.equals(config.getPort()));
}
- @Test
+ @Test(enabled = false)
public void testGetSecurePort() throws IOException {
// TODO: something more useful
config.getSecurePort();
}
- @Test
+ @Test(enabled = false)
public void testGetLogPaths() throws IOException {
// TODO: something more useful
config.getLogPaths();
}
- @Test
+ @Test(enabled = false)
public void testHasBeenModified() throws IOException {
assertTrue(config.hasBeenModified());
}
- @Test
+ @Test(enabled = false)
public void testGetOutsideLogs() throws IOException {
// TODO: something more useful
config.getOutsideLogs();
}
- @Test
+ @Test(enabled = false)
public void testGetOutsideDbs() throws IOException {
// TODO: something more useful
config.getOutsideDbs();
}
- @Test
+ @Test(enabled = false)
public void testGetContents() throws IOException {
assertNotNull(config.getContents());
}
- @Test
+ @Test(enabled = false)
public void testGetDatabasePaths() throws IOException {
assertTrue(config.getDatabasePaths().size() > 0);
}
- @Test
+ @Test(enabled = false)
public void testLoad() {
//TODO: need way to verify reload
}
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/InstallationTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/InstallationTest.java
index ab363e2..6932eb6 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/InstallationTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/InstallationTest.java
@@ -49,7 +49,7 @@
/**
* Tests to make sure installation is valid.
*/
- @Test
+ @Test(enabled = false)
public void testValidateRootDirectory() {
Installation.validateRootDirectory(TestUtilities.getQuickSetupTestServerRootDir());
}
@@ -57,7 +57,7 @@
/**
* Tests that installation root directory is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetRootDirectory() {
assertNotNull(installation.getRootDirectory());
}
@@ -65,7 +65,7 @@
/**
* Tests that the installation root directory can be set.
*/
- @Test
+ @Test(enabled = false)
public void testSetRootDirectory() {
File root = installation.getRootDirectory();
installation.setRootDirectory(root);
@@ -74,7 +74,7 @@
/**
* Tests that the installation root is valid.
*/
- @Test
+ @Test(enabled = false)
public void testIsValid() {
assertTrue(installation.isValid());
}
@@ -83,7 +83,7 @@
* Tests that an installation directory missing required directories
* is considered invalid.
*/
- @Test
+ @Test(enabled = false)
public void testIsValid2() {
assertTrue(installation.isValid());
File x = new File(installation.getRootDirectory(), "x");
@@ -102,7 +102,7 @@
/**
* Tests the configuration is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetCurrentConfiguration() {
assertNotNull(installation.getCurrentConfiguration());
}
@@ -110,7 +110,7 @@
/**
* Tests the base configuration is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetBaseConfiguration() throws ApplicationException {
assertNotNull(installation.getBaseConfiguration());
}
@@ -118,7 +118,7 @@
/**
* Tests the status is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetStatus() {
assertNotNull(installation.getStatus());
}
@@ -126,7 +126,7 @@
/**
* Tests the lib directory is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetLibrariesDirectory() {
assertExistentFile(installation.getLibrariesDirectory());
}
@@ -134,7 +134,7 @@
/**
* Tests the schema concat file is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetSchemaConcatFile() {
assertNonexistentFile(installation.getSchemaConcatFile());
}
@@ -142,7 +142,7 @@
/**
* Tests the base schema file is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetBaseSchemaFile() throws ApplicationException {
assertExistentFile(installation.getBaseSchemaFile());
}
@@ -150,7 +150,7 @@
/**
* Tests the base config file is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetBaseConfigurationFile() throws ApplicationException {
assertExistentFile(installation.getBaseConfigurationFile());
}
@@ -158,7 +158,7 @@
/**
* Tests the SVN rev number is discernable.
*/
- @Test
+ @Test(enabled = false)
public void testGetSvnRev() throws ApplicationException {
assertNotNull(installation.getSvnRev());
}
@@ -166,7 +166,7 @@
/**
* Tests the config file is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetCurrentConfigurationFile() {
assertExistentFile(installation.getCurrentConfigurationFile());
}
@@ -174,7 +174,7 @@
/**
* Tests the bin/bat directory is available and platform appropriate.
*/
- @Test
+ @Test(enabled = false)
public void testGetBinariesDirectory() {
File binariesDir;
assertExistentFile(binariesDir = installation.getBinariesDirectory());
@@ -190,7 +190,7 @@
/**
* Tests the db directory is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetDatabasesDirectory() {
assertExistentFile(installation.getDatabasesDirectory());
}
@@ -198,7 +198,7 @@
/**
* Tests the backup directory is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetBackupDirectory() {
assertExistentFile(installation.getBackupDirectory());
}
@@ -206,7 +206,7 @@
/**
* Tests the config directory is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetConfigurationDirectory() {
assertExistentFile(installation.getConfigurationDirectory());
}
@@ -214,7 +214,7 @@
/**
* Tests the logs directory is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetLogsDirectory() {
assertExistentFile(installation.getLogsDirectory());
}
@@ -222,7 +222,7 @@
/**
* Tests the locks directory is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetLocksDirectory() {
assertExistentFile(installation.getLocksDirectory());
}
@@ -230,7 +230,7 @@
/**
* Tests the tmp directory is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetTemporaryDirectory() {
assertNonexistentFile(installation.getTemporaryDirectory());
}
@@ -238,7 +238,7 @@
/**
* Tests the history directory is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetHistoryDirectory() {
assertNonexistentFile(installation.getHistoryDirectory());
}
@@ -246,7 +246,7 @@
/**
* Tests a historical backup directory can be created.
*/
- @Test
+ @Test(enabled = false)
public void testCreateHistoryBackupDirectory() throws IOException {
assertExistentFile(installation.createHistoryBackupDirectory());
assertExistentFile(installation.getHistoryDirectory());
@@ -256,7 +256,7 @@
/**
* Tests the history log file is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetHistoryLogFile() {
assertNonexistentFile(installation.getHistoryLogFile());
}
@@ -264,7 +264,7 @@
/**
* Tests the config upgrade directory is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetConfigurationUpgradeDirectory() {
assertExistentFile(installation.getConfigurationUpgradeDirectory());
}
@@ -272,7 +272,7 @@
/**
* Tests the tmp/upgrade directory is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetTemporaryUpgradeDirectory() {
assertNonexistentFile(installation.getTemporaryUpgradeDirectory());
}
@@ -280,7 +280,7 @@
/**
* Tests getting a command file works.
*/
- @Test
+ @Test(enabled = false)
public void testGetCommandFile() {
assertExistentFile(installation.getCommandFile(
Installation.UNIX_START_FILE_NAME));
@@ -289,7 +289,7 @@
/**
* Tests the start server command is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetServerStartCommandFile() {
assertExistentFile(installation.getServerStartCommandFile());
}
@@ -297,7 +297,7 @@
/**
* Tests the stop server command is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetServerStopCommandFile() {
assertExistentFile(installation.getServerStopCommandFile());
}
@@ -305,7 +305,7 @@
/**
* Tests the ldif directory is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetLdifDirectory() {
assertExistentFile(installation.getLdifDirectory());
}
@@ -313,7 +313,7 @@
/**
* Tests the quicksetup jar is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetQuicksetupJarFile() {
assertExistentFile(installation.getQuicksetupJarFile());
}
@@ -321,7 +321,7 @@
/**
* Tests the OpenDS jar is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetOpenDSJarFile() {
assertExistentFile(installation.getOpenDSJarFile());
}
@@ -329,7 +329,7 @@
/**
* Tests the uninstall file is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetUninstallBatFile() {
assertExistentFile(installation.getUninstallBatFile());
}
@@ -337,7 +337,7 @@
/**
* Tests the status panel command file is available.
*/
- @Test
+ @Test(enabled = false)
public void testGetStatusPanelCommandFile() {
assertExistentFile(installation.getStatusPanelCommandFile());
}
@@ -345,7 +345,7 @@
/**
* Tests the build information is discernable.
*/
- @Test
+ @Test(enabled = false)
public void testGetBuildInformation() throws ApplicationException {
assertNotNull(installation.getBuildInformation());
}
@@ -353,7 +353,7 @@
/**
* Tests the build information is discernable.
*/
- @Test
+ @Test(enabled = false)
public void testGetBuildInformation1() throws ApplicationException {
assertNotNull(installation.getBuildInformation(true));
assertNotNull(installation.getBuildInformation(false));
@@ -362,7 +362,7 @@
/**
* Test string representation is possible.
*/
- @Test
+ @Test(enabled = false)
public void testToString() {
assertNotNull(installation.toString());
}
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/FileManagerTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/FileManagerTest.java
index 0756c0f..c2abefb 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/FileManagerTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/FileManagerTest.java
@@ -81,7 +81,7 @@
* Tests synchronized.
* @throws Exception if something unexpected
*/
- @Test
+ @Test(enabled = false)
public void testSynchronize() throws Exception {
File s = new File(fmWorkspace, "s");
File t = new File(fmWorkspace, "t");
@@ -157,7 +157,7 @@
*
* @throws Exception If the test failed unexpectedly.
*/
- @Test
+ @Test(enabled = false)
public void testRenameFileExistentTarget() throws Exception {
File src = File.createTempFile("src", null);
File target = File.createTempFile("target", null);
@@ -178,7 +178,7 @@
*
* @throws Exception If the test failed unexpectedly.
*/
- @Test(groups={"windows"}, expectedExceptions=IOException.class)
+ @Test(enabled = false, groups={"windows"}, expectedExceptions=IOException.class)
public void testRenameFileLockedTarget() throws Exception {
File src = File.createTempFile("src", null);
File target = File.createTempFile("target", null);
@@ -197,7 +197,7 @@
* Tests basic move.
* @throws Exception if something unexpected
*/
- @Test
+ @Test(enabled = false)
public void testMove() throws Exception {
File fromDir = new File(fmWorkspace, "from");
@@ -218,7 +218,7 @@
* Tests basic move with filtering.
* @throws Exception if something unexpected
*/
- @Test
+ @Test(enabled = false)
public void testMove2() throws Exception {
File fromDir = new File(fmWorkspace, "from");
fromDir.mkdir();
@@ -244,7 +244,7 @@
* Tests basic delete.
* @throws Exception if something unexpected
*/
- @Test
+ @Test(enabled = false)
public void testDelete() throws Exception {
File dir = new File(fmWorkspace, "dir");
dir.mkdir();
@@ -263,7 +263,7 @@
* Tests basic delete with filtering.
* @throws Exception if something unexpected
*/
- @Test
+ @Test(enabled = false)
public void testDelete2() throws Exception {
// Create a filter that should reject the operation
@@ -290,7 +290,7 @@
* Test recursive delete.
* @throws Exception if something unexpected
*/
- @Test
+ @Test(enabled = false)
public void testDeleteRecursively() throws Exception {
File dir = new File(fmWorkspace, "dir");
createSourceFiles(dir, "abc");
@@ -303,7 +303,7 @@
* Test recursive delete with filtering.
* @throws Exception if something unexpected
*/
- @Test
+ @Test(enabled = false)
public void testDeleteRecursively1() throws Exception {
File dir = new File(fmWorkspace, "dir");
createSourceFiles(dir, "abc");
@@ -344,7 +344,7 @@
* Test basic copy.
* @throws Exception if something unexpected
*/
- @Test
+ @Test(enabled = false)
public void testCopy() throws Exception {
File file = new File(fmWorkspace, "file");
writeContents(file, "abc");
@@ -360,7 +360,7 @@
* Make sure things fail if target is a file and not a directory.
* @throws Exception if something unexpected
*/
- @Test(expectedExceptions = ApplicationException.class)
+ @Test(enabled = false, expectedExceptions = ApplicationException.class)
public void testCopy1() throws Exception {
File file = new File(fmWorkspace, "file");
writeContents(file, "abc");
@@ -373,7 +373,7 @@
* Make sure things fail if target is a file and not a directory.
* @throws Exception if something unexpected
*/
- @Test
+ @Test(enabled = false)
public void testCopy2() throws Exception {
File file = new File(fmWorkspace, "file");
String NEW_CHILD_CONTENT = "new";
@@ -399,7 +399,7 @@
* Test copy recursively.
* @throws Exception if something unexpected
*/
- @Test
+ @Test(enabled = false)
public void testCopyRecursively() throws Exception {
File source = new File(fmWorkspace, "source");
createSourceFiles(source, "abc");
@@ -417,7 +417,7 @@
* Tests copy recursively with filtering.
* @throws Exception if something unexpected
*/
- @Test
+ @Test(enabled = false)
public void testCopyRecursively1() throws Exception {
// Test that a filter can stop a delete altogether
FileFilter rejectOpFilter = new FileFilter() {
@@ -463,7 +463,7 @@
* Tests copy recursively with filtering and overwrite.
* @throws Exception if something unexpected
*/
- @Test
+ @Test(enabled = false)
public void testCopyRecursively2() throws Exception {
File source = new File(fmWorkspace, "source");
String FILES_TO_COPY = "to copy";
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/ServerControllerTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/ServerControllerTest.java
index 7547757..8a9b8db 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/ServerControllerTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/ServerControllerTest.java
@@ -52,7 +52,7 @@
* Tests ability to stop the server.
* @throws ApplicationException
*/
- @Test
+ @Test(enabled = false)
public void testStopServer() throws ApplicationException {
if (!status.isServerRunning()) {
controller.startServer();
@@ -66,7 +66,7 @@
* Tests ability to start the server.
* @throws ApplicationException
*/
- @Test
+ @Test(enabled = false)
public void testStartServer() throws ApplicationException {
if (status.isServerRunning()) {
controller.stopServer();
--
Gitblit v1.10.0