aboutsummaryrefslogtreecommitdiff
path: root/tests/http.yaml
diff options
context:
space:
mode:
authorChristian Segundo2023-12-31 00:49:58 +0100
committerChristian Segundo2023-12-31 12:00:02 +0100
commitc5f325e580540d81903360920094aafcc6ad4008 (patch)
treee20b666c71b912bb4103a2421b3ca2d547f16328 /tests/http.yaml
parentdf2b48edbb77e40dbd93e1c097b0b1cacde8a74a (diff)
downloadlanguagetool-c5f325e580540d81903360920094aafcc6ad4008.tar.gz
add goss
Diffstat (limited to 'tests/http.yaml')
-rw-r--r--tests/http.yaml34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/http.yaml b/tests/http.yaml
new file mode 100644
index 0000000..45aa2bb
--- /dev/null
+++ b/tests/http.yaml
@@ -0,0 +1,34 @@
+---
+http:
+ http://0.0.0.0:8010/v2/info:
+ status: 200
+ url: http://0.0.0.0:8010/v2/info
+ no-follow-redirects: true
+ timeout: 10000
+ method: GET
+ body:
+ - '{"software":{"name":"LanguageTool"'
+
+ http://0.0.0.0:8010/v2/languages:
+ status: 200
+ url: http://0.0.0.0:8010/v2/languages
+ no-follow-redirects: true
+ timeout: 10000
+ method: GET
+ request-headers:
+ - "accept: application/json"
+ body:
+ - '{"name":"Arabic","code":"ar","longCode":"ar"}'
+
+ http://0.0.0.0:8010/v2/check:
+ status: 200
+ url: http://0.0.0.0:8010/v2/check
+ no-follow-redirects: true
+ timeout: 10000
+ method: POST
+ request-headers:
+ - "accept: application/json"
+ - "content-type: application/x-www-form-urlencoded"
+ request-body: 'text=hello%20woorld&language=en-US&motherTongue=de-DE&enabledOnly=false'
+ body:
+ - This sentence does not start with an uppercase letter