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

adding unit testing in pipeline.yaml #74

Merged
merged 2 commits into from
Apr 29, 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
19 changes: 19 additions & 0 deletions .tekton/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,24 @@ spec:
workspaces:
- name: source
workspace: pipeline-workspace
- name: testing
params:
- name: PYTEST_ARGS
value:
- '--pspec'
- '--cov=service'
- '--cov-fail-under=95'
- name: SECRET_NAME
value: postgres-creds
- name: SECRET_KEY
value: database_uri
runAfter:
- git-clone
taskRef:
kind: Task
name: pytest-env
workspaces:
- name: source
workspace: pipeline-workspace
workspaces:
- name: pipeline-workspace
Empty file added Agent
Empty file.
5 changes: 2 additions & 3 deletions k8s/postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,5 @@ metadata:
name: postgres-creds
data:
password: cGdzM2NyM3Q=
database_uri: |
cG9zdGdyZXNxbCtwc3ljb3BnOi8vcG9zdGdyZXM6cGdzM2NyM3RAcG9zdGdyZXM6NTQzMi9wZXRz
dG9yZQ==
database_uri:
cG9zdGdyZXNxbCtwc3ljb3BnOi8vcG9zdGdyZXM6cGdzM2NyM3RAcG9zdGdyZXM6NTQzMi9wcm9tb3Rpb25z
17 changes: 0 additions & 17 deletions k8s/secret.yaml

This file was deleted.

Loading