The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via https://support.aerospike.com.
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