Integration Testing


#1

Good morning All.

I have written cookbook to install oracle software & uploaded to server.
I am successfully push/chef-client in node.
Now, I want to do integration testing like, oracle software installed successfully or not, port is listening or not.
I have read about serverspec and other integration tools. I tried but no look. they are using vagrat tool/kitchen test.
I do not have vagrant/another tool. I want to write functional/integration testing to verify system desired status.

Can you please help me how to write integration test cases and test them on ndoe.

Thanks
Bhanu


#2

You can use InSpec without using vagrant. doing it against your live systems on a node without using Test Kitchen - I prepared a few overview videos for O’Reilly outlining the process. In addition to a security assessment you can also do integration testing, so these should be applicable:

https://www.oreilly.com/learning/how-can-i-use-inspec-to-ensure-my-web-application-infrastructure-is-secure https://www.oreilly.com/learning/how-can-i-use-inspec-to-ensure-my-web-application-infrastructure-is-secure
https://www.oreilly.com/learning/how-can-i-use-inspec-over-ssh-to-verify-that-my-linux-installation-is-secure https://www.oreilly.com/learning/how-can-i-use-inspec-over-ssh-to-verify-that-my-linux-installation-is-secure
https://www.oreilly.com/learning/how-can-i-use-inspec-to-verify-my-linux-installation-in-a-docker-container-is-secure https://www.oreilly.com/learning/how-can-i-use-inspec-to-verify-my-linux-installation-in-a-docker-container-is-secure


#3

Please have a look at https://www.inspec.io/tutorials/ too


#4

Yes, Annie wrote a great series of blog posts showing you step-by-step how to get started with InSpec, once you see that it meets your requirements for the type of testing you want to do.


#5

Thank you! I am going through the documentation.