From 1619259f174c4653b71ce46cd4cdbfc1b29aaafa Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Thu, 14 Aug 2025 18:33:47 +0200 Subject: test(integration): routing post --- .../configuration/routing/02-post-routing.bru | 46 ++++++++++++++++++++++ contrib/bruno/environments/warden.bru | 2 + 2 files changed, 48 insertions(+) create mode 100644 contrib/bruno/configuration/routing/02-post-routing.bru (limited to 'contrib') 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 } -- cgit v1.2.3