Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into hmis-1144-test
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenrach authored Mar 1, 2023
2 parents 85956a5 + 8067763 commit dcaf7d3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,24 @@ The project uses [Gradle](https://gradle.org) as a build tool. It already contai
To build the project execute the following command:
###Copy Paste the link in browser for detailed steps to run following tests in local-https://tools.hmcts.net/confluence/display/HMI/HMI+QA+Functional+Testing
```bash
./gradlew build
```
### Running the Unit Tests
### Add application-test.docx file under Test Resources for Unit Testing in local.
Change Directory to the root folder of the Project:
Run the following command
```bash
gradle clean Unit -DENDPOINT_URL='{url}' -DENDPOINT_HOST='{hostname}' -DENDPOINT_SUBSCRIPTION_KEY={subscriptonKey} -DAPI_LOG_LEVEL=OFF
### Running the Functional Tests
### Add application-functional.docx file under functional Resources for Unit Testing in local.
Change Directory to the root folder of the Project:
Expand All @@ -119,6 +132,8 @@ Run the following command
```
### Running the Smoke Tests
### Add application-smoke.docx file under smoke Resources for Unit Testing in local.
Change Directory to the root folder of the Project:
Expand All @@ -138,6 +153,8 @@ Run the following command
gradle clean integration -DENDPOINT_URL='{url}' -DENDPOINT_SUBSCRIPTION_KEY={subscriptonKey}
```
### Running the Acceptance Tests
### Add application-acceptance.docx file under acceptance Resources for Unit Testing in local.
Change Directory to the root folder of the Project:
Expand Down
3 changes: 3 additions & 0 deletions infrastructure/template/api-policy.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<value>CRIME</value>
<value>CFT</value>
<value>RM</value>
<value>CP</value>
</check-header>
<check-header name="Destination-System" failed-check-httpcode="400" failed-check-error-message="Missing/Invalid Header Destination-System" ignore-case="false">
<value>SNL</value>
Expand All @@ -67,6 +68,8 @@
<value>ELINKS</value>
<value>VH</value>
<value>RM</value>
<value>HMI-DTU</value>
<value>PIH</value>
</check-header>
<check-header name="Request-Created-At" failed-check-httpcode="400" failed-check-error-message="Missing/Invalid Header Request-Created-At" ignore-case="true" />
<check-header name="Accept" failed-check-httpcode="406" failed-check-error-message="Missing/Invalid Media Type" ignore-case="true">
Expand Down

0 comments on commit dcaf7d3

Please sign in to comment.