BEST practice for profiles


#1

Hi All,
I am writing inspec profiles for some of our tools.
planning to categories at high level as per below.

  1. Generic validation of the system.
  2. Tool installation readiness validation
  3. Post installation validation
  4. Tool upgrade readiness validation
  5. Post upgrade validation
    each will have some validation tests (10+ TC) to be verified based on scenario.

i would like to know if it would be good

  1. 5 different controls and write multiple tests in a control in same file
  2. write single test case per control.

any best option please suggest.


#2

From a structural point of view, a control is the atomic part in InSpec. A control can contain multiple resources but the control itself can be included/excluded when there is a profile inheritance.
Read the following blog post and maybe that would give a direction for you.