Skip to content

Commit 083f3c7

Browse files
deploy: 44369b6
1 parent 36e28c7 commit 083f3c7

File tree

227 files changed

+10917
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+10917
-0
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
allure-report/
2+
allure-results/

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
indent_size = unset
13+
14+
[*.py]
15+
indent_size = 4
16+
17+
[{Dockerfile,Dockerfile.}*]
18+
indent_size = 4
19+
20+
[{Makefile,*.mk,go.mod,go.sum,*.go,.gitmodules}]
21+
indent_style = tab

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
scripts/docker/** linguist-vendored
2+
scripts/githooks/** linguist-vendored
3+
scripts/reports/** linguist-vendored
4+
scripts/terraform/** linguist-vendored
5+
scripts/tests/test.mk linguist-vendored
6+
scripts/init.mk linguist-vendored
7+
scripts/shellscript-linter.sh linguist-vendored

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# WARNING: Please, DO NOT edit this section of the file! It is maintained in the repository template.
2+
3+
.scannerwork
4+
*cloc*report*.json
5+
*sbom*report*.json
6+
*vulnerabilities*report*.json
7+
*report*json.zip
8+
.version
9+
10+
*.code-workspace
11+
!project.code-workspace
12+
13+
# Please, add your custom content below!
14+
15+
*.pyc
16+
*.png
17+
__pycache__/
18+
screenshots/
19+
.env
20+
venv/
21+
allure-results/
22+
allure-report/
23+
.js
24+
node_modules/
25+
package-lock.json

.gitleaksignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SEE: https://github.com/gitleaks/gitleaks/blob/master/README.md#gitleaksignore
2+
3+
cd9c0efec38c5d63053dd865e5d4e207c0760d91:docs/guides/Perform_static_analysis.md:generic-api-key:37
4+
1e6cd0c529846102b12aa16a9f85fc94b6cd03c5:helpers/playwrightHelper.py:ipv4:64

.tool-versions

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file is for you! Please, updated to the versions agreed by your team.
2+
3+
terraform 1.7.0
4+
pre-commit 3.6.0
5+
6+
# ==============================================================================
7+
# The section below is reserved for Docker image versions.
8+
9+
# TODO: Move this section - consider using a different file for the repository template dependencies.
10+
# docker/ghcr.io/anchore/grype v0.69.1@sha256:d41fcb371d0af59f311e72123dff46900ebd6d0482391b5a830853ee4f9d1a76 # SEE: https://github.com/anchore/grype/pkgs/container/grype
11+
# docker/ghcr.io/anchore/syft v0.92.0@sha256:63c60f0a21efb13e80aa1359ab243e49213b6cc2d7e0f8179da38e6913b997e0 # SEE: https://github.com/anchore/syft/pkgs/container/syft
12+
# docker/ghcr.io/gitleaks/gitleaks v8.18.0@sha256:fd2b5cab12b563d2cc538b14631764a1c25577780e3b7dba71657d58da45d9d9 # SEE: https://github.com/gitleaks/gitleaks/pkgs/container/gitleaks
13+
# docker/ghcr.io/igorshubovych/markdownlint-cli v0.37.0@sha256:fb3e79946fce78e1cde84d6798c6c2a55f2de11fc16606a40d49411e281d950d # SEE: https://github.com/igorshubovych/markdownlint-cli/pkgs/container/markdownlint-cli
14+
# docker/ghcr.io/make-ops-tools/gocloc latest@sha256:6888e62e9ae693c4ebcfed9f1d86c70fd083868acb8815fe44b561b9a73b5032 # SEE: https://github.com/make-ops-tools/gocloc/pkgs/container/gocloc
15+
# docker/ghcr.io/nhs-england-tools/github-runner-image 20230909-321fd1e-rt@sha256:ce4fd6035dc450a50d3cbafb4986d60e77cb49a71ab60a053bb1b9518139a646 # SEE: https://github.com/nhs-england-tools/github-runner-image/pkgs/container/github-runner-image
16+
# docker/hadolint/hadolint 2.12.0-alpine@sha256:7dba9a9f1a0350f6d021fb2f6f88900998a4fb0aaf8e4330aa8c38544f04db42 # SEE: https://hub.docker.com/r/hadolint/hadolint/tags
17+
# docker/hashicorp/terraform 1.5.6@sha256:180a7efa983386a27b43657ed610e9deed9e6c3848d54f9ea9b6cb8a5c8c25f5 # SEE: https://hub.docker.com/r/hashicorp/terraform/tags
18+
# docker/jdkato/vale v2.29.7@sha256:5ccfac574231b006284513ac3e4e9f38833989d83f2a68db149932c09de85149 # SEE: https://hub.docker.com/r/jdkato/vale/tags
19+
# docker/koalaman/shellcheck latest@sha256:e40388688bae0fcffdddb7e4dea49b900c18933b452add0930654b2dea3e7d5c # SEE: https://hub.docker.com/r/koalaman/shellcheck/tags
20+
# docker/mstruebing/editorconfig-checker 2.7.1@sha256:dd3ca9ea50ef4518efe9be018d669ef9cf937f6bb5cfe2ef84ff2a620b5ddc24 # SEE: https://hub.docker.com/r/mstruebing/editorconfig-checker/tags
21+
# docker/sonarsource/sonar-scanner-cli 5.0.1@sha256:494ecc3b5b1ee1625bd377b3905c4284e4f0cc155cff397805a244dee1c7d575 # SEE: https://hub.docker.com/r/sonarsource/sonar-scanner-cli/tags

.vscode/extensions.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"recommendations": [
3+
"alefragnani.bookmarks",
4+
"davidanson.vscode-markdownlint",
5+
"dbaeumer.vscode-eslint",
6+
"donjayamanne.githistory",
7+
"eamodio.gitlens",
8+
"editorconfig.editorconfig",
9+
"esbenp.prettier-vscode",
10+
"github.codespaces",
11+
"github.github-vscode-theme",
12+
"github.remotehub",
13+
"github.vscode-github-actions",
14+
"github.vscode-pull-request-github",
15+
"hediet.vscode-drawio",
16+
"johnpapa.vscode-peacock",
17+
"mhutchie.git-graph",
18+
"ms-azuretools.vscode-docker",
19+
"ms-vscode-remote.remote-containers",
20+
"ms-vscode-remote.remote-wsl",
21+
"ms-vscode.hexeditor",
22+
"ms-vscode.live-server",
23+
"ms-vsliveshare.vsliveshare",
24+
"redhat.vscode-xml",
25+
"streetsidesoftware.code-spell-checker-british-english",
26+
"tamasfe.even-better-toml",
27+
"tomoki1207.pdf",
28+
"vscode-icons-team.vscode-icons",
29+
"vstirbu.vscode-mermaid-preview",
30+
"wayou.vscode-todo-highlight",
31+
"yzane.markdown-pdf",
32+
"yzhang.dictionary-completion",
33+
"yzhang.markdown-all-in-one"
34+
],
35+
"unwantedRecommendations": []
36+
}

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"markdownlint.config": {
3+
"MD013": false,
4+
"MD024": { "siblings_only": true },
5+
"MD033": false
6+
},
7+
"python.testing.unittestEnabled": false,
8+
"python.testing.pytestEnabled": true,
9+
"cSpell.words": [
10+
"immunisation",
11+
"organisation"
12+
]
13+
}

Docker/tests.dockerfile

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
FROM python:3.11
2+
3+
RUN apt-get update && apt-get install -y \
4+
curl \
5+
default-jre \
6+
default-jdk \
7+
libgtk-3-0 \
8+
libgbm-dev \
9+
libxkbcommon-x11-0 \
10+
libxcomposite1 \
11+
libxdamage1 \
12+
libxrandr2 \
13+
libxss1 \
14+
libxtst6 \
15+
libnss3 \
16+
libnspr4 \
17+
fonts-noto-cjk \
18+
fonts-noto-color-emoji \
19+
fonts-noto-core \
20+
fonts-noto-hinted \
21+
fonts-noto-ui-core \
22+
fonts-noto-unhinted
23+
24+
WORKDIR /app
25+
26+
COPY requirements.txt .
27+
28+
RUN pip install --no-cache-dir -r requirements.txt \
29+
&& pip install tox \
30+
&& pip install --upgrade playwright \
31+
&& playwright install \
32+
&& playwright install --force chrome \
33+
&& playwright install --force msedge \
34+
&& playwright install --force webkit \
35+
&& playwright install-deps \
36+
&& curl -o allure-commandline-2.17.3.tgz -Ls https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.17.3/allure-commandline-2.17.3.tgz \
37+
&& tar -zxvf allure-commandline-2.17.3.tgz -C /opt/ \
38+
&& ln -s /opt/allure-2.17.3/bin/allure /usr/bin/allure \
39+
&& rm -rf allure-commandline-2.17.3.tgz \
40+
&& allure --version
41+
42+
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
43+
&& locale-gen "en_GB.UTF-8"
44+
ENV LANG=en_GB.UTF-8 \
45+
LANGUAGE=en_GB:en \
46+
LC_ALL=en_GB.UTF-8
47+
48+
49+
# Expose port for Allure server
50+
EXPOSE 5050
51+
52+
COPY . .
53+
54+
# Update the entrypoint to start both Allure server and tox
55+
ENTRYPOINT ["tox"]
56+
# ENTRYPOINT [ "bash" ]

LICENCE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT Licence
2+
3+
Copyright (c) 2023 Crown Copyright NHS England.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)