Page MenuHomeDevCentral

D3465.id8931.diff
No OneTemporary

D3465.id8931.diff

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/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://localhost:5000/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://localhost:5000/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://localhost:5000/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://localhost:5000/delivery/register_consumer
+ body: json
+ auth: none
+}
+
+headers {
+ Content-Type: application/json
+}
+
+body:json {
+ {
+ "api-key": "6c8d2452-6283-11e7-a54c-0050560043af",
+ "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://localhost:5000/delivery/register_consumer
+ body: json
+ auth: none
+}
+
+headers {
+ Content-Type: application/json
+}
+
+body:json {
+ {
+ "api-key": "6c8d2452-6283-11e7-a54c-0050560043af"
+ }
+}
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://localhost:5000/delivery/register_consumer
+ body: json
+ auth: none
+}
+
+headers {
+ Content-Type: application/json
+}
+
+body:json {
+ {
+ "api-key": "6c8d2452-6283-11e7-a54c-0050560043af",
+ "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://localhost:5000/delivery/unregister_consumer
+ body: json
+ auth: none
+}
+
+headers {
+ Content-Type: application/json
+}
+
+body:json {
+ {
+ "key": "0f4bc4ef-fef9-4786-995b-d4990933f5da"
+ }
+}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 13:04 (10 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260207
Default Alt Text
D3465.id8931.diff (4 KB)

Event Timeline