Skip to content

Instantly share code, notes, and snippets.

@josdem
Last active January 19, 2019 20:22
Show Gist options
  • Save josdem/4db2fb2ac96bca6d7525b1918da63a07 to your computer and use it in GitHub Desktop.
Save josdem/4db2fb2ac96bca6d7525b1918da63a07 to your computer and use it in GitHub Desktop.
#!/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()
@josdem
Copy link
Author

josdem commented Jan 19, 2019

  • Save it as sanityCheck.groovy
  • chmod 755 sanityCheck.groovy
  • ./sanityCheck.groovy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment