Build String in Inspec with Input

400 Views Asked by At

I want to write an Inspec Profile, in which I can add an input to an existing string.

For example, something like:

inspec exec test --input user=abcinst

Input: abcinst
Test:  its('home') { should eq '/db2/{input}' }

I didn't find anything yet to this topic.

1

There are 1 best solutions below

1
pradipta On

for inputs you can refer : https://docs.chef.io/inspec/inputs/ you have to use input resource to read the argument passed to