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
test { | |
testLogging { | |
events "skipped", "failed", "standardError" | |
def outputCache = new LinkedList<String>() | |
beforeTest { TestDescriptor td -> outputCache.clear() } // clear everything right before the test starts | |
onOutput { TestDescriptor td, TestOutputEvent toe -> // when output is coming put it in the cache | |
outputCache.add(toe.getMessage()) |
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
(ns clojure-hello.handler | |
(:require [compojure.core :refer :all] | |
[compojure.route :as route] | |
[compojure.handler :as handler])) | |
(defroutes app-routes | |
(GET "/greeting" [name] (str "Hello, " (or name "World") "!")) | |
(route/not-found "Not Found")) | |
(def app |
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
class SpecFile extends Specification { | |
def "Order delivery example test case"() { | |
given: | |
def product = createProduct() | |
expect: | |
retry { user pay product } waiting 500 upTo 3000 until { | |
it?.responseData?.status == "success" | |
} |
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
#!/bin/bash | |
# remove existing rules and set defaults | |
iptables -F | |
iptables -X | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t mangle -F | |
iptables -t mangle -X | |
iptables -P INPUT DROP |
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
... | |
INTERFACES="wlan0" |