One of the easiest things you could do would be to push and execute your
rspec script, or pass the server name as a parameter and execute it locally
with local_action in the host loop, either way.





On Fri, Jan 17, 2014 at 6:29 PM, Robb Shecter <[email protected]> wrote:

> Hi everyone. In Ruby RSpec, I'm testing my web apps with code like this.
> Is there a way to make equivalent checks with Ansible? This
> http://docs.ansible.com/uri_module.html seems like it might help, but I
> don't see exactly how I'd use it. Thanks!
>
> describe 'My app' do
>   it 'is configured for ssl' do
>     expect('www.myapp.com').to have_a_valid_cert
>   end
>
>   it 'redirects to www' do
>     expect('http://myapp.com').to redirect_permanently_to 
> 'http://www.myapp.com/'
>   end
>
>   it 'forces visitors to use https' do
>     expect('myapp.com').to enforce_https_everywhere
>   endend
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Michael DeHaan <[email protected]>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to