This commit is contained in:
kevin.tumma@knecon.com 2023-06-28 11:13:26 +02:00
parent 512b7d3074
commit a9033d9455
20 changed files with 91 additions and 574 deletions

View File

@ -1,94 +0,0 @@
stages:
- lint
- build
- deploy
- release
default:
image:
name: "alpine/k8s:1.26.3"
variables:
PIPELINE:
description: "Defines which Path of the Pipeline"
value: "default"
options:
- release
- default
workflow:
name: "Pipeline for Merge Request: $merge_request_event"
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
PIPELINE: "release"
- if: $CI_COMMIT_REF_NAME =~ /release/
variables:
PIPELINE: "release"
- if: $CI_COMMIT_TAG
when: never
- if: $CI_PIPELINE_SOURCE == "push"
when: never
- if: "$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS"
when: never
Helm Lint:
stage: lint
image:
name: alpine/helm:3.11.1
entrypoint: ["/bin/sh", "-c"]
script:
- helm lint .
Helm Template:
stage: lint
image:
name: alpine/helm:3.11.1
entrypoint: ["/bin/sh", "-c"]
script:
- echo "Templating for Answerfile Container Upload"
- helm template . -f testanswers/answers-startup.yml
Kubescore:
stage: lint
image: zegl/kube-score:latest
script:
- echo "Scoring the Chart YAML"
- kube-score score Chart.yaml
Nexus Upload:
stage: release
needs:
- Helm Template
- Helm Lint
rules:
- if: $PIPELINE == "release"
image: registry.knecon.com/knecon/devops/build-image:latest
script:
- VERSION=$(cat Chart.yaml | grep "^version:" | sed 's/^version:\s\(.*\)$/\1/g')
- uploadFile=$( helm package . | awk 'NF>1{print q $NF}' )
- curl -s -u "${CI_NEXUS_USER}:${CI_NEXUS_PASSWORD}" "${CI_NEXUS_ADDRESS}:443/repository/red-dev/" --upload-file $uploadFile
- echo "FILE=$(echo $uploadFile)" >> variables.env
- echo "VERSION=$(echo $VERSION)" >> variables.env
artifacts:
reports:
dotenv: variables.env
Helm-pre-release:
stage: release
rules:
- if: $PIPELINE == "release"
needs:
- job: Nexus Upload
artifacts: true
image: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- echo "Releasing version $VERSION"
release:
tag_name: '$VERSION'
description: '$VERSION'
ref: '$CI_COMMIT_SHA'
assets:
links:
- name: '$FILE'
url: '${CI_NEXUS_ADDRESS}/repository/red-dev/$FILE'

23
.helmignore Normal file
View File

@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
# Ignore answer files.
answers-*

View File

@ -1,15 +1,13 @@
name: testsuite
apiVersion: v2
version: 4.0.0-74
appVersion: 4.0.0-74
version: 3.4.45
appVersion: 3.4.45
description: The one and only gin-testsuite
home: https://knecon.com
home: https://instantli.com
icon: https://instantli.com/wp-content/uploads/2018/11/testsuite.png
sources:
- https://gitlab.knecon.com
- https://git.iqser.com
maintainers:
- name: Lena Maldacker
email: lena.maldacker@knecon.com
- name: Rosario Allegro
email: rosario.allegro@knecon.com
- name: lmaldacker
email: lena.maldacker@iqser.com
engine: gotpl

View File

