Unify integration test configs. (#15650)

tokarchuk/v1.17
KN4CK3R 4 years ago committed by GitHub
parent 67e10397af
commit ca0460beb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      integrations/mssql.ini.tmpl
  2. 10
      integrations/mysql.ini.tmpl
  3. 26
      integrations/mysql8.ini.tmpl
  4. 15
      integrations/pgsql.ini.tmpl
  5. 16
      integrations/sqlite.ini.tmpl

@ -10,9 +10,10 @@ PASSWD = {{TEST_MSSQL_PASSWORD}}
SSL_MODE = disable
[indexer]
ISSUE_INDEXER_PATH = integrations/indexers-mssql/issues.bleve
ISSUE_INDEXER_PATH = integrations/gitea-integration-mssql/indexers/issues.bleve
ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-mssql/indexers/issues.queue
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = integrations/indexers-mssql/repos.bleve
REPO_INDEXER_PATH = integrations/gitea-integration-mssql/indexers/repos.bleve
[queue.code_indexer]
TYPE = immediate
@ -24,8 +25,10 @@ TYPE = immediate
ROOT = {{REPO_TEST_DIR}}integrations/gitea-integration-mssql/gitea-repositories
[repository.local]
LOCAL_COPY_PATH = tmp/local-repo-mssql
LOCAL_WIKI_PATH = tmp/local-wiki-mssql
LOCAL_COPY_PATH = integrations/gitea-integration-mssql/tmp/local-repo
[repository.upload]
TEMP_PATH = integrations/gitea-integration-mssql/tmp/uploads
[repository.signing]
SIGNING_KEY = none
@ -39,14 +42,14 @@ SSH_LISTEN_HOST = localhost
SSH_PORT = 2201
START_SSH_SERVER = true
LFS_START_SERVER = true
LFS_CONTENT_PATH = integrations/gitea-integration-mssql/data/lfs-mssql
LFS_CONTENT_PATH = integrations/gitea-integration-mssql/data/lfs
OFFLINE_MODE = false
LFS_JWT_SECRET = Tv_MjmZuHqpIY6GFl12ebgkRAMt4RlWt0v4EHKSXO0w
APP_DATA_PATH = integrations/gitea-integration-mssql/data
BUILTIN_SSH_SERVER_USER = git
[attachment]
PATH = integrations/gitea-integration-mssql/data
PATH = integrations/gitea-integration-mssql/data/attachments
[mailer]
ENABLED = true

@ -12,9 +12,9 @@ SSL_MODE = disable
[indexer]
ISSUE_INDEXER_TYPE = elasticsearch
ISSUE_INDEXER_CONN_STR = http://elastic:changeme@elasticsearch:9200
ISSUE_INDEXER_PATH = integrations/indexers-mysql/issues.bleve
ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-mysql/indexers/issues.queue
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = integrations/indexers-mysql/repos.bleve
REPO_INDEXER_PATH = integrations/gitea-integration-mysql/indexers/repos.bleve
[queue.code_indexer]
TYPE = immediate
@ -26,8 +26,10 @@ TYPE = immediate
ROOT = {{REPO_TEST_DIR}}integrations/gitea-integration-mysql/gitea-repositories
[repository.local]
LOCAL_COPY_PATH = tmp/local-repo-mysql
LOCAL_WIKI_PATH = tmp/local-wiki-mysql
LOCAL_COPY_PATH = integrations/gitea-integration-mysql/tmp/local-repo
[repository.upload]
TEMP_PATH = integrations/gitea-integration-mysql/tmp/uploads
[repository.signing]
SIGNING_KEY = none

@ -10,9 +10,10 @@ PASSWD = {{TEST_MYSQL8_PASSWORD}}
SSL_MODE = disable
[indexer]
ISSUE_INDEXER_PATH = integrations/indexers-mysql8/issues.bleve
ISSUE_INDEXER_PATH = integrations/gitea-integration-mysql8/indexers/issues.bleve
ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-mysql8/indexers/issues.queue
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = integrations/indexers-mysql8/repos.bleve
REPO_INDEXER_PATH = integrations/gitea-integration-mysql8/indexers/repos.bleve
[queue.code_indexer]
TYPE = immediate
@ -24,8 +25,10 @@ TYPE = immediate
ROOT = {{REPO_TEST_DIR}}integrations/gitea-integration-mysql8/gitea-repositories
[repository.local]
LOCAL_COPY_PATH = tmp/local-repo-mysql8
LOCAL_WIKI_PATH = tmp/local-wiki-mysql8
LOCAL_COPY_PATH = integrations/gitea-integration-mysql8/tmp/local-repo
[repository.upload]
TEMP_PATH = integrations/gitea-integration-mysql8/tmp/uploads
[repository.signing]
SIGNING_KEY = none
@ -39,12 +42,15 @@ SSH_LISTEN_HOST = localhost
SSH_PORT = 2204
START_SSH_SERVER = true
LFS_START_SERVER = true
LFS_CONTENT_PATH = data/lfs-mysql8
LFS_CONTENT_PATH = integrations/gitea-integration-mysql8/data/lfs
OFFLINE_MODE = false
LFS_JWT_SECRET = Tv_MjmZuHqpIY6GFl12ebgkRAMt4RlWt0v4EHKSXO0w
APP_DATA_PATH = integrations/gitea-integration-mysql8/data
BUILTIN_SSH_SERVER_USER = git
[attachment]
PATH = integrations/gitea-integration-mysql8/data/attachments
[mailer]
ENABLED = false
@ -60,12 +66,14 @@ DEFAULT_ALLOW_CREATE_ORGANIZATION = true
NO_REPLY_ADDRESS = noreply.example.org
[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = false
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = false
AVATAR_UPLOAD_PATH = integrations/gitea-integration-mysql8/data/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = integrations/gitea-integration-mysql8/data/repo-avatars
[session]
PROVIDER = file
PROVIDER_CONFIG = data/sessions-mysql8
PROVIDER_CONFIG = integrations/gitea-integration-mysql8/data/sessions
[log]
MODE = test,file
@ -80,10 +88,8 @@ COLORIZE = true
[log.file]
LEVEL = Debug
[security]
DISABLE_GIT_HOOKS = false
INSTALL_LOCK = true
SECRET_KEY = 9pCviYTWSb
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0OTU1NTE2MTh9.hhSVGOANkaKk3vfCd2jDOIww4pUk0xtg9JRde5UogyQ

@ -11,9 +11,10 @@ SCHEMA = {{TEST_PGSQL_SCHEMA}}
SSL_MODE = disable
[indexer]
ISSUE_INDEXER_PATH = integrations/indexers-pgsql/issues.bleve
ISSUE_INDEXER_PATH = integrations/gitea-integration-pgsql/indexers/issues.bleve
ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-pgsql/indexers/issues.queue
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = integrations/indexers-pgsql/repos.bleve
REPO_INDEXER_PATH = integrations/gitea-integration-pgsql/indexers/repos.bleve
[queue.code_indexer]
TYPE = immediate
@ -25,8 +26,10 @@ TYPE = immediate
ROOT = {{REPO_TEST_DIR}}integrations/gitea-integration-pgsql/gitea-repositories
[repository.local]
LOCAL_COPY_PATH = tmp/local-repo-pgsql
LOCAL_WIKI_PATH = tmp/local-wiki-pgsql
LOCAL_COPY_PATH = integrations/gitea-integration-pgsql/tmp/local-repo
[repository.upload]
TEMP_PATH = integrations/gitea-integration-pgsql/tmp/uploads
[repository.signing]
SIGNING_KEY = none
@ -40,14 +43,14 @@ SSH_LISTEN_HOST = localhost
SSH_PORT = 2202
START_SSH_SERVER = true
LFS_START_SERVER = true
LFS_CONTENT_PATH = integrations/gitea-integration-pgsql/data/lfs-pgsql
LFS_CONTENT_PATH = integrations/gitea-integration-pgsql/data/lfs
OFFLINE_MODE = false
LFS_JWT_SECRET = Tv_MjmZuHqpIY6GFl12ebgkRAMt4RlWt0v4EHKSXO0w
APP_DATA_PATH = integrations/gitea-integration-pgsql/data
BUILTIN_SSH_SERVER_USER = git
[attachment]
PATH = integrations/gitea-integration-pgsql/data
PATH = integrations/gitea-integration-pgsql/data/attachments
[mailer]
ENABLED = true

@ -6,9 +6,10 @@ DB_TYPE = sqlite3
PATH = integrations/gitea-integration-sqlite/gitea.db
[indexer]
ISSUE_INDEXER_PATH = integrations/indexers-sqlite/issues.bleve
ISSUE_INDEXER_PATH = integrations/gitea-integration-sqlite/indexers/issues.bleve
ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-sqlite/indexers/issues.queue
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = integrations/indexers-sqlite/repos.bleve
REPO_INDEXER_PATH = integrations/gitea-integration-sqlite/indexers/repos.bleve
[queue.code_indexer]
TYPE = immediate
@ -20,8 +21,10 @@ TYPE = immediate
ROOT = {{REPO_TEST_DIR}}integrations/gitea-integration-sqlite/gitea-repositories
[repository.local]
LOCAL_COPY_PATH = tmp/local-repo-sqlite
LOCAL_WIKI_PATH = tmp/local-wiki-sqlite
LOCAL_COPY_PATH = integrations/gitea-integration-sqlite/tmp/local-repo
[repository.upload]
TEMP_PATH = integrations/gitea-integration-sqlite/tmp/uploads
[repository.signing]
SIGNING_KEY = none
@ -35,7 +38,7 @@ SSH_LISTEN_HOST = localhost
SSH_PORT = 2203
START_SSH_SERVER = true
LFS_START_SERVER = true
LFS_CONTENT_PATH = integrations/gitea-integration-sqlite/data
LFS_CONTENT_PATH = integrations/gitea-integration-sqlite/data/lfs
OFFLINE_MODE = false
LFS_JWT_SECRET = Tv_MjmZuHqpIY6GFl12ebgkRAMt4RlWt0v4EHKSXO0w
APP_DATA_PATH = integrations/gitea-integration-sqlite/data
@ -43,7 +46,7 @@ ENABLE_GZIP = true
BUILTIN_SSH_SERVER_USER = git
[attachment]
PATH = integrations/gitea-integration-sqlite/data
PATH = integrations/gitea-integration-sqlite/data/attachments
[mailer]
ENABLED = true
@ -67,7 +70,6 @@ ENABLE_FEDERATED_AVATAR = false
AVATAR_UPLOAD_PATH = integrations/gitea-integration-sqlite/data/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = integrations/gitea-integration-sqlite/data/repo-avatars
[session]
PROVIDER = file
PROVIDER_CONFIG = integrations/gitea-integration-sqlite/data/sessions

Loading…
Cancel
Save