Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3927410
D3465.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
5 KB
Referenced Files
None
Subscribers
None
D3465.diff
View Options
diff --git a/nasqueron/notifications/Delivery API/200 ALIVE.bru b/nasqueron/notifications/Delivery API/200 ALIVE.bru
new file mode 100644
--- /dev/null
+++ b/nasqueron/notifications/Delivery API/200 ALIVE.bru
@@ -0,0 +1,21 @@
+meta {
+ name: 200 ALIVE
+ type: http
+ seq: 8
+}
+
+get {
+ url: {{URL}}/status
+ body: none
+ auth: none
+}
+
+tests {
+ test("Status code is 200", function () {
+ expect(res.getStatus()).to.equal(200);
+ });
+
+ test("Body matches string", function () {
+ expect(res.getBody()?.toString()).to.include("ALIVE");
+ });
+}
diff --git a/nasqueron/notifications/Delivery API/bruno.json b/nasqueron/notifications/Delivery API/bruno.json
new file mode 100644
--- /dev/null
+++ b/nasqueron/notifications/Delivery API/bruno.json
@@ -0,0 +1,9 @@
+{
+ "version": "1",
+ "name": "Delivery API",
+ "type": "collection",
+ "ignore": [
+ "node_modules",
+ ".git"
+ ]
+}
\ No newline at end of file
diff --git a/nasqueron/notifications/Delivery API/collection.bru b/nasqueron/notifications/Delivery API/collection.bru
new file mode 100644
diff --git a/nasqueron/notifications/Delivery API/environments/Local development.bru b/nasqueron/notifications/Delivery API/environments/Local development.bru
new file mode 100644
--- /dev/null
+++ b/nasqueron/notifications/Delivery API/environments/Local development.bru
@@ -0,0 +1,4 @@
+vars {
+ URL: localhost:5000
+ ARBITRARY_API_KEY: 6c8d2452-6283-11e7-a54c-0050560043a
+}
diff --git a/nasqueron/notifications/Delivery API/get -base64-.bru b/nasqueron/notifications/Delivery API/get -base64-.bru
new file mode 100644
--- /dev/null
+++ b/nasqueron/notifications/Delivery API/get -base64-.bru
@@ -0,0 +1,22 @@
+meta {
+ name: get -base64-
+ type: http
+ seq: 5
+}
+
+post {
+ url: http://{{URL}}/delivery/get
+ body: json
+ auth: none
+}
+
+headers {
+ Content-Type: application/json
+}
+
+body:json {
+ {
+ "key": "4c38b364-912a-4ded-a314-bb129d74e17c",
+ "format": "base64"
+ }
+}
diff --git a/nasqueron/notifications/Delivery API/get -invalid format-.bru b/nasqueron/notifications/Delivery API/get -invalid format-.bru
new file mode 100644
--- /dev/null
+++ b/nasqueron/notifications/Delivery API/get -invalid format-.bru
@@ -0,0 +1,22 @@
+meta {
+ name: get -invalid format-
+ type: http
+ seq: 6
+}
+
+post {
+ url: http://{{URL}}/delivery/get
+ body: json
+ auth: none
+}
+
+headers {
+ Content-Type: application/json
+}
+
+body:json {
+ {
+ "key": "4c38b364-912a-4ded-a314-bb129d74e17c",
+ "format": "invalid"
+ }
+}
diff --git a/nasqueron/notifications/Delivery API/get.bru b/nasqueron/notifications/Delivery API/get.bru
new file mode 100644
--- /dev/null
+++ b/nasqueron/notifications/Delivery API/get.bru
@@ -0,0 +1,22 @@
+meta {
+ name: get
+ type: http
+ seq: 4
+}
+
+post {
+ url: http://{{URL}}/delivery/get
+ body: json
+ auth: none
+}
+
+headers {
+ Content-Type: application/json
+}
+
+body:json {
+ {
+ "key": "4c38b364-912a-4ded-a314-bb129d74e17c",
+ "format": "as-is"
+ }
+}
diff --git a/nasqueron/notifications/Delivery API/register_consumer -404-.bru b/nasqueron/notifications/Delivery API/register_consumer -404-.bru
new file mode 100644
--- /dev/null
+++ b/nasqueron/notifications/Delivery API/register_consumer -404-.bru
@@ -0,0 +1,22 @@
+meta {
+ name: register_consumer -404-
+ type: http
+ seq: 2
+}
+
+post {
+ url: http://{{URL}}/delivery/register_consumer
+ body: json
+ auth: none
+}
+
+headers {
+ Content-Type: application/json
+}
+
+body:json {
+ {
+ "api-key": "{{ARBITRARY_API_KEY}}",
+ "exchange": "notexisting"
+ }
+}
diff --git a/nasqueron/notifications/Delivery API/register_consumer -default-.bru b/nasqueron/notifications/Delivery API/register_consumer -default-.bru
new file mode 100644
--- /dev/null
+++ b/nasqueron/notifications/Delivery API/register_consumer -default-.bru
@@ -0,0 +1,21 @@
+meta {
+ name: register_consumer -default-
+ type: http
+ seq: 3
+}
+
+post {
+ url: http://{{URL}}/delivery/register_consumer
+ body: json
+ auth: none
+}
+
+headers {
+ Content-Type: application/json
+}
+
+body:json {
+ {
+ "api-key": "{{ARBITRARY_API_KEY}}"
+ }
+}
diff --git a/nasqueron/notifications/Delivery API/register_consumer.bru b/nasqueron/notifications/Delivery API/register_consumer.bru
new file mode 100644
--- /dev/null
+++ b/nasqueron/notifications/Delivery API/register_consumer.bru
@@ -0,0 +1,22 @@
+meta {
+ name: register_consumer
+ type: http
+ seq: 1
+}
+
+post {
+ url: http://{{URL}}/delivery/register_consumer
+ body: json
+ auth: none
+}
+
+headers {
+ Content-Type: application/json
+}
+
+body:json {
+ {
+ "api-key": "{{ARBITRARY_API_KEY}}",
+ "exchange": "grapevine"
+ }
+}
diff --git a/nasqueron/notifications/Delivery API/unregister_consumer.bru b/nasqueron/notifications/Delivery API/unregister_consumer.bru
new file mode 100644
--- /dev/null
+++ b/nasqueron/notifications/Delivery API/unregister_consumer.bru
@@ -0,0 +1,21 @@
+meta {
+ name: unregister_consumer
+ type: http
+ seq: 7
+}
+
+post {
+ url: http://{{URL}}/delivery/unregister_consumer
+ body: json
+ auth: none
+}
+
+headers {
+ Content-Type: application/json
+}
+
+body:json {
+ {
+ "key": "{{ARBITRARY_API_KEY}}"
+ }
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 00:06 (13 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2311456
Default Alt Text
D3465.diff (5 KB)
Attached To
Mode
D3465: Import Postman collection for Notifications Delivery API
Attached
Detach File
Event Timeline
Log In to Comment