aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2025-08-14 18:33:47 +0200
committerrtkay123 <dev@kanjala.com>2025-08-14 18:33:47 +0200
commit1619259f174c4653b71ce46cd4cdbfc1b29aaafa (patch)
treeb44ffc3b616ab7a87af2c37c348e4ca4923f637a
parent19871c1924a8569df741d4bf5f63943b6b646c16 (diff)
downloadwarden-1619259f174c4653b71ce46cd4cdbfc1b29aaafa.tar.bz2
warden-1619259f174c4653b71ce46cd4cdbfc1b29aaafa.zip
test(integration): routing post
-rw-r--r--contrib/bruno/configuration/routing/02-post-routing.bru46
-rw-r--r--contrib/bruno/environments/warden.bru2
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
}