/*
|
* CDDL HEADER START
|
*
|
* The contents of this file are subject to the terms of the
|
* Common Development and Distribution License, Version 1.0 only
|
* (the "License"). You may not use this file except in compliance
|
* with the License.
|
*
|
* You can obtain a copy of the license at
|
* trunk/opends/resource/legal-notices/OpenDS.LICENSE
|
* or https://OpenDS.dev.java.net/OpenDS.LICENSE.
|
* See the License for the specific language governing permissions
|
* and limitations under the License.
|
*
|
* When distributing Covered Code, include this CDDL HEADER in each
|
* file and include the License file at
|
* trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
|
* add the following below this CDDL HEADER, with the fields enclosed
|
* by brackets "[]" replaced with your own identifying * information:
|
* Portions Copyright [yyyy] [name of copyright owner]
|
*
|
* CDDL HEADER END
|
*
|
*
|
* Portions Copyright 2006 Sun Microsystems, Inc.
|
*/
|
package org.opends.server.integration.bob;
|
|
import static org.testng.Assert.*;
|
import org.testng.annotations.*;
|
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.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobStartupTests.testBobStartup1" })
|
public void testBobAdd1(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 1");
|
String datafile = integration_test_home + "/bob/data/add/bin_a1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest1.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
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.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd1" })
|
public void testBobAdd2(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 2");
|
String datafile = integration_test_home + "/bob/data/add/bin_a2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest2.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a new entry as objectclass=inetorgperson that includes a small jpeg photo.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd2" })
|
public void testBobAdd3(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 3");
|
String datafile = integration_test_home + "/bob/data/add/bin_b1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest3.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a new entry as objectclass=inetorgperson that includes a large jpeg photo.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd3" })
|
public void testBobAdd4(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 4");
|
String datafile = integration_test_home + "/bob/data/add/bin_b2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest4.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a small jpeg photo to each of five existing entries.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd4" })
|
public void testBobAdd5(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 5");
|
String datafile = integration_test_home + "/bob/data/add/bin_c1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest5.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 1;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a large jpeg photo to each of five existing entries.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd5" })
|
public void testBobAdd6(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 6");
|
String datafile = integration_test_home + "/bob/data/add/bin_c2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest6.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add five new entries as objectclass=inetorgperson each of which
|
* includes a small jpeg photo.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd6" })
|
public void testBobAdd7(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 7");
|
String datafile = integration_test_home + "/bob/data/add/bin_d1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest7.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add five new entries as objectclass=inetorgperson each of which
|
* includes a large jpeg photo.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd7" })
|
public void testBobAdd8(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 8");
|
String datafile = integration_test_home + "/bob/data/add/bin_d2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest8.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a short labeleduri to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd8" })
|
public void testBobAdd9(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 9");
|
String datafile = integration_test_home + "/bob/data/add/ces_a1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest9.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a long labeleduri to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd9" })
|
public void testBobAdd10(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 10");
|
String datafile = integration_test_home + "/bob/data/add/ces_a2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest10.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a new entry as objectclass=inetorgperson that includes a short labeleduri.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd10" })
|
public void testBobAdd11(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 11");
|
String datafile = integration_test_home + "/bob/data/add/ces_b1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest11.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a new entry as objectclass=inetorgperson that includes a long labeleduri.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd11" })
|
public void testBobAdd12(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 12");
|
String datafile = integration_test_home + "/bob/data/add/ces_b2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest12.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a short labeleduri to each of five existing entries.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd12" })
|
public void testBobAdd13(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 13");
|
String datafile = integration_test_home + "/bob/data/add/ces_c1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest13.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a long labeleduri to each of five existing entries.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd13" })
|
public void testBobAdd14(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 14");
|
String datafile = integration_test_home + "/bob/data/add/ces_c2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest14.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add five new entries as objectclass=inetorgperson each of which
|
* includes a short labeleduri.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd14" })
|
public void testBobAdd15(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 15");
|
String datafile = integration_test_home + "/bob/data/add/ces_d1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest15.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add five new entries as objectclass=inetorgperson each of which
|
* includes a long labeleduri.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd15" })
|
public void testBobAdd16(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 16");
|
String datafile = integration_test_home + "/bob/data/add/ces_d2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest16.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a short description to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd16" })
|
public void testBobAdd17(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 17");
|
String datafile = integration_test_home + "/bob/data/add/cis_a1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest17.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a long description to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd17" })
|
public void testBobAdd18(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 18");
|
String datafile = integration_test_home + "/bob/data/add/cis_a2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest18.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a new entry as objectclass=inetorgperson that includes a short description.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd18" })
|
public void testBobAdd19(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 19");
|
String datafile = integration_test_home + "/bob/data/add/cis_b1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest19.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a new entry as objectclass=inetorgperson that includes a long description.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd19" })
|
public void testBobAdd20(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 20");
|
String datafile = integration_test_home + "/bob/data/add/cis_b2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest20.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a short description to each of five existing entries.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd20" })
|
public void testBobAdd21(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 21");
|
String datafile = integration_test_home + "/bob/data/add/cis_c1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest21.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a long description to each of five existing entries.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd21" })
|
public void testBobAdd22(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 22");
|
String datafile = integration_test_home + "/bob/data/add/cis_c2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest22.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add five new entries as objectclass=inetorgperson each of which
|
* includes a short description.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd22" })
|
public void testBobAdd23(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 23");
|
String datafile = integration_test_home + "/bob/data/add/cis_d1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest23.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add five new entries as objectclass=inetorgperson each of which
|
* includes a long description.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd23" })
|
public void testBobAdd24(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 24");
|
String datafile = integration_test_home + "/bob/data/add/cis_d2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest24.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a short seeAlso to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd24" })
|
public void testBobAdd25(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 25");
|
String datafile = integration_test_home + "/bob/data/add/dn_a1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest25.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a long seeAlso to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd25" })
|
public void testBobAdd26(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 26");
|
String datafile = integration_test_home + "/bob/data/add/dn_a2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest26.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a new entry as objectclass=inetorgperson that includes a short seeAlso.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd26" })
|
public void testBobAdd27(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 27");
|
String datafile = integration_test_home + "/bob/data/add/dn_b1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest27.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a new entry as objectclass=inetorgperson that includes a long seeAlso.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd27" })
|
public void testBobAdd28(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 28");
|
String datafile = integration_test_home + "/bob/data/add/dn_b2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest28.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a short seeAlso to each of five existing entries.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd28" })
|
public void testBobAdd29(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 29");
|
String datafile = integration_test_home + "/bob/data/add/dn_c1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest29.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a long seeAlso to each of five existing entries.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd29" })
|
public void testBobAdd30(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 30");
|
String datafile = integration_test_home + "/bob/data/add/dn_c2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest30.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add five new entries as objectclass=inetorgperson each of which
|
* includes a short seeAlso.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd30" })
|
public void testBobAdd31(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 31");
|
String datafile = integration_test_home + "/bob/data/add/dn_d1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest31.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add five new entries as objectclass=inetorgperson each of which
|
* includes a long seeAlso.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd31" })
|
public void testBobAdd32(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 32");
|
String datafile = integration_test_home + "/bob/data/add/dn_d2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest32.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a short pager number to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd32" })
|
public void testBobAdd33(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 33");
|
String datafile = integration_test_home + "/bob/data/add/tel_a1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest33.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a long pager number to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd33" })
|
public void testBobAdd34(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 34");
|
String datafile = integration_test_home + "/bob/data/add/tel_a2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest34.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a new entry as objectclass=inetorgperson that includes a short pager number.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd34" })
|
public void testBobAdd35(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 35");
|
String datafile = integration_test_home + "/bob/data/add/tel_b1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest35.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a new entry as objectclass=inetorgperson that includes a long pager number.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd35" })
|
public void testBobAdd36(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 36");
|
String datafile = integration_test_home + "/bob/data/add/tel_b2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest36.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a short pager number to each of five existing entries.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd36" })
|
public void testBobAdd37(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 37");
|
String datafile = integration_test_home + "/bob/data/add/tel_c1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest37.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a long pager number to each of five existing entries.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd37" })
|
public void testBobAdd38(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 38");
|
String datafile = integration_test_home + "/bob/data/add/tel_c2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest38.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add five new entries as objectclass=inetorgperson each of which
|
* includes a short pager number.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd38" })
|
public void testBobAdd39(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 39");
|
String datafile = integration_test_home + "/bob/data/add/tel_d1_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest39.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add five new entries as objectclass=inetorgperson each of which
|
* includes a long pager number.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd39" })
|
public void testBobAdd40(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 40");
|
String datafile = integration_test_home + "/bob/data/add/tel_d2_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest40.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a jpeg photo attribute with no value to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd40" })
|
public void testBobAdd41(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 41");
|
String datafile = integration_test_home + "/bob/data/add/bin_a3_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest41.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a jpeg photo attribute with an ascii value to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd41" })
|
public void testBobAdd42(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 42");
|
String datafile = integration_test_home + "/bob/data/add/bin_a4_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest42.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 0;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a duplicate entry as objectclass=inetorgperson that includes a jpeg
|
* photo with no attribute.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd42" })
|
public void testBobAdd43(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 43");
|
String datafile = integration_test_home + "/bob/data/add/bin_b3_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest43.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 68;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a duplicate entry as objectclass=inetorgperson that includes a jpeg
|
* photo with an ascii value.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd43" })
|
public void testBobAdd44(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 44");
|
String datafile = integration_test_home + "/bob/data/add/bin_b4_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest44.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 68;
|
|
compareExitCode(retCode, expCode);
|
}
|
/*
|
The following two methods result in binary data being echoed to stand error or standard out.
|
This behavior is not a bug, but is also not desired. These tests are commented out for now.
|
*/
|
/*
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd44" })
|
public void testBobAdd45(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 45");
|
String datafile = integration_test_home + "/bob/data/add/bin_c3_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest45.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
retCode = LDAPModify.mainModify(bob_args);
|
int expCode = 20;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd45" })
|
public void testBobAdd46(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 46");
|
String datafile = integration_test_home + "/bob/data/add/bin_c4_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest46.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
retCode = LDAPModify.mainModify(bob_args);
|
int expCode = 20;
|
|
compareExitCode(retCode, expCode);
|
}
|
*/
|
/**
|
* Add a set of entries where the first entry is a duplicate to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd44" })
|
public void testBobAdd47(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 47");
|
String datafile = integration_test_home + "/bob/data/add/bin_d3_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest47.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 68;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a set of entries where the third entry is a duplicate to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd47" })
|
public void testBobAdd48(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 48");
|
String datafile = integration_test_home + "/bob/data/add/bin_d4_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest48.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 68;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a description with no value to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd48" })
|
public void testBobAdd49(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 49");
|
String datafile = integration_test_home + "/bob/data/add/cis_a3_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest49.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 21;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a description with a binary value to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd49" })
|
public void testBobAdd50(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 50");
|
String datafile = integration_test_home + "/bob/data/add/cis_a4_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest50.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 1;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a new entry with a description that has no value.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd50" })
|
public void testBobAdd51(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 51");
|
String datafile = integration_test_home + "/bob/data/add/cis_b3_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest51.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 68;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a new entry with a description that has a binary value.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd51" })
|
public void testBobAdd52(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 52");
|
String datafile = integration_test_home + "/bob/data/add/cis_b4_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest52.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 1;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a duplicate desciption to an existing entry.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd52" })
|
public void testBobAdd53(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 53");
|
String datafile = integration_test_home + "/bob/data/add/cis_c3_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest53.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 20;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a set of entries where the fourth entry has a binary value for the description.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd53" })
|
public void testBobAdd54(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 54");
|
String datafile = integration_test_home + "/bob/data/add/cis_c4_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest54.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 1;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a set of duplicate entries where the descriptions have no value.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd54" })
|
public void testBobAdd55(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 55");
|
String datafile = integration_test_home + "/bob/data/add/cis_d3_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest55.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 68;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
/**
|
* Add a set of duplicate entries where the descriptions have very long values.
|
*
|
* @param hostname The hostname for the server where OpenDS
|
* is installed.
|
* @param port The port number for OpenDS.
|
* @param bindDN The bind DN.
|
* @param bindPW The password for the bind DN.
|
* @param integration_test_home The home directory for the Integration
|
* Test Suites.
|
* @param logDir The directory for the log files that are
|
* generated during the Integration Tests.
|
*/
|
@Parameters({ "hostname", "port", "bindDN", "bindPW", "integration_test_home", "logDir" })
|
@Test(alwaysRun=true, dependsOnMethods = { "org.opends.server.integration.bob.BobAddTests.testBobAdd55" })
|
public void testBobAdd56(String hostname, String port, String bindDN, String bindPW, String integration_test_home, String logDir) throws Exception
|
{
|
System.out.println("*********************************************");
|
System.out.println("Bob Add test 56");
|
String datafile = integration_test_home + "/bob/data/add/cis_d4_in.ldif";
|
String bob_args[] = {"-a", "-h", hostname, "-p", port, "-D", bindDN, "-w", bindPW, "-f", datafile};
|
|
ds_output.redirectOutput(logDir, "BobAddTest56.txt");
|
int retCode = LDAPModify.mainModify(bob_args);
|
ds_output.resetOutput();
|
int expCode = 68;
|
|
compareExitCode(retCode, expCode);
|
}
|
|
}
|