generated from NHSDigital/nhs-notify-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Component Tests on Pipeline #227
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
Open
Namitha-Prabhu
wants to merge
70
commits into
main
Choose a base branch
from
feature/CCM-12180-TestsOnPipeline
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
e5cfae1
script
Namitha-Prabhu 0d7458d
CCM-12180: acceptance stage internal invoke
masl2 4999505
CCM-12180: correct infraRepo name param
masl2 c021822
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
masl2 104851e
CCM-12180: add override project and role
masl2 d6c1239
CCM-12180: override project
masl2 a424ceb
CCM-12180: remove callerId param
masl2 29fdc70
fix tests
Namitha-Prabhu 038076e
remove generate-output
Namitha-Prabhu 223d427
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
Namitha-Prabhu d18d495
tests
Namitha-Prabhu d161b85
merge
Namitha-Prabhu 787face
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
Namitha-Prabhu b154794
merge
Namitha-Prabhu 10326e9
merge
Namitha-Prabhu d78a8c7
merge
Namitha-Prabhu dcead20
tests
Namitha-Prabhu 116c323
fix unit tests
Namitha-Prabhu 1d35f02
fix unit tests
Namitha-Prabhu ffdf716
fix unit tests
Namitha-Prabhu 7e8533f
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
masl2 c5d9b9e
dependencies
masl2 20c5fd0
fix jest configurations
masl2 1fbbb52
event package version
masl2 7c57d35
lint fixes
Namitha-Prabhu fb0ebd9
lint fixes
Namitha-Prabhu 9aaab4c
Merge branch 'feature/CCM-12180-TestsOnPipeline' of https://github.co…
Namitha-Prabhu 52bf92b
remove duplicate variable defs
masl2 c8c3fd8
Merge branch 'feature/CCM-12180-TestsOnPipeline' of https://github.co…
Namitha-Prabhu 4750470
remove test archive
Namitha-Prabhu d3aba34
suppress test data false positive
masl2 1adba99
imports
Namitha-Prabhu df1261c
checks for supplier data
Namitha-Prabhu 7f06b68
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
Namitha-Prabhu 49fd69b
tests
Namitha-Prabhu d0c63e1
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
masl2 5685221
merge
Namitha-Prabhu 7f920cc
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
Namitha-Prabhu 7636dda
Merge branch 'feature/CCM-12180-TestsOnPipeline' of https://github.co…
Namitha-Prabhu 3e38147
version
Namitha-Prabhu 0843041
lock file
Namitha-Prabhu 93f72a7
lock file
Namitha-Prabhu f531aaf
fix
Namitha-Prabhu ecb88e8
fix
Namitha-Prabhu 6bed21e
fix
Namitha-Prabhu 5f30fa4
update test to reflect version
masl2 85233bf
package lock
masl2 7b36de2
replace js-yaml with yaml
masl2 48b242b
downgrade yargs due to y18n dep
masl2 4513c92
missing deps
masl2 5e1c732
update versions
Namitha-Prabhu 3b5a35b
update versions
Namitha-Prabhu b1a5d66
fetch env variable
Namitha-Prabhu 415d07a
fetch env variable
Namitha-Prabhu d9a5a14
PR number
Namitha-Prabhu a5ef09e
PR number
Namitha-Prabhu d470154
add flag for execute endpoint
masl2 52513c2
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
Namitha-Prabhu 9158018
merge
Namitha-Prabhu b7b91d2
Merge branch 'main' into feature/CCM-12180-TestsOnPipeline
Namitha-Prabhu b9d364e
trivy job setup of node for nhs packages
masl2 52b3af0
lock
masl2 f62a004
lock
masl2 7196cba
verbose log level
masl2 832f20e
try node setup and token env
masl2 1947273
node setup
masl2 6f6cd33
acceptance deps
masl2 4e060b6
acceptance deps
masl2 7efebb6
another go
masl2 c232df7
another go
masl2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| ENVIRONMENT=$ENV_NAME | ||
| API_KEY= | ||
| HEADERAUTH= | ||
| PR_NUMBER=prxx # remove if needs to run against main | ||
| NHSD_APIM_TOKEN= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| name: Acceptance tests | ||
| description: "Run acceptance tests for this repo" | ||
|
|
||
| inputs: | ||
| testType: | ||
| description: Type of test to run | ||
| required: true | ||
|
|
||
| targetEnvironment: | ||
| description: Name of the environment under test | ||
| required: true | ||
|
|
||
| targetAccountGroup: | ||
| description: Name of the account group under test | ||
| default: nhs-notify-template-management-dev | ||
| required: true | ||
|
|
||
| targetComponent: | ||
| description: Name of the component under test | ||
| required: true | ||
|
|
||
| runs: | ||
| using: "composite" | ||
|
|
||
| steps: | ||
| - name: Fetch terraform output | ||
| uses: actions/download-artifact@v5 | ||
| with: | ||
| name: terraform-output-${{ inputs.targetComponent }} | ||
|
|
||
| - name: Get Node version | ||
| id: nodejs_version | ||
| shell: bash | ||
| run: | | ||
| echo "nodejs_version=$(grep "^nodejs\s" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: "Repo setup" | ||
| uses: ./.github/actions/node-install | ||
| with: | ||
| node-version: ${{ steps.nodejs_version.outputs.nodejs_version }} | ||
| GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} | ||
|
|
||
| - name: "Set PR NUMBER" | ||
| shell: bash | ||
| run: | | ||
| echo "PR_NUMBER=${{ inputs.targetEnvironment }}" >> $GITHUB_ENV | ||
|
|
||
| - name: Run test - ${{ inputs.testType }} | ||
| shell: bash | ||
| run: | | ||
| make test-${{ inputs.testType }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [ | ||
| "component" | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ version.json | |
| # Please, add your custom content below! | ||
| .idea | ||
| .env | ||
| .envrc | ||
|
|
||
| # dependencies | ||
| node_modules | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,16 @@ | ||
| output "api_urll" { | ||
| value = aws_api_gateway_stage.main.invoke_url | ||
| } | ||
|
|
||
| output "deployment" { | ||
| description = "Deployment details used for post-deployment scripts" | ||
| value = { | ||
| aws_region = var.region | ||
| aws_account_id = var.aws_account_id | ||
| project = var.project | ||
| environment = var.environment | ||
| group = var.group | ||
| component = var.component | ||
| commit_id = var.commit_id | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.