FAQ - Is there an embedded version of Aerospike for use in unit testing?—

FAQ - Is there an embedded version of Aerospike for use in unit testing?

Detail

When unit testing application code that may be used with Aerospike it could be useful to have an embedded version of Aerospike. Does such an embedded version exist?

Answer

Aerospike is more than a single library and is sufficiently complex that an embedded version or mock framework is not availabe. It would, in essence, be a re-implementation of the server code. For testing code in this manner Aerospike suggests running an Aerospike server within a container, for example via Docker, or in a Vagrant box. Refer to the Aerospike Download page for download links.

Keywords

AEROSPIKE CODE UNIT TEST EMBEDDED MOCK FRAMEWORK

Timestamp

December 2019

Agreed. It will take few minutes to create Aerospike on a docker. You just need a VM host with 8GB of memory and couple of CPUs. For Unit testing just need standard disks as you are not looking for performance.

HTH

© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.