From 545fb2d1fe2cc9f01aaccab35647fd4c80040c3d Mon Sep 17 00:00:00 2001 From: Irina Lamarr Date: Sun, 17 Dec 2023 07:42:34 -0500 Subject: [PATCH] added link task --- tekton/pipeline.yaml | 14 ++++++++++++++ tests/test_routes.py | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/tekton/pipeline.yaml b/tekton/pipeline.yaml index 1c238b3..97c4b18 100644 --- a/tekton/pipeline.yaml +++ b/tekton/pipeline.yaml @@ -36,3 +36,17 @@ spec: value: $(params.branch) runAfter: - init + + - name: lint + workspaces: + - name: source + workspace: pipeline-workspace + taskRef: + name: flake8 + params: + - name: image + value: "python:3.9-slim" + - name: args + value: ["--count","--max-complexity=10","--max-line-length=127","--statistics"] + runAfter: + - clone diff --git a/tests/test_routes.py b/tests/test_routes.py index 36eeb72..6cc0564 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -187,7 +187,7 @@ def test_security_headers(self): } for key, value in headers.items(): self.assertEqual(response.headers.get(key), value) - + def test_cors_security(self): """It should return a CORS header""" response = self.client.get('/', environ_overrides=HTTPS_ENVIRON)