diff options
author | rtkay123 <dev@kanjala.com> | 2025-08-14 18:33:47 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-08-14 18:33:47 +0200 |
commit | 1619259f174c4653b71ce46cd4cdbfc1b29aaafa (patch) | |
tree | b44ffc3b616ab7a87af2c37c348e4ca4923f637a /contrib/bruno/configuration | |
parent | 19871c1924a8569df741d4bf5f63943b6b646c16 (diff) | |
download | warden-1619259f174c4653b71ce46cd4cdbfc1b29aaafa.tar.bz2 warden-1619259f174c4653b71ce46cd4cdbfc1b29aaafa.zip |
test(integration): routing post
Diffstat (limited to 'contrib/bruno/configuration')
-rw-r--r-- | contrib/bruno/configuration/routing/02-post-routing.bru | 46 |
1 files changed, 46 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 +} |