I have the following scenario regarding serverspec run:
I login to VM using user certificate and then do a sudo su -. Now as a root, I switch to dummy user which requires no password.
Then using the dummy user I initialize serverspec using /opt/chefdk/embedded/bin/serverspec-init and configure it for a sample test in the same VM.
Now when I try this using the dummy /opt/chefdk/embedded/bin/rspec spec/X.X.X.X/sample_spec.rb
It keeps on asking for user password which is just a certificate.
I want to avoid this and want the serverspec to make the spec run without password prompt.
I am not able to figure it out. Kindly help.
Thanks!