Skip to content

Auth, exceptions, virtualized test suite

Pre-release
Pre-release
Compare
Choose a tag to compare
@bjori bjori released this 22 Dec 21:45

This release adds support for all-but-kerberos authentication mechanisms.

It also contains improved exception handling, by throwing more usefully named exceptions (eg MongoDB\DuplicateKeyException, MongoDB\ConnectionException, ....).

A lot of work has gone into the test suite too.
It is now fully virtualized, so you don't have to risk your localhost/production environment.
In the future this environment will also be the base for most examples provided.

To spin up the test environment type

$ vagrant up ldap mo
$ make test-bootstrap

Which will result in server mongod servers being created:

Standalone server running on: mongodb://192.168.112.10:2000
Standalone SSL server running on: mongodb://192.168.112.10:2100
Standalone Auth server running on: mongodb://192.168.112.10:2200
Standalone X509 Auth server running on: mongodb://192.168.112.10:2300
Standalone PLAIN Auth server running on: mongodb://192.168.112.10:2400

And lastly; We now have our own project in JIRA:
https://jira.mongodb.org/browse/PHPC

As always, I welcome feedback, comments, praises and suggestions!