Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test] support integration test #144

Merged
merged 7 commits into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<img src="https://i.loli.net/2020/02/21/rfOGvKlTcHCmM92.png" />
<br/>

[![codecov](https://codecov.io/gh/crossoverJie/cim/graph/badge.svg?token=oW5Gd1oKmf)](https://codecov.io/gh/crossoverJie/cim)
[![Build Status](https://img.shields.io/badge/cim-cross--im-brightgreen.svg)](https://github.com/crossoverJie/cim)
[![](https://badge.juejin.im/entry/5c2c000e6fb9a049f5713e26/likes.svg?style=flat-square)](https://juejin.im/post/5c2bffdc51882509181395d7)

Expand All @@ -16,15 +17,16 @@

# V2.0
- [x] Upgrade to JDK17 & springboot3.0
- [x] Client SDK
- [ ] Client use [picocli](https://picocli.info/) instead of springboot.
- [ ] Supports binary client(build with golang).
- [ ] Support integration testing.
- [x] Support integration testing.
- [ ] Integrate OpenTelemetry .
- [ ] Support single node startup(Contains no components).
- [ ] Third-party components support replacement(Redis/Zookeeper, etc.).
- [ ] Support web client(websocket).
- [ ] Support docker container.
- [ ] Support kubernetes operation.
- [ ] Supports binary client(build with golang).

## 介绍

Expand Down Expand Up @@ -106,14 +108,16 @@
首先需要安装 `Zookeeper、Redis` 并保证网络通畅。

```shell
docker run --name zookeeper -d -p 2181:2181 zookeeper
docker run --rm --name redis -d -p 6379:6379 redis
docker run --name zookeeper -d -p 2181:2181 zookeeper:
docker run --rm --name redis -d -p 6379:6379 redis:7.4.0
```

```shell
git clone https://github.com/crossoverJie/cim.git
cd cim
mvn -Dmaven.test.skip=true clean package
mvn clean package -DskipTests=true
cd cim-server && cim-client && cim-forward-route
mvn clean package spring-boot:repackage -DskipTests=true
```

### 部署 IM-server(cim-server)
Expand Down
16 changes: 0 additions & 16 deletions cim-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,5 @@

</dependencies>

<build>
<plugins>
<!-- spring-boot-maven-plugin (提供了直接运行项目的插件:如果是通过parent方式继承spring-boot-starter-parent则不用此插件) -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
15 changes: 4 additions & 11 deletions cim-client/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@

▄████▄ ██▓ ███▄ ▄███▓
▒██▀ ▀█ ▓██▒▓██▒▀█▀ ██▒
▒▓█ ▄ ▒██▒▓██ ▓██░
▒▓▓▄ ▄██▒░██░▒██ ▒██
▒ ▓███▀ ░░██░▒██▒ ░██▒
░ ░▒ ▒ ░░▓ ░ ▒░ ░ ░
░ ▒ ▒ ░░ ░ ░
░ ▒ ░░ ░
░ ░ ░ ░
_ ___ __
____(_)_ _ ____/ (_)__ ___ / /_
/ __/ / ' \ / __/ / / -_) _ \/ __/
\__/_/_/_/_/ \__/_/_/\__/_//_/\__/
Power by @crossoverJie


Expand Down
2 changes: 1 addition & 1 deletion cim-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<version>1.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<version>1.0.1-SNAPSHOT</version>
<version>1.0.0-SNAPSHOT</version>

<artifactId>cim-common</artifactId>

Expand Down
16 changes: 0 additions & 16 deletions cim-forward-route/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,5 @@

</dependencies>

<build>
<plugins>
<!-- spring-boot-maven-plugin (提供了直接运行项目的插件:如果是通过parent方式继承spring-boot-starter-parent则不用此插件) -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ public class BeanConfig {
@Autowired
private AppConfiguration appConfiguration;

@Bean
public ZkClient buildZKClient() {
return new ZkClient(appConfiguration.getZkAddr(), appConfiguration.getZkConnectTimeout());
}

@Bean
public MetaStore metaStore() throws Exception {
Expand Down

This file was deleted.

This file was deleted.

15 changes: 4 additions & 11 deletions cim-forward-route/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@

▄████▄ ██▓ ███▄ ▄███▓
▒██▀ ▀█ ▓██▒▓██▒▀█▀ ██▒
▒▓█ ▄ ▒██▒▓██ ▓██░
▒▓▓▄ ▄██▒░██░▒██ ▒██
▒ ▓███▀ ░░██░▒██▒ ░██▒
░ ░▒ ▒ ░░▓ ░ ▒░ ░ ░
░ ▒ ▒ ░░ ░ ░
░ ▒ ░░ ░
░ ░ ░ ░
_ __
____(_)_ _ _______ __ __/ /____
/ __/ / ' \ / __/ _ \/ // / __/ -_)
\__/_/_/_/_/ /_/ \___/\_,_/\__/\__/
Power by @crossoverJie


Expand Down
Loading