asm89/smoke.sh

The example provided doesn't give the same response

Closed this issue · 4 comments

I tried the example but only got the correct response code test.

> http://google.com/
    [ OK ] 2xx Response code

File content:

#!/bin/bash

. smoke.sh

smoke_url_ok "http://google.com/"
    smoke_assert_body "search"

System: Linux 3.8.0-19-generic #30-Ubuntu (Ubuntu 13.04 raring)

Any idea?

@jverdeyen I just pushed 1f774e0. It should fix your issue. Can you confirm? :)

The example was also missing an ending smoke_report. Fixed now.

@asm89 Superbe!

> http://google.com/
    [ OK ] 2xx Response code
    [ OK ] Body contains "search"
OK (2/2)

That fixed the issue! Thanks!
Good idea, I've put this in Jenkins :)

👍 Cool. Let me know how it works out. :)