#6452 Mismatch in expected status message in wait_for_replication
Closed: fixed by rcritten. Opened by mkubik.

Since 389-ds-base-1.3.5.14 the replication status message has changed
from ' ' to 'Error () '.
E.g. from "%d Replica acquired successfully..." to ""Error (0) Replica acquired successfully:..."

The wait_for_replication task in ipatests.test_integration.tasks does not reflect that change and as a result, the output (debug) log is reporting an error in case there is none.

The expected format should be modified to the new variant or better, support both formats of the status message.

Error states (status code != 0) should be properly reported.

Example output:

[ipa.ipatests.test_integration.tasks] Replication agreements: 
dn: cn=meTovm-058-223.abc.idm.lab.eng.brq.redhat.com,cn=replica,cn=dc\=dom-0
 58-044\,dc\=abc\,dc\=idm\,dc\=lab\,dc\=eng\,dc\=brq\,dc\=redhat\,dc\=com,cn
 =mapping tree,cn=config
nsds5replicalastupdatestatus: Error (0) Replica acquired successfully: Incre
 mental update succeeded
nsds5replicaupdateinprogress: FALSE
dn: cn=caTovm-058-223.abc.idm.lab.eng.brq.redhat.com,cn=replica,cn=o\=ipaca,
 cn=mapping tree,cn=config
nsds5replicalastupdatestatus: Error (0) Replica acquired successfully: Incre
 mental update succeeded
nsds5replicaupdateinprogress: FALSE
[ipa.ipatests.test_integration.tasks] Replication error

The issue doesn't have an effect on the actual test run, only reporting incorrect status.

The replicalastupdatestatus was changed in 1.3.5.14 (https://fedorahosted.org/389/ticket/48957).

Metadata Update from @mkubik:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.5 backlog

Handling for the new 389-ds behavior was first addressed in ad1a5551d5ec716dc745f39e82d38cc634229cb0 and subsequently in 8182ebc6c3ca636276fc277186cfbff4ea9cf5c6

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata