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

Hcm base branch #140

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
27a4807
initial commit for HCM branch
guruprasads-eGov Jan 11, 2023
c7963f5
changes to karate config file
guruprasads-eGov Jan 11, 2023
a857af3
added git ignore
guruprasads-eGov Jan 11, 2023
855508e
Initial commit for the HCM project.
guruprasads-eGov Jan 17, 2023
a37ac92
uncommented karate-config changes for existing automation code.
guruprasads-eGov Jan 17, 2023
e5cbd5e
deleting unwanted file.
guruprasads-eGov Jan 17, 2023
43650d4
removed unwanted code and corrected scenario description
guruprasads-eGov Jan 18, 2023
d339ef6
Added few utility functions for generating random data
guruprasads-eGov Jan 18, 2023
96b50eb
Added few URL endpoint
guruprasads-eGov Jan 18, 2023
722b03a
added test cases for household create, household search and few cases…
guruprasads-eGov Jan 24, 2023
834afea
edited the github yml file
guruprasads-eGov Jan 24, 2023
bad5dff
changed the path for maven to find pom file
guruprasads-eGov Jan 24, 2023
7463a03
checking out only hcm_base_branch
guruprasads-eGov Jan 24, 2023
c64a116
saving only extent reports
guruprasads-eGov Jan 24, 2023
f8dbc44
change path of report
guruprasads-eGov Jan 24, 2023
1809a85
reporting changes
guruprasads-eGov Jan 24, 2023
43d4b6a
exporting extent report
guruprasads-eGov Jan 24, 2023
1b48c79
changed execution time to 5AM IST
guruprasads-eGov Jan 25, 2023
6263037
added changes to household, individual and household member API autom…
guruprasads-eGov Mar 7, 2023
92d545c
added changes to individual APIs
guruprasads-eGov Apr 18, 2023
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
50 changes: 50 additions & 0 deletions .github/workflows/HCMExecution.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Maven CI/CD

on:
push:
branches: [hcm_base_branch]
pull_request:
branches: [hcm_base_branch]
schedule:
- cron: "30 23 * * *"

jobs:
test_and_publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code from repo
uses: actions/checkout@v3
with:
ref: hcm_base_branch

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Restore Maven cache
uses: skjolber/maven-cache-github-action@v1
with:
step: restore

- name: Build and test project with Maven
run: |
cd /home/runner/work/test-automation/test-automation/api-automation
ls -lrta
mvn clean install "-Dtags=@hcm" "-DconfigPath=/home/runner/work/test-automation/test-automation/api-automation/health-qa.yaml"
ls -R /home/runner/work/test-automation/test-automation/api-automation/target/ext*/eGov*

- name: Save Maven cache
uses: skjolber/maven-cache-github-action@v1
with:
step: save

- name: Upload Artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: reports
path: |
/home/runner/work/test-automation/test-automation/api-automation/target/ext*/eGov*.html
retention-days: 365
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
./api-automation/bin/
.api-automation/target/
2 changes: 2 additions & 0 deletions .gitigonore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
./api-automation/bin/
.api-automation/target/
130 changes: 116 additions & 14 deletions api-automation/envYaml/common/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ endPoints:
businessServiceCreate: egov-workflow-v2/egov-wf/businessservice/_create
businessServiceUpdate: egov-workflow-v2/egov-wf/businessservice/_update
businessServiceSearch: egov-workflow-v2/egov-wf/businessservice/_search
escalate:

escalate:
escalateSearch: egov-workflow-v2/egov-wf/escalate/_search
escalateCount: egov-workflow-v2/egov-wf/process/_count

Expand Down Expand Up @@ -187,19 +187,19 @@ endPoints:
create: egf-instrument/instrumentaccountcodes/_create
update: egf-instrument/instrumentaccountcodes/_update
search: egf-instrument/instrumentaccountcodes/_search

egfInstrumentSurrenderReasons:
create: egf-instrument/surrenderreasons/_create
update: egf-instrument/surrenderreasons/_update
search: egf-instrument/surrenderreasons/_search

propertyCalculatorBillingSlab:
create: pt-calculator-v2/billingslab/_create
update: pt-calculator-v2/billingslab/_update
search: pt-calculator-v2/billingslab/_search

propertyCalculatorPropertyTax:
calculate: pt-calculator-v2/propertytax/mutation/_calculate
calculate: pt-calculator-v2/propertytax/mutation/_calculate

pgr:
create: pgr-services/v2/request/_create
Expand All @@ -216,7 +216,7 @@ endPoints:
create: /firenoc-calculator/billingslab/_create
search: /firenoc-calculator/billingslab/_search
calculate: firenoc-calculator/v1/_calculate

waterConnection:
create: ws-services/wc/_create
search: ws-services/wc/_search
Expand All @@ -232,7 +232,7 @@ endPoints:
propertyCalculator:
estimate: pt-calculator-v2/propertytax/v2/_estimate
calculator: pt-calculator-v2/propertytax/_calculate

tradeLicense:
create: tl-services/v1/_create
update: tl-services/v1/_update
Expand All @@ -249,7 +249,7 @@ endPoints:
billingSlabUpdate: tl-calculator/billingslab/_update
billingSlabSearch: tl-calculator/billingslab/_search
calculate: tl-calculator/v1/_calculate

bpaService:
edcrScrutinize: edcr/rest/dcr/scrutinize
create: bpa-services/v1/bpa/_create
Expand All @@ -265,7 +265,7 @@ endPoints:
create: land-services/v1/land/_create
update: land-services/v1/land/_update
search: land-services/v1/land/_search

edcrServices:
scrutinize: edcr/rest/dcr/scrutinize
scrutinydetails: edcr/rest/dcr/scrutinydetails
Expand All @@ -277,7 +277,7 @@ endPoints:
search: firenoc-services/v1/_search

eGovUserEvent:
notificationCount: egov-user-event/v1/events/notifications/_count
notificationCount: egov-user-event/v1/events/notifications/_count
create: egov-user-event/v1/events/_create
update: egov-user-event/v1/events/_update
delete: egov-user-event/v1/events/_delete
Expand Down Expand Up @@ -306,13 +306,13 @@ endPoints:
vehicalTripSearch: vehicle/trip/v1/_search
vehicalTripUpdate: vehicle/trip/v1/_update
inboxSearch: inbox/v1/_search

echallanService:
create: echallan-services/eChallan/v1/_create
update: echallan-services/eChallan/v1/_update
search: echallan-services/eChallan/v1/_search
count: echallan-services/eChallan/v1/_count

fsmBillingSlab:
create: fsm-calculator/v1/billingSlab/_create
update: fsm-calculator/v1/billingSlab/_update
Expand All @@ -334,4 +334,106 @@ endPoints:
search: /egov-document-uploader/egov-du/document/_search

nationalDashboardIngest:
ingest: national-dashboard/metric/_ingest
ingest: national-dashboard/metric/_ingest

