mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-11 09:42:11 +08:00
feat: add scripts verify shell check
This commit is contained in:
parent
b800f2d484
commit
ce438c59d4
@ -186,23 +186,6 @@ services:
|
||||
# server:
|
||||
# ipv4_address: ${OPENIM_SERVER_NETWORK_ADDRESS:-172.28.0.8}
|
||||
|
||||
### TODO: mysql is required to deploy the openim-chat component
|
||||
# mysql:
|
||||
# image: mysql:${MYSQL_IMAGE_VERSION:-5.7}
|
||||
# platform: linux/amd64
|
||||
# ports:
|
||||
# - "${MYSQL_PORT:-13306}:3306"
|
||||
# container_name: mysql
|
||||
# volumes:
|
||||
# - "${DATA_DIR:-./}/components/mysql/data:/var/lib/mysql"
|
||||
# - "/etc/localtime:/etc/localtime"
|
||||
# environment:
|
||||
# MYSQL_ROOT_PASSWORD: "${MYSQL_PASSWORD:-openIM123}"
|
||||
# restart: always
|
||||
# networks:
|
||||
# server:
|
||||
# ipv4_address: ${MYSQL_NETWORK_ADDRESS:-172.28.0.15}
|
||||
|
||||
# openim-chat:
|
||||
# image: ${IMAGE_REGISTRY:-ghcr.io/openimsdk}/openim-chat:${CHAT_IMAGE_VERSION:-main}
|
||||
# container_name: openim-chat
|
||||
|
||||
@ -932,7 +932,7 @@ openim::test::set_group_info() {
|
||||
{
|
||||
"groupInfoForSet": {
|
||||
"groupID": "${1}",
|
||||
"groupName": "new-name",
|
||||
"groupName": "new group name",
|
||||
"notification": "new notification",
|
||||
"introduction": "new introduction",
|
||||
"faceURL": "www.newfaceURL.com",
|
||||
@ -1076,6 +1076,7 @@ function openim::test::group() {
|
||||
|
||||
local GROUP_ID=$RANDOM
|
||||
local GROUP_ID2=$RANDOM
|
||||
|
||||
# Assumes that TEST_GROUP_ID, USER_ID, and other necessary IDs are set as environment variables before running this suite.
|
||||
# 0. Register a friend user.
|
||||
openim::test::user_register "${USER_ID}" "group00" "new_face_url"
|
||||
@ -1132,6 +1133,11 @@ function openim::test::group() {
|
||||
# 14. Set group info.
|
||||
openim::test::set_group_info "$GROUP_ID2"
|
||||
|
||||
for i in {1..50}; do
|
||||
local GROUP_IDS=$RANDOM
|
||||
openim::test::set_group_info "$GROUP_IDS"
|
||||
done
|
||||
|
||||
# 15. Quit group.
|
||||
# TODO
|
||||
# openim::test::quit_group "$GROUP_ID2" "$OTHER_USER1_ID"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user