Skip to content

Commit

Permalink
test(sudoc): add examples.http
Browse files Browse the repository at this point in the history
  • Loading branch information
leogail committed Oct 15, 2024
1 parent e82a990 commit e77effb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
15 changes: 15 additions & 0 deletions services/thesesul-sudoctohal/examples.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# These examples can be used directly in VSCode, using HTTPYac extension (anweber.vscode-httpyac)
# They are important, because used to generate the tests.hurl file.

# Décommenter/commenter les lignes voulues pour tester localement
@host=http://localhost:31976
# @host=https://thesesul-sudoctohal.services.istex.fr

###
# @name v1Sudoc
POST {{host}}/v1/sudoc HTTP/1.1
Content-Type: application/x-tar
X-Webhook-Success: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9
X-Webhook-Failure: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9

< ./example.tar.gz
5 changes: 0 additions & 5 deletions services/thesesul-sudoctohal/tests.hurl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ delay: 10000
}
]
```

HTTP 200
Content-Type: application/json
[Asserts]
jsonpath "$[*].value" == "empty, just to proc webhook"

0 comments on commit e77effb

Please sign in to comment.