diff options
Diffstat (limited to 'contrib/bruno')
-rw-r--r-- | contrib/bruno/configuration/routing/02-post-routing.bru | 46 | ||||
-rw-r--r-- | contrib/bruno/environments/warden.bru | 2 |
2 files changed, 48 insertions, 0 deletions
diff --git a/contrib/bruno/configuration/routing/02-post-routing.bru b/contrib/bruno/configuration/routing/02-post-routing.bru new file mode 100644 index 0000000..d789e9a --- /dev/null +++ b/contrib/bruno/configuration/routing/02-post-routing.bru @@ -0,0 +1,46 @@ +meta { + name: 02-post-routing + type: http + seq: 2 +} + +post { + url: {{WARDEN_CFG_HOST}}/api/{{WARDEN_CFG_VERSION}}/routing + body: json + auth: inherit +} + +body:json { + { + "active": true, + "name": "Public Network Map", + "version": "1.0.0", + "messages": [ + { + "id": "004", + "version": "1.0.0", + "tx_tp": "pacs.002.001.12", + "typologies": [ + { + "id": "999", + "version": "1.0.0", + "rules": [ + { + "id": "901", + "version": "1.0.0" + } + ] + } + ] + } + ] + } +} + +assert { + res.status: eq 201 +} + +settings { + encodeUrl: true +} diff --git a/contrib/bruno/environments/warden.bru b/contrib/bruno/environments/warden.bru index a552a15..3e72f47 100644 --- a/contrib/bruno/environments/warden.bru +++ b/contrib/bruno/environments/warden.bru @@ -1,4 +1,6 @@ vars { WARDEN_API_HOST: http://localhost:2210 WARDEN_VERSION: v0 + WARDEN_CFG_HOST: http://localhost:1304 + WARDEN_CFG_VERSION: v0 } |