This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: runner | |
spec: | |
terminationGracePeriodSeconds: 3600 # one hour! | |
containers: | |
- command: | |
- sh | |
- -c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: runner | |
spec: | |
containers: | |
- command: | |
- sh | |
- -c | |
- 'touch /tmp/messaging && tail -f /tmp/messaging' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: service | |
name: service | |
spec: | |
ports: | |
- name: 80-80 | |
nodePort: 30080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: service | |
name: service | |
spec: | |
ports: | |
- name: 80-80 | |
nodePort: 30080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: service | |
name: service | |
spec: | |
ports: | |
- name: 80-80 | |
nodePort: 30080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: mock | |
spec: | |
... | |
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
... | |
class CreateBookingMessageHandlerTest extends TestCase | |
{ | |
/** | |
* This will test a booking being processed | |
* @group time-sensitive | |
* @throws \Exception | |
*/ | |
public function testProcessBooking(): void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
... | |
class BookingManagerTest extends KernelTestCase | |
{ | |
public function setUp() | |
{ | |
self::bootKernel(); | |
} | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
... | |
class CreateBookingMessageHandler implements MessageHandlerInterface | |
{ | |
private $bookingManager; | |
public function __construct(BookingManager $bookingManager) | |
{ | |
$this->bookingManager = $bookingManager; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
... | |
class BookingManager | |
{ | |
private $messageBus; | |
private $bookingRepository; | |
public function __construct(MessageBusInterface $messageBus, BookingRepository $bookingRepository) | |
{ | |
$this->messageBus = $messageBus; |