Page MenuHomeDevCentral

D223.id526.diff
No OneTemporary

D223.id526.diff

diff --git a/tests/Http/PayloadFullTest.php b/tests/Http/PayloadFullTest.php
--- a/tests/Http/PayloadFullTest.php
+++ b/tests/Http/PayloadFullTest.php
@@ -56,6 +56,24 @@
}
/**
+ * Tests a DockerHub gate payload.
+ */
+ public function testDockerHubPayload () {
+ $payload = file_get_contents(__DIR__ . '/../data/payloads/DockerHubPushPayload.json');
+ $this->sendPayload(
+ '/gate/DockerHub/Acme', // A gate existing in data/credentials.json
+ $payload,
+ 'POST',
+ []
+ )->seeJson([
+ 'gate' => 'DockerHub',
+ 'door' => 'Acme',
+ 'action' => 'AMQPAction'
+ ]);
+ $this->assertResponseOk();
+ }
+
+ /**
* Same than testPost, but without actions report.
*/
public function testPostWithoutActionsReport () {

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 10:49 (17 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258176
Default Alt Text
D223.id526.diff (865 B)

Event Timeline