Skip to content

Commit

Permalink
[docs][e2e] Introduce README for e2e tests (apache#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
schnappi17 authored Apr 18, 2023
1 parent f55e6a2 commit 9651676
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions paimon-e2e-tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

# End-to-End (E2E) Testing
This directory contains end-to-end (e2e) testing for Paimon, which ensures users can run Paimon as expected across the entire stack.

## Run e2e tests Locally
Currently, e2e supports docker environment only. You need to do some preparations before running e2e tests.

### Prepare
1. Install docker engine or desktop in your local environment.
2. Start docker daemon.
3. Set `rootLogger.level` to `INFO` at `paimon-e2e-tests/src/test/resources/log4j2-test.properties` if you need to debug.

### Execution
1. Build with Flink-versioned profiles, like flink-1.17. The default Flink main version is declared in the parent `pom.xml` by `<test.flink.main.version>` tag.

```Bash
mvn clean install -DskipTests -Pflink-1.17
```
2. Run e2e tests
```Bash
mvn test -pl paimon-e2e-tests -Pflink-1.17
```

0 comments on commit 9651676

Please sign in to comment.