see-quick commented on code in PR #24133:
URL: https://github.com/apache/kafka/pull/24133#discussion_r4678138634
##########
docker/test/docker_sanity_test.py:
##########
@@ -314,11 +315,73 @@ def tearDown(self) -> None:
def test_bed(self):
self.execute()
+class DockerStreamsTest(unittest.TestCase):
Review Comment:
> Why don't you use DockerSanityTest class. You are completely redundantly
writing commands which can be re-used by super-class.
By this I have meant to use `DockerSanityTest` as a base and have
`DockerStreamsTest` and not use `unittest.TestCase` as you did before. So
basically you would have perfectly isolated class with its purpose i.e.:
```java
class DockerStreamsTest(DockerSanityTest):
...
def setUp(self):
if self.MODE != "jvm":
self.skipTest("native image has no JVM")
self.start_compose(f"{self.FIXTURES_DIR}/{constants.COMBINED_MODE_COMPOSE}")
...
def tearDown(self):
self.destroy_compose(f"{self.FIXTURES_DIR}/{constants.COMBINED_MODE_COMPOSE}")
def test_wordcount_with_rocksdb(self):
# topics via create_topic, WordCountDemo via exec in
BROKER_CONTAINER,
# produce/consume via the inherited helpers
...
```
Something like this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]