From ac5f372793df251d5f079f60da19149fae8b2364 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Mon, 3 Jun 2024 21:05:13 +0200 Subject: [PATCH] switch to new api in tests --- live.hurl | 11 ----------- test/api.hurl | 12 ++---------- 2 files changed, 2 insertions(+), 21 deletions(-) delete mode 100644 live.hurl diff --git a/live.hurl b/live.hurl deleted file mode 100644 index daacb7a..0000000 --- a/live.hurl +++ /dev/null @@ -1,11 +0,0 @@ -POST https://hare-exec.fly.dev/v1/exec -content-type: application/json -``` -{ - "sandbox": "hare", - "command": "run", - "files": { - "": "use fmt;\nexport fn main() void = {\nfmt::println(\"hello world\")!;\n};\n" - } -} -``` diff --git a/test/api.hurl b/test/api.hurl index c90792c..96c1a92 100644 --- a/test/api.hurl +++ b/test/api.hurl @@ -8,11 +8,7 @@ POST http://localhost:8080/v1/exec content-type: application/json ``` { - "sandbox": "hare", - "command": "run", - "files": { - "": "use fmt;\nexport fn main() void = {\nfmt::println(\"hello world\")!;\n};\n" - } + "code": "use fmt;\nexport fn main() void = {\nfmt::println(\"hello world\")!;\n};\n" } ``` HTTP 200 @@ -26,11 +22,7 @@ POST http://localhost:8080/v1/exec content-type: application/json ``` { - "sandbox": "hare", - "command": "run", - "files": { - "": "use fmt;\nexport fn main()\n" - } + "code": "use fmt;\nexport fn main()\n" } ``` HTTP 200