| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2009-2010 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS. |
| | | ! --> |
| | | <stax> |
| | | |
| | |
| | | <call function="'ImportLdifWithScript'"> |
| | | { 'location' : masterHost, |
| | | 'dsPath' : masterPath, |
| | | 'dsBackEnd' : DIRECTORY_INSTANCE_BE, |
| | | 'dsLdifFile' : '%s/replication/Example.ldif' \ |
| | | 'backEnd' : DIRECTORY_INSTANCE_BE, |
| | | 'ldifFile' : '%s/replication/Example.ldif' \ |
| | | % masterDataDir |
| | | } |
| | | </call> |
| | |
| | | </sequence> |
| | | </testcase> |
| | | |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker Replication External Changelog Tests |
| | | #@TestName Replication: External Changelog: Two suffixes (both |
| | |
| | | indexvar="indx"> |
| | | <sequence> |
| | | <script> |
| | | if ecl_mode == 'opends': |
| | | # Issue 4502: ECL: error 53 when searching with cookie older |
| | | # than updates on several server |
| | | myKnownIssue = '4502' |
| | | else: |
| | | myKnownIssue = None |
| | | |
| | | if globalSplitServers: |
| | | replServer = _topologyReplServerList[indx] |
| | | else: |
| | |
| | | indexvar="indx"> |
| | | <sequence> |
| | | <script> |
| | | # Issue 4502: ECL: error 53 when searching with cookie older |
| | | # than updates on several server |
| | | myKnownIssue = '4502' |
| | | |
| | | if globalSplitServers: |
| | | replServer = _topologyReplServerList[indx] |
| | | else: |
| | |
| | | } |
| | | </call> |
| | | <script> |
| | | def getnewcookiefromerror(string): |
| | | |
| | | import re |
| | | |
| | | pattern = re.compile(': <(.*:);>') |
| | | match = re.search(pattern,string) |
| | | |
| | | return match.group(1) |
| | | |
| | | searchStringRC = STAXResult[0] |
| | | newCookie = None |
| | | |
| | | if searchStringRC == 0: |
| | | # Retrieve the suggested cookie value |
| | | totem = 'Possible cookie:' |
| | | lenTotem = len(totem) + 2 |
| | | indexTotem = searchResult.index(totem) |
| | | newCookie = searchResult[indexTotem + lenTotem:] |
| | | indexEnd = newCookie.index('>') |
| | | newCookie = newCookie[:indexEnd] |
| | | newCookie = getnewcookiefromerror(searchResult) |
| | | nextIndex = newCookie |
| | | </script> |
| | | <message> |
| | |
| | | indexvar="indx"> |
| | | <sequence> |
| | | <script> |
| | | if ecl_mode == 'opends': |
| | | # Issue 4502: ECL: error 53 when searching with cookie older |
| | | # than updates on several server |
| | | myKnownIssue = '4502' |
| | | else: |
| | | myKnownIssue = None |
| | | |
| | | if globalSplitServers: |
| | | replServer = _topologyReplServerList[indx] |
| | | else: |
| | |
| | | indexvar="indx"> |
| | | <sequence> |
| | | <script> |
| | | if ecl_mode == 'opends': |
| | | # Issue 4502: ECL: error 53 when searching with cookie older |
| | | # than updates on several server |
| | | myKnownIssue = '4502' |
| | | else: |
| | | myKnownIssue = None |
| | | |
| | | if globalSplitServers: |
| | | replServer = _topologyReplServerList[indx] |
| | | else: |
| | |
| | | indexvar="indx"> |
| | | <sequence> |
| | | <script> |
| | | if ecl_mode == 'opends': |
| | | # Issue 4502: ECL: error 53 when searching with cookie older |
| | | # than updates on several server |
| | | myKnownIssue = '4502' |
| | | else: |
| | | myKnownIssue = None |
| | | |
| | | if globalSplitServers: |
| | | replServer = _topologyReplServerList[indx] |
| | | else: |