From c4c23b471528c582b8c4133a834e46c539f234c6 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Fri, 06 Jul 2007 10:12:08 +0000
Subject: [PATCH] fix for isue 1632 : schema check should not be done for replicated operation.
---
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java
index bee8e73..a4201ca 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java
@@ -1283,6 +1283,20 @@
if (found == false)
fail("The modification has not been correctly replayed.");
+
+ // Test that replication is able to add attribute that do
+ // not exist in the schema.
+ List<Modification> invalidMods = generatemods("badattribute", "value");
+ modMsg = new ModifyMsg(gen.newChangeNumber(), personWithUUIDEntry.getDN(),
+ invalidMods, user1entryUUID);
+ if (assured)
+ modMsg.setAssured();
+ broker.publish(modMsg);
+
+ found = checkEntryHasAttribute(
+ personWithUUIDEntry.getDN(), "badattribute", "value", 10000, true);
+ if (found == false)
+ fail("The modification has not been correctly replayed.");
/*
* Test the Reception of Modify Dn Msg
--
Gitblit v1.10.0