#76 RFE - add "testing" wrapper functions
Opened 6 years ago by mreynolds. Modified 6 years ago

When using lib389 for CI testing timing issues can arise for certain operations.

I'm proposing new functions like:

  • ci_modify()
  • ci_add()
  • ci_delete()
  • ci_modrdn()
  • ci_bind()

They should call the normal python-ldap functions, but add a sleep after the update is complete. This will resolve the issues we see when updating cn=config, password policy, etc.

We also need to address replication somehow. I'm not sure if we need new functions for this or just new designs in the CI tests. Often we have to wait for replication to take place before checking results. So we either build it into lib389 using wrappers:

  • ci_repl_modify(mod_args, consumer_info)
  • ci_repl_add(...)
  • ci_repl_delete(...)
  • ci_repl_modrdn(...)

These would just do the update, and call testReplication() or something similar.

Or, the individual tests need to do a "testReplication()" call before checking results.


Login to comment on this ticket.

Metadata