You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by stalary <st...@163.com> on 2022/07/06 01:18:45 UTC

[Discuss][DSIP] Use Docker support external tables scenarios test

Hi all,
  Currently we support a variety of external tables, but ut can only mock a lot of times. In order to be able to test for real scenarios, I wanted to use Docker to solve the problem of third party dependencies. My initial thoughts are as follows.
1. Create docker-compose.yaml files for the third party dependencies you want to test.
2. Implement annotations for ut, supporting the specification of docker-compose.yaml.
3. Start the Docker service before starting ut.


Reference implementation
a. https://github.com/apache/dolphinscheduler/blob/dev/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/ClickhouseDataSourceE2ETest.java
b. https://github.com/apache/skywalking-java/blob/main/test/plugin/scenarios/activemq-scenario/configuration.yml


Stalary
Email: stalary@163.com

Re: [Discuss][DSIP] Use Docker support external tables scenarios test

Posted by Jianliang Qi <ji...@gmail.com>.
Great idea! This will facilitate external table function testing.
Looking forward to it.

Jianliang Qi

On Wed, Jul 6, 2022 at 9:19 AM stalary <st...@163.com> wrote:

> Hi all,
>   Currently we support a variety of external tables, but ut can only mock
> a lot of times. In order to be able to test for real scenarios, I wanted to
> use Docker to solve the problem of third party dependencies. My initial
> thoughts are as follows.
> 1. Create docker-compose.yaml files for the third party dependencies you
> want to test.
> 2. Implement annotations for ut, supporting the specification of
> docker-compose.yaml.
> 3. Start the Docker service before starting ut.
>
>
> Reference implementation
> a.
> https://github.com/apache/dolphinscheduler/blob/dev/dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/ClickhouseDataSourceE2ETest.java
> b.
> https://github.com/apache/skywalking-java/blob/main/test/plugin/scenarios/activemq-scenario/configuration.yml
>
>
> Stalary
> Email: stalary@163.com