Compare commits

..

2 Commits

Author SHA1 Message Date
Andrei0123
d85158bc68 RED-7849: Adjust answer file 2023-10-27 13:07:20 +03:00
Andrei0123
5580618917 RED-7849: Answer file for ui tests 2023-10-27 12:34:02 +03:00
28 changed files with 52 additions and 316 deletions

View File

@ -49,7 +49,7 @@ Helm Template:
entrypoint: ["/bin/sh", "-c"]
script:
- echo "Templating for Answerfile Container Upload"
- helm template .
- helm template . -f testanswers/answers-startup.yml
Kubescore:
stage: lint
@ -106,4 +106,4 @@ Helm-pre-release:
assets:
links:
- name: '$FILE'
url: '${CI_NEXUS_ADDRESS}/repository/red-dev/$FILE'
url: '${CI_NEXUS_ADDRESS}/repository/red-dev/$FILE'

View File

@ -1,6 +0,0 @@
dependencies:
- name: mailpit
repository: https://jouve.github.io/charts
version: 0.18.1
digest: sha256:b98d7b2240c5db92c98e7a05079ef2c0d8522a847cdf4a4cdd25d6c0e02e5f30
generated: "2024-07-01T15:47:17.121913226+02:00"

View File

@ -1,7 +1,7 @@
name: testsuite
apiVersion: v2
version: 4.0.1-0
appVersion: 4.0.0-110
version: 4.0.0-93
appVersion: 4.0.0-93
description: The one and only gin-testsuite
home: https://knecon.com
icon: https://instantli.com/wp-content/uploads/2018/11/testsuite.png
@ -12,9 +12,4 @@ maintainers:
email: lena.maldacker@knecon.com
- name: Rosario Allegro
email: rosario.allegro@knecon.com
dependencies:
- name: mailpit
version: ~0.18.1
repository: https://jouve.github.io/charts
condition: mailpit.enabled
engine: gotpl

View File

