From 4bab0e3cc4c42998c9ab7ac8fe17880e041848bb Mon Sep 17 00:00:00 2001
From: el_kaboing <el_kaboing@localhost>
Date: Wed, 20 Sep 2006 21:34:26 +0000
Subject: [PATCH] Some initial blocks of comments to parse out Test Specifications for the Integration Tests from the test code.
---
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreSearchSizeLimitTests.java | 23 +++++
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobModrdnTests.java | 10 ++
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreVersionReportTests.java | 10 ++
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreEntryCacheTests.java | 23 +++++
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobModTests.java | 34 ++++++++
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobStartupTests.java | 22 +++++
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreTFFiltersTests.java | 10 ++
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreSearchTimeLimitTests.java | 10 ++
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobAddTests.java | 34 ++++++++
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobDeleteTests.java | 10 ++
opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreStartupTests.java | 34 ++++++++
11 files changed, 220 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobAddTests.java b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobAddTests.java
index 58a70a5..2f88167 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobAddTests.java
+++ b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobAddTests.java
@@ -31,12 +31,34 @@
import org.opends.server.tools.*;
import java.io.*;
+/*
+ Place suite-specific test information here.
+ #@TestSuiteName Bob Add Tests
+ #@TestSuitePurpose Test the add functionality for OpenDS
+ #@TestSuiteID Add Tests
+ #@TestSuiteGroup Bob
+ #@TestGroup Bob/BobAddTests
+ #@TestScript BobAddTests.java
+ #@TestHTMLLink blahblah
+*/
/**
* This class contains the TestNG tests for the Bob adds.
*/
@Test
public class BobAddTests extends BobTests
{
+/*
+ Place test-specific test information here.
+ The tag, TestMarker, be the same as the marker, TestSuiteName.
+ #@TestMarker Bob Add Tests
+ #@TestName Bob Add 1
+ #@TestID BobAdd1
+ #@TestPreamble
+ #@TestSteps Client calls static method LDAPModify.mainModify()
+ with the filename to the appropriate ldif file.
+ #@TestPostamble
+ #@TestResult Success if OpenDS returns 0
+*/
/**
* Add a small jpeg photo to an existing entry.
*
@@ -67,6 +89,18 @@
compareExitCode(retCode, expCode);
}
+/*
+ Place test-specific test information here.
+ The tag, TestMarker, be the same as the marker, TestSuiteName.
+ #@TestMarker Bob Add Tests
+ #@TestName Bob Add 2
+ #@TestID BobAdd2
+ #@TestPreamble
+ #@TestSteps Client calls static method LDAPModify.mainModify()
+ with the filename to the appropriate ldif file.
+ #@TestPostamble
+ #@TestResult Success if OpenDS returns 0
+*/
/**
* Add a large jpeg photo to an existing entry.
*
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobDeleteTests.java b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobDeleteTests.java
index 13536b8..2f952bd 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobDeleteTests.java
+++ b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobDeleteTests.java
@@ -31,6 +31,16 @@
import org.opends.server.tools.*;
import java.io.*;
+/*
+ Place suite-specific test information here.
+ #@TestSuiteName Bob Delete Tests
+ #@TestSuitePurpose Test the delete functionality for OpenDS
+ #@TestSuiteID Delete Tests
+ #@TestSuiteGroup Bob
+ #@TestGroup Bob/BobDeleteTests
+ #@TestScript BobDeleteTests.java
+ #@TestHTMLLink blahblah
+*/
/**
* This class contains the TestNG tests for the Bob deletes.
*/
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobModTests.java b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobModTests.java
index f7de3ac..a19f1fd 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobModTests.java
+++ b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobModTests.java
@@ -31,12 +31,34 @@
import org.opends.server.tools.*;
import java.io.*;
+/*
+ Place suite-specific test information here.
+ #@TestSuiteName Bob Modify Tests
+ #@TestSuitePurpose Test the modify functionality for OpenDS
+ #@TestSuiteID Modify Tests
+ #@TestSuiteGroup Bob
+ #@TestGroup Bob/BobModifyTests
+ #@TestScript BobModTests.java
+ #@TestHTMLLink blahblah
+*/
/**
* This class contains the TestNG tests for the Bob modifies.
*/
@Test
public class BobModTests extends BobTests
{
+/*
+ Place test-specific test information here.
+ The tag, TestMarker, be the same as the marker, TestSuiteName.
+ #@TestMarker Bob Modify Tests
+ #@TestName Bob Modify 1
+ #@TestID BobModify1
+ #@TestPreamble
+ #@TestSteps Client calls static method LDAPModify.mainModify()
+ with the filename to the appropriate ldif file.
+ #@TestPostamble
+ #@TestResult Success if OpenDS returns 0
+*/
/**
* Replace a small jpeg photo in an existing entry.
*
@@ -67,6 +89,18 @@
compareExitCode(retCode, expCode);
}
+/*
+ Place test-specific test information here.
+ The tag, TestMarker, be the same as the marker, TestSuiteName.
+ #@TestMarker Bob Modify Tests
+ #@TestName Bob Modify 2
+ #@TestID BobModify2
+ #@TestPreamble
+ #@TestSteps Client calls static method LDAPModify.mainModify()
+ with the filename to the appropriate ldif file.
+ #@TestPostamble
+ #@TestResult Success if OpenDS returns 0
+*/
/**
* Replace a large jpeg photo in an existing entry.
*
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobModrdnTests.java b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobModrdnTests.java
index 26f2c70..d565f7f 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobModrdnTests.java
+++ b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobModrdnTests.java
@@ -31,6 +31,16 @@
import org.opends.server.tools.*;
import java.io.*;
+/*
+ Place suite-specific test information here.
+ #@TestSuiteName Bob Modify RDN Tests
+ #@TestSuitePurpose Test the modify rdn functionality for OpenDS
+ #@TestSuiteID Modify RDN Tests
+ #@TestSuiteGroup Bob
+ #@TestGroup Bob/BobModifyRDNTests
+ #@TestScript BobModrdnTests.java
+ #@TestHTMLLink blahblah
+*/
/**
* This class contains the TestNG tests for the Bob modify rdns.
*/
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobStartupTests.java b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobStartupTests.java
index 770aae4..577c85f 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobStartupTests.java
+++ b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/bob/BobStartupTests.java
@@ -31,12 +31,34 @@
import org.opends.server.tools.*;
import java.io.*;
+/*
+ Place suite-specific test information here.
+ #@TestSuiteName Bob Setup
+ #@TestSuitePurpose Setup methods for the Bob test suites
+ #@TestSuiteID Setup
+ #@TestSuiteGroup Bob
+ #@TestGroup Bob/Setup
+ #@TestScript BobStartup.java
+ #@TestHTMLLink blahblah
+*/
/**
* This class contains the TestNG tests for the Bob startup.
*/
@Test
public class BobStartupTests extends BobTests
{
+/*
+ Place test-specific test information here.
+ The tag, TestMarker, be the same as the marker, TestSuiteName.
+ #@TestMarker Bob Setup
+ #@TestName Bob Setup
+ #@TestID BobStartup1
+ #@TestPreamble
+ #@TestSteps Client calls static method LDAPModify.mainModify()
+ with the filename to the appropriate ldif file.
+ #@TestPostamble
+ #@TestResult Success if OpenDS returns 0
+*/
/**
* Add entries that are required for the Bob Tests.
*
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreEntryCacheTests.java b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreEntryCacheTests.java
index 13cb609..22be1cf 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreEntryCacheTests.java
+++ b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreEntryCacheTests.java
@@ -31,12 +31,35 @@
import org.opends.server.tools.*;
import java.io.*;
+/*
+ Place suite-specific test information here.
+ #@TestSuiteName Core Entry Cache
+ #@TestSuitePurpose To check that the entry cache is managed correctly.
+ #@TestSuiteID Entry Cache
+ #@TestSuiteGroup Core
+ #@TestGroup Core/EntryCache
+ #@TestScript CoreEntryCacheTests.java
+ #@TestHTMLLink blahblah
+*/
/**
* This class contains the TestNG tests for the Core version reporting tests.
*/
@Test
public class CoreEntryCacheTests extends CoreTests
{
+/*
+ Place test-specific test information here.
+ The tag, TestMarker, be the same as the marker, TestSuiteName.
+ #@TestMarker Core Entry Cache
+ #@TestName Entry Cache 1
+ #@TestID CoreEntryCache1
+ #@TestPreamble
+ #@TestSteps Client calls static method LDAPSearch.mainSearch()
+ for entry, cn=version,cn=monitor, with the single
+ pipe filter, |.
+ #@TestPostamble
+ #@TestResult Success if OpenDS returns 0
+*/
/**
* Check the response of OpenDS when an ldap search request is conducted
* with a single pipe character ("|") for an existing entry.
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreSearchSizeLimitTests.java b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreSearchSizeLimitTests.java
index 883c61d..1b5e202 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreSearchSizeLimitTests.java
+++ b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreSearchSizeLimitTests.java
@@ -31,12 +31,35 @@
import org.opends.server.tools.*;
import java.io.*;
+/*
+ Place suite-specific test information here.
+ #@TestSuiteName Search Size Limit
+ #@TestSuitePurpose To check that the search size limit is enforced.
+ #@TestSuiteID Search Size Limit
+ #@TestSuiteGroup Core
+ #@TestGroup Core/SearchSizeLimit
+ #@TestScript CoreSearchSizeLimitTests.java
+ #@TestHTMLLink blahblah
+*/
/**
* This class contains the TestNG tests for the Core functional tests for search size limits.
*/
@Test
public class CoreSearchSizeLimitTests extends CoreTests
{
+/*
+ Place test-specific test information here.
+ The tag, TestMarker, be the same as the marker, TestSuiteName.
+ #@TestMarker Search Size Limit
+ #@TestName Search Size Limit 1
+ #@TestID CoreSearchSizeLimit1
+ #@TestPreamble
+ #@TestSteps Client calls static method LDAPSearch.mainSearch()
+ with a search size limit defined in the command
+ line and the search size is exceeded.
+ #@TestPostamble
+ #@TestResult Success if OpenDS returns 4
+*/
/**
* Check the response of OpenDS when an ldap search request is conducted
* with a search size limit defined in the command line and the search
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreSearchTimeLimitTests.java b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreSearchTimeLimitTests.java
index e59c179..a6c7007 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreSearchTimeLimitTests.java
+++ b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreSearchTimeLimitTests.java
@@ -31,6 +31,16 @@
import org.opends.server.tools.*;
import java.io.*;
+/*
+ Place suite-specific test information here.
+ #@TestSuiteName Search Time Limit
+ #@TestSuitePurpose To check that the search time limit is enforced.
+ #@TestSuiteID Search Time Limit
+ #@TestSuiteGroup Core
+ #@TestGroup Core/SearchTimeLimit
+ #@TestScript CoreSearchTimeLimitTests.java
+ #@TestHTMLLink blahblah
+*/
/**
* This class contains the TestNG tests for the Core functional tests for search size limits.
*/
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreStartupTests.java b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreStartupTests.java
index 89b52c7..74428ec 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreStartupTests.java
+++ b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreStartupTests.java
@@ -30,12 +30,34 @@
import org.testng.annotations.*;
import org.opends.server.tools.*;
+/*
+ Place suite-specific test information here.
+ #@TestSuiteName Core Setup
+ #@TestSuitePurpose Setup methods for core server test suites
+ #@TestSuiteID Setup
+ #@TestSuiteGroup Core
+ #@TestGroup Core/Setup
+ #@TestScript CoreStartupTests.java
+ #@TestHTMLLink blahblah
+*/
/**
* This class contains the TestNG tests for the Core startup.
*/
@Test
public class CoreStartupTests extends CoreTests
{
+/*
+ Place test-specific test information here.
+ The tag, TestMarker, be the same as the marker, TestSuiteName.
+ #@TestMarker Core Setup
+ #@TestName Core Setup 1
+ #@TestID CoreStartup1
+ #@TestPreamble
+ #@TestSteps Client calls static method LDAPModify.mainModify()
+ with the filename to the appropriate ldif file.
+ #@TestPostamble
+ #@TestResult Success if OpenDS returns 0
+*/
/**
* Add entries that are required for the Core Tests.
*
@@ -66,6 +88,18 @@
compareExitCode(retCode, expCode);
}
+/*
+ Place test-specific test information here.
+ The tag, TestMarker, be the same as the marker, TestSuiteName.
+ #@TestMarker Core Setup
+ #@TestName Core Setup 2
+ #@TestID CoreStartup2
+ #@TestPreamble
+ #@TestSteps Client calls static method LDAPModify.mainModify()
+ with the filename to the appropriate ldif file.
+ #@TestPostamble
+ #@TestResult Success if OpenDS returns 0
+*/
/**
* To add 1000 extra entries that are required for some of the Core Tests.
*
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreTFFiltersTests.java b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreTFFiltersTests.java
index caf0b00..0662c5a 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreTFFiltersTests.java
+++ b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreTFFiltersTests.java
@@ -31,6 +31,16 @@
import org.opends.server.tools.*;
import java.io.*;
+/*
+ Place suite-specific test information here.
+ #@TestSuiteName Core True/False Filters
+ #@TestSuitePurpose To check that true/false filters are correctly handled
+ #@TestSuiteID True/False Filters
+ #@TestSuiteGroup Core
+ #@TestGroup Core/TFFFilters
+ #@TestScript CoreTFFFiltersTests.java
+ #@TestHTMLLink blahblah
+*/
/**
* This class contains the TestNG tests for the Core true/false filter tests.
*/
diff --git a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreVersionReportTests.java b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreVersionReportTests.java
index adfa501..1a18202 100644
--- a/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreVersionReportTests.java
+++ b/opendj-sdk/opends/tests/integration-tests-testng/src/server/org/opends/server/integration/core/CoreVersionReportTests.java
@@ -31,6 +31,16 @@
import org.opends.server.tools.*;
import java.io.*;
+/*
+ Place suite-specific test information here.
+ #@TestSuiteName Server Version Reporting
+ #@TestSuitePurpose To check that the server version reporting is correct
+ #@TestSuiteID Server Version Reporting
+ #@TestSuiteGroup Core
+ #@TestGroup Core/VersionReport
+ #@TestScript CoreVersionReportTests.java
+ #@TestHTMLLink blahblah
+*/
/**
* This class contains the TestNG tests for the Core version reporting tests.
*/
--
Gitblit v1.10.0