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
package net.razvan.kondortest | |
import net.razvan.kondortest.TitleType.Companion.fromLabel | |
import com.ubertob.kondor.json.JAny | |
import com.ubertob.kondor.json.JStringRepresentable | |
import com.ubertob.kondor.json.jsonnode.JsonNodeObject | |
import com.ubertob.kondor.json.obj | |
import com.ubertob.kondor.json.str | |
import com.ubertob.kondor.json.toPrettyJson | |
import com.ubertob.kondor.outcome.recover |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Remote terminal</title> | |
<style> | |
textarea { | |
background-color: #000; | |
border: 1px solid #000; | |
color: #00ff00; |
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
// all calls on `$path` are redirected to `$url` | |
// ex: server `http://localport:8080` call `MocksRoute("http://google.com", "proxy")` | |
// all calls to `http://localport:8080/proxy/<whatever>` will respond with the response of `http://google.com/<whatever>` | |
// query params and headers are forwarded | |
object MocksRoute { | |
private val pathLens = Path.string().of("reqpath") | |
operator fun invoke(url: String, path: String = "", client: HttpHandler = OkHttp()): RoutingHttpHandler = | |
routes("/$path/{reqpath:.*}" bind handler(url, client)) |
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
package net.razvan.webfluxjpatestcontiainers | |
import org.testcontainers.containers.MySQLContainer | |
object TestMySqlContainer : MySQLContainer<TestMySqlContainer>("mysql:5.7") { | |
override fun start() { | |
super.start() | |
System.setProperty("DB_URL", this.jdbcUrl) | |
System.setProperty("DB_USERNAME", this.username) |