sijie opened a new pull request #2055: Introduce testcontainer based cluster 
integration tests
URL: https://github.com/apache/incubator-pulsar/pull/2055
 
 
   *Motivation*
   
   Introduce testcontainer based cluster tests for replacing existing arquilian 
tests.
   
   testcontainer is more flexible and more nature to how we write unit tests. 
arquilian is configuration based and hard to change cluster at runtime.
   it is possible to add bookies/brokers/proxies at testing runtime using 
testcontainers.
   
   current arquilian based integration tests can only run in linux environment 
(which is using host network). it is impossible to run arquillian tests in mac 
environment,
   where host network is meaningless. changing to testcontainers is allowing 
running integration tests on mac to speed up development.
   
   *Changes*
   
   This mirrors the exact same setup as existing arquillian tests - 1 zk 
container, 1 cs container, 3 bk containers, 2 broker containers and 1 proxy 
container.
   
   add a semantic integration test module to using the new testcontainer test 
base `PulsarClusterTestBase`.
   
   *Result*
   
   - both arquillian and testcontainers exist.
   - new integration tests are encouraged to be written using 
`PulsarClusterTestBase`. It is just as easy as how you write normal unit tests.
   - existing arquillian tests will be migrated in future PRs.
   
   related issues:
   
   #2036 - is testcontainer based *standalone* test.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to