Skip to content

Commit

Permalink
consumer configuration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Dec 23, 2024
1 parent 4221cb7 commit 88dabed
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/Functional/StreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,42 @@ class StreamTest extends FunctionalTestCase

private bool $empty;

public function testInvalidAckPolicy()
{
$this->expectExceptionMessage("Invalid ack policy: fast");

$this->createClient()
->getApi()
->getStream('acking')
->getConsumer('tester')
->getConfiguration()
->setAckPolicy('fast');
}

public function testInvalidDeliverPolicy()
{
$this->expectExceptionMessage("Invalid deliver policy: turtle");

$this->createClient()
->getApi()
->getStream('acking')
->getConsumer('tester')
->getConfiguration()
->setDeliverPolicy('turtle');
}

public function testInvalidReplayPolicy()
{
$this->expectExceptionMessage("Invalid replay policy: fast");

$this->createClient()
->getApi()
->getStream('acking')
->getConsumer('tester')
->getConfiguration()
->setReplayPolicy('fast');
}

public function testNack()
{
$client = $this->createClient();
Expand Down

0 comments on commit 88dabed

Please sign in to comment.