Last active
January 19, 2019 20:22
-
-
Save josdem/4db2fb2ac96bca6d7525b1918da63a07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
@Grab('com.github.groovy-wslite:groovy-wslite:1.1.3') | |
import wslite.rest.RESTClient | |
def sanityStarter(){ | |
println 'Starting sanity check' | |
def client = new RESTClient("http://localhost:8080/") | |
def response = client.get(path:'/sanity/ping') | |
assert 200 == response.statusCode | |
println 'Up and running!' | |
} | |
sanityStarter() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sanityCheck.groovy
chmod 755 sanityCheck.groovy
./sanityCheck.groovy