Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768828
D223.id526.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
865 B
Referenced Files
None
Subscribers
None
D223.id526.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D223: Test DockerHub gate controller
Attached
Detach File
Event Timeline
Log In to Comment