diff options
Diffstat (limited to 'contrib/bruno/configuration')
4 files changed, 106 insertions, 0 deletions
diff --git a/contrib/bruno/configuration/routing/03-update-routing.bru b/contrib/bruno/configuration/routing/03-update-routing.bru new file mode 100644 index 0000000..43d3ea4 --- /dev/null +++ b/contrib/bruno/configuration/routing/03-update-routing.bru @@ -0,0 +1,23 @@ +meta { + name: 03-update-routing + type: http + seq: 3 +} + +put { + url: {{WARDEN_CFG_HOST}}/api/{{WARDEN_CFG_VERSION}}/routing/:id + body: none + auth: inherit +} + +params:path { + id: +} + +assert { + res.status: eq 201 +} + +settings { + encodeUrl: true +} diff --git a/contrib/bruno/configuration/routing/04-delete-routing.bru b/contrib/bruno/configuration/routing/04-delete-routing.bru new file mode 100644 index 0000000..b5abaa8 --- /dev/null +++ b/contrib/bruno/configuration/routing/04-delete-routing.bru @@ -0,0 +1,23 @@ +meta { + name: 04-delete-routing + type: http + seq: 4 +} + +delete { + url: {{WARDEN_CFG_HOST}}/api/{{WARDEN_CFG_VERSION}}/routing/:id + body: none + auth: inherit +} + +params:path { + id: +} + +assert { + res.status: eq 200 +} + +settings { + encodeUrl: true +} diff --git a/contrib/bruno/configuration/rule/01-create.bru b/contrib/bruno/configuration/rule/01-create.bru new file mode 100644 index 0000000..cc98aee --- /dev/null +++ b/contrib/bruno/configuration/rule/01-create.bru @@ -0,0 +1,52 @@ +meta { + name: 01-create + type: http + seq: 1 +} + +post { + url: {{WARDEN_CFG_HOST}}/api/{{WARDEN_CFG_VERSION}}/rule + body: json + auth: inherit +} + +body:json { + { + "id": "901", + "version": "1.0.0", + "description": "Number of outgoing transactions - debtor", + "configuration": { + "parameters": { + "max_query_range": 86400000 + }, + "exit_conditions": [ + { + "sub_rule_ref": ".x00", + "reason": "Incoming transaction is unsuccessful" + } + ], + "bands": [ + { + "sub_rule_ref": ".01", + "upper_limit": 2, + "reason": "The debtor has performed one transaction to date" + }, + { + "sub_rule_ref": ".02", + "lower_limit": 2, + "upper_limit": 3, + "reason": "The debtor has performed two transactions to date" + }, + { + "sub_rule_ref": ".03", + "lower_limit": 3, + "reason": "The debtor has performed three or more transactions to date" + } + ] + } + } +} + +settings { + encodeUrl: true +} diff --git a/contrib/bruno/configuration/rule/folder.bru b/contrib/bruno/configuration/rule/folder.bru new file mode 100644 index 0000000..c486c46 --- /dev/null +++ b/contrib/bruno/configuration/rule/folder.bru @@ -0,0 +1,8 @@ +meta { + name: rule + seq: 2 +} + +auth { + mode: inherit +} |