tests: updated to use new API
This commit is contained in:
parent
678e6b66bd
commit
31d14bcc53
2 changed files with 35 additions and 33 deletions
22
tests/generate_local.hurl
Normal file
22
tests/generate_local.hurl
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue