As I wrote in my previous post, Serverspec allows users to describe the machine setup using many different resource types. There are lots of resource types already implemented in the framework but based on the setup, which should be described, they can be insufficient.
The good thing about Serverspec is that it is easily extensible. Recently I have added several new matchers and resource types, which I will describe in the next few blog posts.
Lets start with iis_app_pool resource type and its new matchers.
IIS Application Pool resource type
In order to test the IIS Application pool, whether the Enable 32-Bit Applications option is enabled, you should use the have_32bit_enabled matcher.
In order to test the IIS Application pool Idle Time-out setting, you should use the have_idle_timeout matcher(in minutes).
In order to test the IIS Application pool Identity type(which configures how the app pool runs), you should use the have_identity_type matcher.
In order to test the IIS Application pool Regular Time Interval, you should use the have_periodic_restart matcher(in minutes).
In order to test the IIS Application pool Load User Profile setting, you should use the have_user_profile_enabled matcher.
In order to test the IIS Application pool username specified in case of Specific User used, you should use the have_username matcher.
In order to test the IIS Application pool Managed Pipeline Mode, you should use the have_managed_pipeline_mode matcher.
In order to test whether the IIS Application pool is started, you should use the started matcher.
Note: The matchers described above can found in the Serverspec gem 1.14 and above.