@ -28,7 +28,7 @@ spec:
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
env:
- name: GATEWAY_HOST
value: "persistence-service-v1"
value: "redaction-gateway-v1"
- name: GATEWAY_PORT
value: {{ .Values.basic.gatewayPort | quote }}
- name: AUTH_HOST
@ -51,32 +51,6 @@ spec:
value: {{ .Values.basic.gatewayPort | quote }}
- name: RUN_DEBUG_MODE
value: {{ .Values.basic.runDebugMode | quote }}
- name: REALM_1
value: {{ .Values.basic.realms.first.realm | quote }}
- name: REALM_EMAIL_1
value: {{ .Values.basic.realms.first.email | quote }}
- name: REALM_PASSWORD_1
{{- if .Values.basic.realms.first.existingSecret }}
valueFrom:
secretKeyRef:
name: {{ .Values.basic.realms.first.existingSecret.secretName }}
key: {{ .Values.basic.realms.first.existingSecret.secretKey }}
{{- else }}
value: {{ .Values.basic.realms.first.password | quote }}
{{- end }}
- name: REALM_2
value: {{ .Values.basic.realms.second.realm | quote }}
- name: REALM_EMAIL_2
value: {{ .Values.basic.realms.second.email | quote }}
- name: REALM_PASSWORD_2
{{- if .Values.basic.realms.second.existingSecret }}
valueFrom:
secretKeyRef:
name: {{ .Values.basic.realms.second.existingSecret.secretName }}
key: {{ .Values.basic.realms.second.existingSecret.secretKey }}
{{- else }}
value: {{ .Values.basic.realms.second.password | quote }}
{{- end }}
- name: NEXTCLOUD_USERNAME
value: {{ .Values.nextcloud.username | quote }}
- name: NEXTCLOUD_PASSWORD
@ -99,29 +73,6 @@ spec:
value: {{ .Values.test.config.loadtest.rps | quote }}
- name: LOADTEST_DURATION
value: {{ .Values.test.config.loadtest.duration | quote }}
- name: INFRA_USER
value: {{ .Values.test.config.infratest.user | quote }}
- name: INFRA_PASSWORD
{{- if .Values.test.config.infratest.existingSecret }}
valueFrom:
secretKeyRef:
name: {{ .Values.test.config.infratest.existingSecret.secretName }}
key: {{ .Values.test.config.infratest.existingSecret.secretKey }}
{{- else }}
value: {{ .Values.test.config.infratest.password | quote }}
{{- end }}
- name: INFRA_USERS
value: {{ .Values.test.config.infratest.users | quote }}
- name: INFRA_ITERATIONS
value: {{ .Values.test.config.infratest.iteratons | quote }}
- name: INFRA_DURATION_IN_MIN
value: {{ .Values.test.config.infratest.duration | quote }}
- name: RUN_CLEANUP_AFTER_PERF
value: {{ .Values.test.config.performancetest.run_cleanup | quote }}
- name: SLEEP_BEFORE_CHECKING_200_FILES_MINUTES
value: {{ .Values.test.config.performancetest.wait_time_200_files | quote }}
- name: CHECK_TIMEOUT_200_FILES_MINUTES
value: {{ .Values.test.config.performancetest.processing_timeout_200_files | quote }}
- name: SIGNATURE
value: {{ .Values.signature | quote }}
- name: SIGNATURE_PW
@ -140,19 +91,13 @@ spec:
value: {{ .Values.test.config.stats | quote }}
- name: ENABLE_METRICS
value: {{ .Values.test.metrics.enabled | quote }}
- name: UI_HOST
value: "ui-service-v1"
- name: UI_PORT
value: {{ .Values.basic.uiPort | quote }}
- name: UI_EXTERN_ADDRESS
value: {{ .Values.basic.uiExternAddress | quote }}
resources:
limits:
cpu: "2000m"
memory: "8192Mi"
memory: "4096Mi"
requests:
cpu: "500m"
memory: "4096Mi"
memory: "2048Mi"
volumeMounts:
- mountPath: /keys
name: ssh-keys-dvc

View File

@ -2,29 +2,20 @@
basic:
namespace:
server: redaction
realms:
first:
realm: 'redaction'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
second:
realm: 'redaction2'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
runVersion: stable_v2
runController: acceptance-v2
gatewayPort: 8080
keycloakDynamicUrl: true
keycloakPort: 443
disablePostgres: false
runDebugMode: false
runDebugMode: true
nextcloud:
username: 'syn_docs'
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
url: 'https://cloud.iqser.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
address: "ssh://git@git.iqser.com:2222/red/qa.git"
host: "vector.iqser.com"
user: "automated-ocr"
sshKey: |
-----BEGIN OPENSSH PRIVATE KEY-----

View File

@ -2,29 +2,20 @@
basic:
namespace:
server: redaction
realms:
first:
realm: 'redaction'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
second:
realm: 'redaction2'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
runVersion: stable_v2
runController: security-v2
gatewayPort: 8080
keycloakDynamicUrl: true
keycloakPort: 443
disablePostgres: false
runDebugMode: false
runDebugMode: true
nextcloud:
username: 'syn_docs'
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
url: 'https://cloud.iqser.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
address: "ssh://git@git.iqser.com:2222/red/qa.git"
host: "vector.iqser.com"
user: "automated-ocr"
sshKey: |
-----BEGIN OPENSSH PRIVATE KEY-----

View File

@ -2,15 +2,6 @@
basic:
namespace:
server: redaction
realms:
first:
realm: 'redaction'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
second:
realm: 'redaction2'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
runVersion: debug
runController: security-v2
gatewayPort: 8080
@ -21,10 +12,10 @@
nextcloud:
username: 'syn_docs'
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
url: 'https://cloud.iqser.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
address: "ssh://git@git.iqser.com:2222/red/qa.git"
host: "vector.iqser.com"
user: "automated-ocr"
sshKey: |
-----BEGIN OPENSSH PRIVATE KEY-----

View File

@ -2,15 +2,6 @@
basic:
namespace:
server: redaction
realms:
first:
realm: 'redaction'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
second:
realm: 'redaction2'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
runVersion: not_stable
runController: failing
gatewayPort: 8080
@ -21,10 +12,10 @@
nextcloud:
username: 'syn_docs'
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
url: 'https://cloud.iqser.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
address: "ssh://git@git.iqser.com:2222/red/qa.git"
host: "vector.iqser.com"
user: "automated-ocr"
sshKey: |
-----BEGIN OPENSSH PRIVATE KEY-----