@ -13,7 +13,7 @@ As of version 5.0, this chart uses Prometheus 2.1. This version of prometheus in
Assuming you have an existing release of the prometheus chart, named `prometheus-old`. In order to update to prometheus 2.1 while keeping your old data do the following:
1. Update the `prometheus-old` release. Disable scraping on every component besides the prometheus server, similar to the configuration below:
```
alertmanager:
enabled: false

View File

@ -1,4 +0,0 @@
global:
imageRegistry: "nexus.knecon.com:5001"
imagePullSecrets:
- knecon

Binary file not shown.

View File

@ -1,4 +1,3 @@
{{- if not .Values.global.testsuite_ui.enabled }}
apiVersion: batch/v1
kind: Job
metadata:
@ -48,6 +47,8 @@ spec:
value: {{ .Values.basic.runVersion | quote }}
- name: RUN_CONTROLLER
value: {{ .Values.basic.runController | quote }}
- name: GATEWAY_PORT
value: {{ .Values.basic.gatewayPort | quote }}
- name: RUN_DEBUG_MODE
value: {{ .Values.basic.runDebugMode | quote }}
- name: REALM_1
@ -82,16 +83,6 @@ spec:
value: {{ .Values.nextcloud.password | quote }}
- name: NEXTCLOUD_URL
value: {{ .Values.nextcloud.url | quote }}
- name: NEXUS_USER
value: {{ .Values.nexus.user | quote }}
- name: NEXUS_PW
value: {{ .Values.nexus.pw | quote }}
- name: NEXUS_ADDRESS
value: {{ .Values.nexus.address | quote }}
- name: NEXUS_REPOSITORY
value: {{ .Values.nexus.repository | quote }}
- name: NEXUS_GROUP
value: {{ .Values.nexus.group | quote }}
- name: CONTENT_PROCESSING_TIMEOUT
value: "10"
- name: WARMUP_WAIT_TIME
@ -108,10 +99,6 @@ spec:
value: {{ .Values.test.config.loadtest.rps | quote }}
- name: LOADTEST_DURATION
value: {{ .Values.test.config.loadtest.duration | quote }}
- name: DEBUG_FILE
value: {{ .Values.test.config.debug.file | quote }}
- name: DEBUG_DOSSIER
value: {{ .Values.test.config.debug.dossier | quote }}
- name: INFRA_USER
value: {{ .Values.test.config.infratest.user | quote }}
- name: INFRA_PASSWORD
@ -153,12 +140,12 @@ 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_HOST
value: {{ .Values.basic.uiHost | quote }}
- name: RUN_LOCALLY
value: {{ .Values.basic.runLocally | quote }}
- name: UI_EXTERN_ADDRESS
value: {{ .Values.basic.uiExternAddress | quote }}
resources:
limits:
cpu: "2000m"
@ -166,7 +153,6 @@ spec:
requests:
cpu: "500m"
memory: "4096Mi"
{{- if and (.Values.dvc) (.Values.dvc.sshKey) }}
volumeMounts:
- mountPath: /keys
name: ssh-keys-dvc
@ -177,5 +163,3 @@ spec:
secret:
defaultMode: 0400
secretName: ssh-keys-dvc
{{- end }}
{{- end }}

View File

@ -1,176 +0,0 @@
{{- if .Values.global.testsuite_ui.enabled }}
apiVersion: batch/v1
kind: Job
metadata:
name: testsuite
spec:
backoffLimit: 0
completions: 1
parallelism: 1
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
prometheus.io/path: "/metrics"
spec:
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.global.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
restartPolicy: Never
containers:
- name: testsuite
image: "{{ .Values.global.imageRegistry }}/red/testsuite-ui:{{ .Values.global.testsuite_ui.version }}"
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
env:
- name: GATEWAY_HOST
value: "persistence-service-v1"
- name: GATEWAY_PORT
value: {{ .Values.basic.gatewayPort | quote }}
- name: AUTH_HOST
{{- if .Values.basic.keycloakDynamicUrl }}
value: "keycloak"
{{- else }}
value: {{ .Values.basic.keycloakURL | quote }}
{{- end }}
- name: AUTH_PORT
value: {{ .Values.basic.keycloakPort | quote }}
- name: TEST_DOC_COUNT
value: "19"
- name: RUN_LOCALLY
value: {{ .Values.basic.runLocally | quote }}
- name: RUN_VERSION
value: {{ .Values.basic.runVersion | quote }}
- name: RUN_CONTROLLER
value: {{ .Values.basic.runController | 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
value: {{ .Values.nextcloud.password | quote }}
- name: NEXTCLOUD_URL
value: {{ .Values.nextcloud.url | quote }}
- name: NEXUS_USER
value: {{ .Values.nexus.user | quote }}
- name: NEXUS_PW
value: {{ .Values.nexus.pw | quote }}
- name: NEXUS_ADDRESS
value: {{ .Values.nexus.address | quote }}
- name: NEXUS_REPOSITORY
value: {{ .Values.nexus.repository | quote }}
- name: NEXUS_GROUP
value: {{ .Values.nexus.group | quote }}
- name: CONTENT_PROCESSING_TIMEOUT
value: "10"
- name: WARMUP_WAIT_TIME
value: {{ .Values.test.config.warmup_wait_time | quote }}
- name: DISCOVERY_RETRIES
value: {{ .Values.test.config.discovery.retries | quote }}
- name: DISCOVERY_TIMEOUT
value: {{ .Values.test.config.discovery.timeout | quote }}
- name: LOADTEST_USERS
value: {{ .Values.test.config.loadtest.users | quote }}
- name: LOADTEST_REQUESTS
value: {{ .Values.test.config.loadtest.requests | quote }}
- name: LOADTEST_RPS
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
value: {{ .Values.signaturePW | quote }}
- name: DVC_ADDRESS
value: {{ .Values.dvc.address | quote }}
- name: DVC_HOST
value: {{ .Values.dvc.host | quote }}
- name: DVC_USER
value: {{ .Values.dvc.user | quote }}
- name: RUN_BURN_MINUTES
value: "10"
- name: PARSE_BURN_OUTPUT
value: "false"
- name: STABLE_STATS
value: {{ .Values.test.config.stats | quote }}
- name: ENABLE_METRICS
value: {{ .Values.test.metrics.enabled | quote }}
- name: UI_PORT
value: {{ .Values.basic.uiPort | quote }}
- name: UI_HOST
value: {{ .Values.basic.uiHost | quote }}
- name: RUN_LOCALLY
value: {{ .Values.basic.runLocally | quote }}
resources:
limits:
cpu: "2000m"
memory: "8192Mi"
requests:
cpu: "500m"
memory: "4096Mi"
{{- if and (.Values.dvc) (.Values.dvc.sshKey) }}
volumeMounts:
- mountPath: /keys
name: ssh-keys-dvc
readOnly: true
volumes:
# ToDo add known_hosts
- name: ssh-keys-dvc
secret:
defaultMode: 0400
secretName: ssh-keys-dvc
{{- end }}
{{- end }}

View File

@ -23,7 +23,7 @@
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -23,7 +23,7 @@
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -12,7 +12,7 @@
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5!'
runVersion: debug
runController: debug
runController: security-v2
gatewayPort: 8080
keycloakDynamicUrl: true
keycloakPort: 443
@ -23,7 +23,7 @@
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |
@ -81,6 +81,3 @@
duration: '10'
smoketest:
warmupWaitTime: '30'
debug:
file: 'huge/Rules_File_500MB.pdf'
dossier: 'performance_project_huge'

View File

@ -23,7 +23,7 @@
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -23,7 +23,7 @@
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -21,7 +21,7 @@
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -23,7 +23,7 @@
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -19,7 +19,7 @@
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -20,7 +20,7 @@
disablePostgres: false
runDebugMode: false
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -22,7 +22,7 @@
disablePostgres: false
runDebugMode: true
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -27,7 +27,7 @@
run_cleanup: true
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -14,7 +14,7 @@
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g!'
url: 'https://cloud.knecon.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -23,7 +23,7 @@
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -23,7 +23,7 @@
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

View File

@ -19,7 +19,7 @@
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
dvc:
address: "https://qa:glpat-N49LyscqRkzM-X42Wsca@gitlab.knecon.com/redactmanager/qa/testsuite.git"
address: "https://qa:glpat-ykugxhDzKX3hn9rFemHh@gitlab.knecon.com/redactmanager/qa/testsuite.git"
host: "vector.knecon.com"
user: "automated-ocr"
sshKey: |

File diff suppressed because one or more lines are too long

View File

@ -1,40 +0,0 @@
---
basic:
namespace:
server: redaction
realms:
first:
realm: 'documine1'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5!'
runVersion: stable_v2
runController: "dm-startup"
gatewayPort: 8080
keycloakDynamicUrl: true
keycloakPort: 443
disablePostgres: false
runDebugMode: true
nextcloud:
username: 'syn_docs'
password: 'Gc2lwTqkTzuRjfdpCiBr3gLHmlXtpb5cPVGokvaJF7g'
url: 'https://cloud.knecon.com/remote.php/webdav'
nexus:
user: 'automated-tests'
pw: '58&bSTwaSDzsMW4K'
address: 'https:/nexus.knecon.com/'
repository: 'qa-testdata'
group: '/dm'
test:
metrics:
enabled: false
config:
content_processing_timeout: '10'
warmup_wait_time: '0'
discovery:
retries: '20'
timeout: '20'
loadtest:
users: '10'
duration: '10'
smoketest:
warmupWaitTime: '30'

View File

@ -1,20 +0,0 @@
---
global:
testsuite_ui:
enabled: true
basic:
namespace:
server: redaction
realms:
first:
realm: 'redaction'
email: 'admin@example.com'
password: 'JY9FGedkjL4APfg3qku8CuvwP9R3j5!'
uiPort: 8080
uiHost: 'ui-service'
nexus:
user: 'automated-tests'
pw: '58&bSTwaSDzsMW4K'
address: 'https://nexus.knecon.com/'
repository: 'qa-testdata'
group: '/ui'

View File

@ -4,9 +4,6 @@
imagePullSecrets:
- knecon
imagePullPolicy: Always
testsuite_ui:
enabled: false
version: 0.8.0
basic:
realms:
@ -28,13 +25,12 @@
runController: all
gatewayPort: 8080
uiPort: 8080
uiHost: 'ui-service-v1'
uiExternAddress: 'https://qa-ocr3.knecon.cloud/ui/redaction/main/dashboard'
keycloakDynamicUrl: false
keycloakURL: ''
keycloakPort: 443
runDebugMode: false
disablePostgres: false
runLocally: false
protractor:
enabled: false
dockerTag: 4.0.1
@ -50,13 +46,6 @@
password: ''
url: 'https://cloud.knecon.com/remote.php/webdav'
nexus:
user: ''
pw: ''
address: ''
repository: ''
group: ''
test:
metrics:
enabled: false
@ -81,10 +70,4 @@
performancetest:
wait_time_200_files: '10'
processing_timeout_200_files: '50'
run_cleanup: true
debug:
file: 'huge/Rules_File_500MB.pdf'
dossier: 'performance_project_huge'
mailpit:
enabled: false
run_cleanup: true