Skip to content

Commit

Permalink
Add end2end test
Browse files Browse the repository at this point in the history
  • Loading branch information
eolivelli committed Dec 13, 2023
1 parent c05e0a6 commit 072a2ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.testcontainers.shaded.com.google.common.base.Strings;

@Slf4j
@ExtendWith(BaseEndToEndTest.class)
Expand Down Expand Up @@ -115,8 +116,12 @@ public void testSource() {
.formatted(applicationId)
.split(" "));
log.info("Output: {}", output);
String bigPayload = Strings.repeat("test", 10000);
Assertions.assertTrue(
output.contains("{\"record\":{\"key\":null,\"value\":\"test\",\"headers\":{}}"));
output.contains(
"{\"record\":{\"key\":null,\"value\":\""
+ bigPayload
+ "\",\"headers\":{}}"));

deleteAppAndAwaitCleanup(tenant, applicationId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def read(self):
if not self.sent:
logging.info("Sending the record")
self.sent = True
return [SimpleRecord("test")]
return [SimpleRecord("test" * 10000)]
return []

def commit(self, records):
Expand Down

0 comments on commit 072a2ad

Please sign in to comment.