View File

@ -2,29 +2,20 @@
basic:
namespace:
server: redaction
realms:
first:
realm: 'redaction'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
second:
realm: 'redaction2'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
runVersion: stable_v2
runController: function-v2
gatewayPort: 8080
keycloakDynamicUrl: true
keycloakPort: 443
disablePostgres: false
runDebugMode: false
runDebugMode: true
nextcloud:
username: 'syn_docs'
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
url: 'https://cloud.iqser.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
address: "ssh://git@git.iqser.com:2222/red/qa.git"
host: "vector.iqser.com"
user: "automated-ocr"
sshKey: |
-----BEGIN OPENSSH PRIVATE KEY-----

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2,11 +2,6 @@
basic:
namespace:
server: redaction
realms:
first:
realm: 'redaction'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
runVersion: stable_v2
runController: load
gatewayPort: 8080
@ -17,10 +12,10 @@
nextcloud:
username: 'syn_docs'
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
url: 'https://cloud.iqser.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
address: "ssh://git@git.iqser.com:2222/red/qa.git"
host: "vector.iqser.com"
user: "automated-ocr"
sshKey: |
-----BEGIN OPENSSH PRIVATE KEY-----

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -12,10 +12,10 @@
nextcloud:
username: 'syn_docs'
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
url: 'https://cloud.iqser.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
address: "ssh://git@git.iqser.com:2222/red/qa.git"
host: "vector.iqser.com"
user: "automated-ocr"
sshKey: |
-----BEGIN OPENSSH PRIVATE KEY-----

View File

@ -2,29 +2,20 @@
basic:
namespace:
server: redaction
realms:
first:
realm: 'redaction'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
second:
realm: 'redaction2'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
runVersion: stable_v2
runController: security-v2
gatewayPort: 8080
keycloakDynamicUrl: true
keycloakPort: 443
disablePostgres: false
runDebugMode: false
runDebugMode: true
nextcloud:
username: 'syn_docs'
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
url: 'https://cloud.iqser.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
address: "ssh://git@git.iqser.com:2222/red/qa.git"
host: "vector.iqser.com"
user: "automated-ocr"
sshKey: |
-----BEGIN OPENSSH PRIVATE KEY-----

View File

@ -2,29 +2,20 @@
basic:
namespace:
server: redaction
realms:
first:
realm: 'redaction'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
second:
realm: 'redaction2'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
runVersion: stable_v2
runController: smoke-v2
gatewayPort: 8080
keycloakDynamicUrl: true
keycloakPort: 443
disablePostgres: false
runDebugMode: false
runDebugMode: true
nextcloud:
username: 'syn_docs'
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
url: 'https://cloud.iqser.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
address: "ssh://git@git.iqser.com:2222/red/qa.git"
host: "vector.iqser.com"
user: "automated-ocr"
sshKey: |
-----BEGIN OPENSSH PRIVATE KEY-----

View File

@ -2,11 +2,6 @@
basic:
namespace:
server: redaction
realms:
first:
realm: 'redaction'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5'
runVersion: stable_v2
runController: startup
gatewayPort: 8080
@ -17,10 +12,10 @@
nextcloud:
username: 'syn_docs'
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
url: 'https://cloud.iqser.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
address: "ssh://git@git.iqser.com:2222/red/qa.git"
host: "vector.iqser.com"
user: "automated-ocr"
sshKey: |
-----BEGIN OPENSSH PRIVATE KEY-----

View File

@ -6,26 +6,9 @@
imagePullPolicy: Always
basic:
realms:
first:
realm: ""
email: ""
password: ""
# existingSecret:
# secretName: "initialization-job-redaction" #redaction is replaced with tenant name
# secretKey: "INIT_USER_PASSWORD"
second:
realm: ""
email: ""
password: ""
# existingSecret:
# secretName: "initialization-job-redaction" #redaction is replaced with tenant name
# secretKey: "INIT_USER_PASSWORD"
runVersion: current
runController: all
gatewayPort: 8080
uiPort: 8080
uiExternAddress: 'https://qa-ocr3.knecon.cloud/ui/redaction/main/dashboard'
keycloakDynamicUrl: false
keycloakURL: ''
keycloakPort: 443
@ -44,7 +27,7 @@
nextcloud:
username: ''
password: ''
url: 'https://cloud.knecon.com/remote.php/webdav'
url: 'https://cloud.iqser.com/remote.php/webdav'
test:
metrics:
@ -61,13 +44,5 @@
duration: 30
requests: 300
rps: 10
infratest:
iteratons: 180
duration: 60
users: 5
user: 'loadtest1@example.com'
password: ''
performancetest:
wait_time_200_files: '10'
processing_timeout_200_files: '50'
run_cleanup: true
testsuite_imagetag: ""