tests: updated to use new API

This commit is contained in:
David Allen 2024-12-04 15:45:07 -07:00
parent 678e6b66bd
commit 31d14bcc53
Signed by: towk
GPG key ID: 793B2924A49B3A3F
2 changed files with 35 additions and 33 deletions

22
tests/generate_local.hurl Normal file
View file

@ -0,0 +1,22 @@
##
## Run these tests after starting server with `configurator serve...`
##
# Generate a `example` config with default plugin and template
GET http://127.0.0.1:3334/generate?target=example
HTTP 200
# Create a new target using the API
POST http://127.0.0.1:3334/targets
{
"name": "test",
"plugin": "example",
"templates": [{
"contents": "This is an example template used with the example plugin."
}]
}
HTTP 200
# Test the new target just add from POST above
GET http://127.0.0.1:3334/generate?target=example
HTTP 200