I am writing a Chef cookbook which will, among other things, add some firewall rules. But before I do that I need to write a test for it. That's where I'm stuck!
What I need is Serverspec/Rspec code that verifies that it is not possible to send data over port 1234, even if something on the server is listening to that port.
How should I write that test?
Found the answer in comment from @Tensibai