hcm:
product:
create: product/v1/_create
update: product/v1/_update
search: product/v1/_search
productVariant:
create: product/variant/v1/_create
update: product/variant/v1/_update
search: product/variant/v1/_search
household:
create: household/v1/_create
update: household/v1/_update
search: household/v1/_search
delete: household/v1/_delete
bulkCreate: household/v1/bulk/_create
bulkUpdate: household/v1/bulk/_update
bulkDelete: household/v1/bulk/_delete
individual:
create: individual/v1/_create
update: individual/v1/_update
search: individual/v1/_search
delete: individual/v1/_delete
bulkCreate: individual/v1/bulk/_create
bulkUpdate: individual/v1/bulk/_update
bulkDelete: individual/v1/bulk/_delete
householdMember:
create: household/member/v1/_create
update: household/member/v1/_update
search: household/member/v1/_search
delete: household/member/v1/_delete
bulkCreate: household/member/v1/bulk/_create
bulkUpdate: household/member/v1/bulk/_update
bulkDelete: household/member/v1/bulk/_delete
project:
create: project/v1/_create
update: project/v1/_update
search: project/v1/_search
projectBeneficiary:
create: project/beneficiary/v1/_create
update: project/beneficiary/v1/_update
search: project/beneficiary/v1/_search
delete: product/variant/v1/_delete
bulkCreate: project/beneficiary/v1/bulk/_create
bulkUpdate: project/beneficiary/v1/bulk/_update
bulkDelete: project/beneficiary/v1/bulk/_delete
projectTask:
create: project/task/v1/_create
update: project/task/v1/_update
search: project/task/v1/_search
delete: project/task/v1/_delete
bulkCreate: project/task/v1/bulk/_create
bulkUpdate: project/task/v1/bulk/_update
bulkDelete: project/task/v1/bulk/_delete
projectStaff:
create: project/staff/v1/_create
update: project/staff/v1/_update
search: project/staff/v1/_search
delete: project/staff/v1/_delete
bulkCreate: project/staff/v1/bulk/_create
bulkUpdate: project/staff/v1/bulk/_update
bulkDelete: project/staff/v1/bulk/_delete
projectFacility:
create: project/facility/v1/_create
update: project/facility/v1/_update
search: project/facility/v1/_search
delete: project/facility/v1/_delete
bulkCreate: project/facility/v1/bulk/_create
bulkUpdate: project/facility/v1/bulk/_update
bulkDelete: project/facility/v1/bulk/_delete
projectResource:
create: project/resource/v1/_create
update: project/resource/v1/_update
search: project/resource/v1/_search
delete: project/resource/v1/_delete
bulkCreate: project/resource/v1/bulk/_create
bulkUpdate: project/resource/v1/bulk/_update
bulkDelete: project/resource/v1/bulk/_delete
facility:
create: facility/v1/_create
update: facility/v1/_update
search: facility/v1/_search
delete: facility/v1/_delete
bulkCreate: facility/v1/bulk/_create
bulkUpdate: facility/v1/bulk/_update
bulkDelete: facility/v1/bulk/_delete
stock:
create: stock/v1/_create
update: stock/v1/_update
search: stock/v1/_search
delete: stock/v1/_delete
bulkCreate: stock/v1/bulk/_create
bulkUpdate: stock/v1/bulk/_update
bulkDelete: stock/v1/bulk/_delete
stockReconciliation:
create: stock/reconciliation/v1/_create
update: stock/reconciliation/v1/_update
search: stock/reconciliation/v1/_search
delete: stock/reconciliation/v1/_delete
bulkCreate: stock/reconciliation/v1/bulk/_create
bulkUpdate: stock/reconciliation/v1/bulk/_update
bulkDelete: stock/reconciliation/v1/bulk/_delete
53 changes: 53 additions & 0 deletions api-automation/health-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
host: https://health-dev.digit.org/
localhost: http://localhost:8082/
mockHost: https://e5a23525-a2d2-42d3-b518-2761de88655c.mock.pstmn.io/
tenantId: default
stateCode: pb
cityCode: amritsar
# System Admin credentials for login
sysAdmin:
userName: 3989999996
password: eGov@4321
tenantId: default
type: EMPLOYEE
# Registrar username and password
registrar:
userName: vishal-registrar
password: eGov@4321
tenantId: default
type: EMPLOYEE
# Distributor username and password
distributor:
userName: ds2
password: eGov@4321
tenantId: default
type: EMPLOYEE
# Super User credentials for login(need to create user manually)
superUser:
userName: EMPAUTO
password: eGov@123
type: EMPLOYEE
# Employee username and password to update an existing user's profile (need to create user manually)
employee:
userName: EMP-107-001333
password: Password@2
type: EMPLOYEE
# Citizen's username and password needed for Property End to End flow (need to create user manually)
citizen:
userName: 8073460929
password: 123456
type: CITIZEN
# Alternate Citizen's username and password needed for Transfer Ownership of Property (need to create user manually)
alternateCitizen:
userName: 9999999999
password: 123456
type: CITIZEN
# Counter Employee's username and password, required for multiple use (need to create user manually)
counterEmployeeUser:
userName: EMP-107-001333
password: Password@2
type: EMPLOYEE
citizenArchitect:
userName: 9222222222
password: 123456
type: CITIZEN
53 changes: 53 additions & 0 deletions api-automation/health-qa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
host: https://health-qa.digit.org/
localhost: http://localhost:8082/
mockHost: https://e5a23525-a2d2-42d3-b518-2761de88655c.mock.pstmn.io/
tenantId: default
stateCode: pb
cityCode: amritsar
# System Admin credentials for login
sysAdmin:
userName: sysadmin
password: eGov@4321
tenantId: default
type: EMPLOYEE
# Registrar username and password
registrar:
userName: registrar1
password: eGov@1234
tenantId: default
type: EMPLOYEE
# Distributor username and password
distributor:
userName: distributor4
password: eGov@1234
tenantId: default
type: EMPLOYEE
# Super User credentials for login(need to create user manually)
superUser:
userName: EMPAUTO
password: eGov@123
type: EMPLOYEE
# Employee username and password to update an existing user's profile (need to create user manually)
employee:
userName: EMP-107-001333
password: Password@2
type: EMPLOYEE
# Citizen's username and password needed for Property End to End flow (need to create user manually)
citizen:
userName: 8073460929
password: 123456
type: CITIZEN
# Alternate Citizen's username and password needed for Transfer Ownership of Property (need to create user manually)
alternateCitizen:
userName: 9999999999
password: 123456
type: CITIZEN
# Counter Employee's username and password, required for multiple use (need to create user manually)
counterEmployeeUser:
userName: EMP-107-001333
password: Password@2
type: EMPLOYEE
citizenArchitect:
userName: 9222222222
password: 123456
type: CITIZEN
Loading