Serverspec

From DevOps Dictionary

This page is a stub, and is awaiting more content from a community hero. You could be that hero.


Serverspec is an infrastructure testing framework that works over SSH. Though it is often used to test configuration management code (such as Puppet and Chef), it is agnostic as to how the system gets configured - it only tests the end result.

Test Language

Serverspec is implemented as an rspec extension, so the testing DSL is largely the Rspec DSL, with some extra keywords added.

Selected Tests

Some of the tests that can be executed using Serverspec include:

  • Is anything listening on a particular port?
  • Is a particular package installed?
  • What is the output of an arbitrary command?

See Also