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

[DSD-4199] #329

Open
wants to merge 158 commits into
base: release-1.2.0.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 157 commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
908718d
[DSD-4267] removed mock-sdk-jpeg-extractor functionality from mosip-m…
Prafulrakhade Jan 22, 2024
e5acd7e
[MOSIP-31258] The attributes requestedScore and qualityScore should b…
JanardhanBS-SyncByte Jan 24, 2024
3c26168
Merge pull request #328 from JanardhanBS-SyncByte/develop
gsasikumar Jan 24, 2024
9fa282d
[MOSIP-31258] The attributes requestedScore and qualityScore should b…
JanardhanBS-SyncByte Feb 1, 2024
56ad941
Merge pull request #330 from JanardhanBS-SyncByte/develop
gsasikumar Feb 1, 2024
a4d67fa
MOSIP-31498 code fix
Feb 16, 2024
4860f05
Merge pull request #334 from sowmya695/MOSIP-31498_develop
gsasikumar Feb 23, 2024
817db7c
Merge branch 'develop' into release-1.2.0.1
JanardhanBS-SyncByte Mar 19, 2024
6e1a0c0
Update pom.xml
JanardhanBS-SyncByte Mar 19, 2024
29a4259
Update pom.xml
JanardhanBS-SyncByte Mar 19, 2024
f55ed48
Update pom.xml
JanardhanBS-SyncByte Mar 19, 2024
bdf1a00
Update pom.xml
JanardhanBS-SyncByte Mar 19, 2024
a41661e
Merge branch 'develop' into release-1.2.0.1
JanardhanBS-SyncByte Mar 19, 2024
60d48d1
Merge pull request #1 from JanardhanBS-SyncByte/release-1.2.0.1
JanardhanBS-SyncByte Mar 19, 2024
25f5783
Update push-trigger.yml
JanardhanBS-SyncByte Mar 20, 2024
0acb584
Update push-trigger.yml
JanardhanBS-SyncByte Mar 20, 2024
171e2dd
Merge pull request #342 from JanardhanBS-SyncByte/develop
ckm007 Mar 20, 2024
ced974d
version changed build failure
JanardhanBS-SyncByte Jan 24, 2023
66035a8
version changed build failure
JanardhanBS-SyncByte Jan 24, 2023
5fa4c6d
Bug fixes and Pom.xml changes from 0.9 version to latest for kernel.b…
JanardhanBS-SyncByte Jan 24, 2023
72a2ce7
Bug fixes and Pom.xml changes
JanardhanBS-SyncByte Jan 27, 2023
7735e69
MOSIP-26119
JanardhanBS-SyncByte Feb 3, 2023
a401303
MOSIP-24276
JanardhanBS-SyncByte Feb 21, 2023
5e5d4d9
Added mvn repo to pom
Sep 28, 2022
353cdc5
[DSD-2180] updating pom for release
ckm007 Mar 3, 2023
3f044d6
[DSD-2180] updating pom for release
ckm007 Mar 3, 2023
659a968
Update pom.xml
ckm007 Mar 3, 2023
44c23f2
Update pom.xml
ckm007 Mar 3, 2023
ee6ce7a
Update pom.xml
ckm007 Mar 3, 2023
a1c0293
[DSD-2081]
ckm007 Mar 9, 2023
de8790a
MOSIP-26485
JanardhanBS-SyncByte Mar 7, 2023
db91637
MOSIP-26485
JanardhanBS-SyncByte Mar 7, 2023
79fc408
[DSD-2081]
ckm007 Mar 9, 2023
cddbe8d
MOSIP-26219 (#248)
JanardhanBS-SyncByte Mar 30, 2023
33a1d84
DSD-2242 (#249)
JanardhanBS-SyncByte Apr 3, 2023
829e810
Release changes (#251)
ckm007 Apr 16, 2023
1072919
[DSD-2478] groupId change for bioconverter (#252)
ckm007 Apr 16, 2023
16e5f27
Update README.md (#274)
ckm007 Jun 21, 2023
98bd2b4
Update pom.xml (#275)
ckm007 Jun 21, 2023
f9626cf
[MOSIP-23218] Updated Pom.xml versions. (#276)
Mohanraj209 Jun 21, 2023
2931215
MOSIP-28181 version changes
Jun 28, 2023
9cddf3d
[DSD-2986] fixed the publish to nexus failure (#280)
Rakshitha650 Jul 10, 2023
ce1d03e
Update MatchService.java (#281)
Neha2365 Jul 12, 2023
5c228cf
[MOSIP-28241] Added build details in Dockerfile and docker build in p…
Prafulrakhade Jul 31, 2023
741f39c
[DSD-3108] updated push_trigger.yml (#287)
Rakshithb1 Aug 2, 2023
4cd918f
[MOSIP-29246] updated reusable flows (#300) (#301)
ckm007 Sep 22, 2023
c6a131d
[MOSIP-29246] updated secrets in reusable flows (#302)
bhumi46 Sep 25, 2023
0bea7f1
[DSD-3932] removed release-changes.yml, tag.yml and updated push-trig…
Prafulrakhade Dec 26, 2023
4665222
[MOSIP-29961] Updated push-trigger.yml (#314)
Rakshithb1 Dec 28, 2023
7584735
Release changes (#317)
ckm007 Dec 28, 2023
07fc089
[DSD-4199] removed release_url and updated snapshot_url (#323)
Prafulrakhade Jan 16, 2024
1f08ef0
Finger Position was by default set to UnKnown instead of orginal Fing…
JanardhanBS-SyncByte May 11, 2023
cc2a796
MOSIP-27456 and MOSIP-27576
JanardhanBS-SyncByte May 24, 2023
ed98c58
MOSIP-27456
JanardhanBS-SyncByte May 25, 2023
b5572a2
MOSIP-27456
JanardhanBS-SyncByte May 26, 2023
93a2bea
MOSIP-27456
JanardhanBS-SyncByte May 26, 2023
a8213dd
MOSIP-27456
JanardhanBS-SyncByte May 26, 2023
988a3df
MOSIP-27456
JanardhanBS-SyncByte May 26, 2023
4f69c39
Added Unknown finger/iris iso and left/right iris lossless image corr…
JanardhanBS-SyncByte May 30, 2023
a3264e5
MOSIP-28427
JanardhanBS-SyncByte Aug 9, 2023
159b62e
MOSIP-28427
JanardhanBS-SyncByte Aug 9, 2023
50b3ed8
MOSIP-28427
JanardhanBS-SyncByte Aug 9, 2023
1853cb6
MOSIP-28840
JanardhanBS-SyncByte Aug 10, 2023
a37ee22
Update CentralizedMockSBI.java
neeharikatech Apr 24, 2023
ba89c3b
createServerSocket
neeharikatech Apr 24, 2023
9da09d8
Update SBIMockService.java
neeharikatech Apr 24, 2023
8263bb4
added import exception
neeharikatech Apr 24, 2023
f6b0135
SBI Mock Service port set
neeharikatech Apr 25, 2023
67de2e4
create socket changes
neeharikatech Apr 25, 2023
69ba2b7
loggings
neeharikatech Apr 25, 2023
d77f397
added syncronized
neeharikatech Apr 26, 2023
991f8da
added loggings
neeharikatech Apr 26, 2023
f660a26
loggings
neeharikatech Apr 26, 2023
154255f
corrected loggings
neeharikatech May 2, 2023
c9839de
corrected loggings
neeharikatech May 2, 2023
2a7937b
conditional check added
neeharikatech May 8, 2023
4f741eb
resolved conflict (#268)
neeharikatech May 9, 2023
27ac295
added test case for consume logic method
Khuddusshariff0022 Jul 28, 2023
c16d9c5
added test case for consume logic method
Khuddusshariff0022 Aug 3, 2023
f8c6609
added test case for consume logic method
Khuddusshariff0022 Aug 3, 2023
d94a890
added test case for consume logic method
Khuddusshariff0022 Aug 3, 2023
71ec758
added test case for consume logic method MOSIP-26942
Khuddusshariff0022 Aug 3, 2023
b7870be
resolve the conflict of getter and setter
Khuddusshariff0022 Sep 4, 2023
02151af
MOSIP-28427 reset local.development as false (#296)
mayuradesh Sep 8, 2023
3502f08
MOSIP-28970
ase-101 Oct 30, 2023
42f7e36
[MOSIP-29978, MOSIP-30342, ES-480] Corrected DigitalId Double encodin…
JanardhanBS-SyncByte Nov 24, 2023
9d4a763
[MOSIP-30858] Validate Transaction ID
JanardhanBS-SyncByte Dec 28, 2023
3b2492b
[MOSIP-31102] Validation of values for Type, Status, Env, Purpose
JanardhanBS-SyncByte Jan 10, 2024
7219155
[MOSIP-31102] Validation of values for Type, Status, Env, Purpose
JanardhanBS-SyncByte Jan 11, 2024
eec4f63
Update pom.xml
Prafulrakhade Jan 16, 2024
8090904
Update pom.xml
Prafulrakhade Jan 17, 2024
3798a98
Update pom.xml
Prafulrakhade Jan 17, 2024
5533cdb
[DSD-4267] removed mock-sdk-jpeg-extractor functionality and build fr…
Prafulrakhade Jan 22, 2024
aee6b41
MOSIP-31498 code fix
Feb 16, 2024
52d5a67
[MOSIP-32456]
JanardhanBS-SyncByte Apr 25, 2024
eb92aad
MOSIP-32456
JanardhanBS-SyncByte May 6, 2024
9450b0d
[MOSIP-32064]
JanardhanBS-SyncByte May 22, 2024
5abbb9c
[MOSIP-32064]
JanardhanBS-SyncByte May 22, 2024
ca9db3f
[DSD-5405] Update push-trigger.yml
ckm007 Jun 3, 2024
64eaaac
[DSD-5405]
ckm007 Jun 3, 2024
8e7b792
[DSD-5405] Update push-trigger.yml
ckm007 Jun 3, 2024
d5a805c
[DSD-5405] Update push-trigger.yml
ckm007 Jun 3, 2024
fcbfb2b
[MOSIP-33587]
JanardhanBS-SyncByte Jun 4, 2024
3013f93
[MOSIP-33587] Merge develop from develop-java21
JanardhanBS-SyncByte Jun 17, 2024
d3049d6
[MOSIP-33587] commited signed off change
ckm007 Jun 18, 2024
e8af25f
resolved conflists
ckm007 Jun 18, 2024
ca0af37
[MOSIP-33587] Merge develop from develop-java21
JanardhanBS-SyncByte Jun 18, 2024
8fb09be
Merge pull request #369 from JanardhanBS-SyncByte/develop-java21-sign…
ckm007 Jun 18, 2024
04100a1
[DSD-5520]Update push-trigger.yml
ckm007 Jun 24, 2024
b64e00a
Merge pull request #371 from mosip/ckm007-patch-14
ckm007 Jun 24, 2024
4c2c1cb
[MOSIP-33587] Merge develop from develop-java21
JanardhanBS-SyncByte Jun 24, 2024
7cdee47
[MOSIP-33587] Merge develop from develop-java21
JanardhanBS-SyncByte Jun 24, 2024
8112652
[MOSIP-33587] Merge develop from develop-java21
Jun 25, 2024
3a73d50
Merge branch 'develop' into develop
JanardhanBS-SyncByte Jun 25, 2024
0c5dd0b
[MOSIP-33587] Merge develop from develop-java21
Jun 26, 2024
31c7aa2
Merge branch 'develop' of https://github.com/JanardhanBS-SyncByte/mos…
Jun 26, 2024
cd3f9a2
[MOSIP-33587] Merge develop from develop-java21
Jun 26, 2024
31dfa6f
Merge pull request #372 from JanardhanBS-SyncByte/develop
ckm007 Jun 26, 2024
d2e7fb0
[MOSIP-33587] Update push-trigger.yml
ckm007 Jun 26, 2024
ae62ef3
Merge pull request #374 from mosip/ckm007-patch-15
ckm007 Jun 26, 2024
08f82c8
[MOSIP-33587] Update README.md
ckm007 Jun 26, 2024
4bd413e
[MOSIP-33587] Merge develop from develop-java21
Jun 28, 2024
8193f01
Merge pull request #375 from JanardhanBS-SyncByte/develop
ckm007 Jun 28, 2024
8c74cc7
[MOSIP-33587] Merge develop from develop-java21
Jun 28, 2024
34dd6eb
Merge pull request #376 from JanardhanBS-SyncByte/develop
ckm007 Jun 28, 2024
20194af
[MOSIP-33587] Merge develop from develop-java21
Jul 4, 2024
d8e15b9
Merge pull request #377 from JanardhanBS-SyncByte/develop
ckm007 Jul 4, 2024
56e3f04
[MOSIP-33587] Merge develop from develop-java21
Jul 9, 2024
ab9f3df
Merge pull request #378 from JanardhanBS-SyncByte/develop
ckm007 Jul 9, 2024
a328c1f
[MOSIP-33587] Merge develop from develop-java21
Jul 9, 2024
fa3780f
Merge pull request #379 from JanardhanBS-SyncByte/develop
ckm007 Jul 9, 2024
3719ca9
[MOSIP-33587] Merge develop from develop-java21
Jul 11, 2024
9c6cce6
[DSD-5620] Update README.md
ckm007 Jul 11, 2024
19ffc82
Merge pull request #380 from mosip/ckm007-patch-1
ckm007 Jul 11, 2024
1dd2445
Merge pull request #381 from JanardhanBS-SyncByte/develop
ckm007 Jul 11, 2024
9304a71
[MOSIP-34233] added helm lint and publish workflow
ckm007 Jul 16, 2024
d318d7b
[MOSIP-34233] added deployment script
ckm007 Jul 16, 2024
362f231
[MOSIP-34233] added helm for abis and mv
ckm007 Jul 16, 2024
5fcf440
Merge pull request #385 from ckm007/develop
ckm007 Jul 18, 2024
3878de3
Updated Pom versions for release changes (#392)
ckm007 Aug 9, 2024
809ab9e
[MOSIP-35428]
Aug 29, 2024
0694bec
[MOSIP-35428] (#393)
JanardhanBS-SyncByte Aug 29, 2024
044d80c
[MOSIP-35160] Updated URL from https://github.com/mosip/mosip-infra/b…
Prafulrakhade Sep 9, 2024
7f5ba20
[MOSIP-35160] Updated URL from https://github.com/mosip/mosip-infra/b…
Prafulrakhade Sep 9, 2024
75dc54d
Update copy_cm.sh
Prafulrakhade Sep 11, 2024
7783cfa
Update copy_cm.sh
Prafulrakhade Sep 11, 2024
5bafa9f
Merge pull request #395 from Prafulrakhade/release-1.3.x
ckm007 Sep 12, 2024
3bc337a
Merge pull request #394 from Prafulrakhade/develop
ckm007 Sep 12, 2024
9c03342
[MOSIP-35892] Updated helm charts to add range
Rakshithb1 Oct 15, 2024
dceaa1d
Merge pull request #396 from Rakshithb1/develop
ckm007 Oct 17, 2024
dc2236a
Merge remote-tracking branch 'upstream/release-1.3.x' into develop
Oct 18, 2024
ff6375b
Merge branch 'mosip:develop' into develop
JanardhanBS-SyncByte Nov 5, 2024
f9390b3
[MOSIP-37359]Update readme
Nov 25, 2024
af38436
[MOSIP-37359]Update readme
Nov 25, 2024
d9d7c0a
Merge branch 'develop' of https://github.com/JanardhanBS-SyncByte/mos…
Nov 25, 2024
88ffd23
[MOSIP-37359]Update readme
Nov 25, 2024
de2d8a7
Merge pull request #403 from JanardhanBS-SyncByte/develop
ckm007 Nov 26, 2024
a250cd9
[MOSIP-37853]added skip for deployment in pom (#412)
JanardhanBS-SyncByte Nov 27, 2024
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
62 changes: 62 additions & 0 deletions .github/workflows/chart-lint-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Validate / Publish helm charts

on:
release:
types: [published]
pull_request:
types: [opened, reopened, synchronize]
paths:
- 'helm/**'
workflow_dispatch:
inputs:
IGNORE_CHARTS:
description: 'Provide list of charts to be ignored separated by pipe(|)'
required: false
default: '""'
type: string
CHART_PUBLISH:
description: 'Chart publishing to gh-pages branch'
required: false
default: 'NO'
type: string
options:
- YES
- NO
INCLUDE_ALL_CHARTS:
description: 'Include all charts for Linting/Publishing (YES/NO)'
required: false
default: 'NO'
type: string
options:
- YES
- NO
push:
branches:
- '!release-branch'
- '!master'
- 1.*
- 0.*
- develop
- release*
paths:
- 'helm/**'

jobs:
chart-lint-publish:
uses: mosip/kattu/.github/workflows/chart-lint-publish.yml@master
with:
CHARTS_DIR: ./helm
CHARTS_URL: https://mosip.github.io/mosip-helm
REPOSITORY: mosip-helm
BRANCH: gh-pages
INCLUDE_ALL_CHARTS: "${{ inputs.INCLUDE_ALL_CHARTS || 'NO' }}"
IGNORE_CHARTS: "${{ inputs.IGNORE_CHARTS || '\"\"' }}"
CHART_PUBLISH: "${{ inputs.CHART_PUBLISH || 'YES' }}"
LINTING_CHART_SCHEMA_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/chart-schema.yaml"
LINTING_LINTCONF_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/lintconf.yaml"
LINTING_CHART_TESTING_CONFIG_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/chart-testing-config.yaml"
LINTING_HEALTH_CHECK_SCHEMA_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/health-check-schema.yaml"
DEPENDENCIES: "mosip,https://mosip.github.io/mosip-helm;"
secrets:
TOKEN: ${{ secrets.ACTION_PAT }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
94 changes: 79 additions & 15 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ on:
- release-1*
- master
- 1.*
- develop
- develop*
- MOSIP*

jobs:
build-maven-mock-abis:
uses: mosip/kattu/.github/workflows/maven-build.yml@master
uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21
with:
SERVICE_LOCATION: mock-abis
BUILD_ARTIFACT: mock-abis
Expand All @@ -44,7 +44,7 @@ jobs:
BUILD_ARTIFACT: 'mock-abis'
fail-fast: false
name: ${{ matrix.SERVICE_NAME }}
uses: mosip/kattu/.github/workflows/docker-build.yml@master
uses: mosip/kattu/.github/workflows/docker-build.yml@master-java21
with:
SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }}
SERVICE_NAME: ${{ matrix.SERVICE_NAME }}
Expand All @@ -56,7 +56,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

build-maven-mock-mv:
uses: mosip/kattu/.github/workflows/maven-build.yml@master
uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21
with:
SERVICE_LOCATION: mock-mv
BUILD_ARTIFACT: mock-mv
Expand All @@ -77,7 +77,7 @@ jobs:
BUILD_ARTIFACT: 'mock-mv'
fail-fast: false
name: ${{ matrix.SERVICE_NAME }}
uses: mosip/kattu/.github/workflows/docker-build.yml@master
uses: mosip/kattu/.github/workflows/docker-build.yml@master-java21
with:
SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }}
SERVICE_NAME: ${{ matrix.SERVICE_NAME }}
Expand All @@ -91,45 +91,45 @@ jobs:
publish_to_nexus_mockmv:
if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name != 'release' && github.event_name != 'prerelease' && github.event_name != 'publish' }}"
needs: build-maven-mock-mv
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master-java21
with:
SERVICE_LOCATION: ./mock-mv
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_URL: ${{ secrets.RELEASE_URL }}
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

build-maven-mock-sdk:
uses: mosip/kattu/.github/workflows/maven-build.yml@master
uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21
with:
SERVICE_LOCATION: ./mock-sdk
BUILD_ARTIFACT: mock-sdk
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_USER: ${{ secrets.OSSRH_USER1 }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET1 }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

publish_to_nexus_sdk:
if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name != 'release' && github.event_name != 'prerelease' && github.event_name != 'publish' }}"
needs: build-maven-mock-sdk
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master-java21
with:
SERVICE_LOCATION: ./mock-sdk
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_URL: ${{ secrets.RELEASE_URL }}
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

build-maven-MockMDS:
uses: mosip/kattu/.github/workflows/maven-build.yml@master
uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21
with:
SERVICE_LOCATION: ./MockMDS
BUILD_ARTIFACT: mockmds
Expand All @@ -143,13 +143,77 @@ jobs:
publish_to_nexus_MockMDS:
if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name != 'release' && github.event_name != 'prerelease' && github.event_name != 'publish' }}"
needs: build-maven-MockMDS
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master-java21
with:
SERVICE_LOCATION: ./MockMDS
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_URL: ${{ secrets.RELEASE_URL }}
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

sonar_analysis_mock_abis:
needs: build-maven-mock-abis
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: mock-abis
PROJECT_KEY: 'mosip_mock-abis'
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
ORG_KEY: ${{ secrets.ORG_KEY }}
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

sonar_analysis_mock_mv:
needs: build-maven-mock-mv
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: mock-mv
PROJECT_KEY: 'mosip_mock-mv'
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
ORG_KEY: ${{ secrets.ORG_KEY }}
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

sonar_analysis_mock_mds:
needs: build-maven-MockMDS
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: MockMDS
PROJECT_KEY: 'mosip_mockmds'
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
ORG_KEY: ${{ secrets.ORG_KEY }}
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

sonar_analysis_mock_sdk:
needs: build-maven-mock-sdk
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: mock-sdk
PROJECT_KEY: 'mosip_mock-sdk'
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
ORG_KEY: ${{ secrets.ORG_KEY }}
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
109 changes: 101 additions & 8 deletions MockMDS/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,111 @@
# MockMDS

## Overview
This module contains Mock MOSIP Device service implementation as per defined [SBI specification](https://docs.mosip.io/1.2.0/biometrics/secure-biometric-interface). Biometric data for capture is available at `files/MockMDS/`
## About

## Defaults
server.port=4501
This module provides a mock implementation of the MOSIP Device Service, designed to comply with the defined [SBI specification](https://docs.mosip.io/1.2.0/modules/partner-management-services/pms-existing/device-provider-partner#sbi-secure-biometric-interface). Biometric data for capture is stored in the files/MockMDS/ directory.

## Build and run
## Table of Contents

Execute the below command to build module:
- Prerequisites
- Setting Up Locally
- Running the Application
- Configurations
- APIs Provided

### Prerequisites

Before you begin, ensure the following tools and software are installed:

- Java: Version 21.0.3
- Maven: For building the project
- Git: To clone the repository
- Postman (optional): For testing the APIs

### Setting Up Locally

Follow the steps below to clone and set up the MockMDS service locally:

1. Clone the repository:

```bash
git clone https://github.com/mosip/mosip-mock-services.git
cd mosip-mock-services/MockMDS
```

2. Build the Project
Use Maven to build the project and resolve dependencies.

3. Modify Configuration Files

Update the following files and settings as needed:

a) Edit the files DeviceDiscovery.json, DeviceInfo.json, and DigitalId.json if changes are required for devices.

b) Place the device-partner.p12 and ftm-partner.p12 files into the folder:

Biometric Devices\{all different modality}\Keys

c) Update the resources/application.properties file with the following values:

mosip.mock.sbi.file.{modality}.keys.keyalias={alias}
mosip.mock.sbi.file.{modality}.keys.keystorepwd={password}

mosip.auth.server.url=https://{env}/v1/authmanager/authenticate/clientidsecretkey
mosip.auth.appid=regproc
mosip.auth.clientid=mosip-regproc-client
mosip.auth.secretkey={password}

mosip.ida.server.url=https://{env}/idauthentication/v1/internal/getCertificate?applicationId=IDA&referenceId=IDA-FIR


Follow the steps below to build and run the module:

1. **Build the Module**

Execute the following command:

```sh
mvn clean install -Dmaven.test.skip=true -Dgpg.skip=true
```
2. **Run the Application**

a) For Authentication Devices

- Use the run_auth.bat executable located in the target folder.
- Alternatively, execute the Main class directly using the following command:


```sh
java -cp mock-mds-1.3.0-SNAPSHOT.jar;lib\* io.mosip.mock.sbi.test.TestMockSBI \
"mosip.mock.sbi.device.purpose=Auth" \
"mosip.mock.sbi.biometric.type=Biometric Device" \
"mosip.mock.sbi.biometric.image.type=WSQ"
```

b) For Registration Devices

- Use the run_reg.bat executable located in the target folder.
- Alternatively, execute the Main class directly using the following command:

```sh
mvn clean install
java -cp mock-mds-1.3.0-SNAPSHOT.jar;lib\* io.mosip.mock.sbi.test.TestMockSBI \
"mosip.mock.sbi.device.purpose=Registration" \
"mosip.mock.sbi.biometric.type=Biometric Device"
```

`run.sh / run.bat` executable can be found under target folder. Or run Main class `io.mosip.mock.sbi.test.TestMockSBI` directly.

## APIs
API documentation is available [here](https://docs.mosip.io/1.1.5/biometrics/mosip-device-service-specification).

The following APIs are exposed by the MockMDS service to custom test settings:

| Endpoint | Method | Description | Json |
|-----------------------|--------|---------------------------------|--------------------------------------------------------|
| `/admin/status` | POST | Set the device status ["Ready", "Busy", "Not Ready" or "Not Registered"] | {"type": "Biometric Device","deviceStatus": "Ready"}
| `/admin/score` | POST | Set the biometric quality score | {"type": "Biometric Device","qualityScore": "44.44",fromIso" : false}
| `/admin/delay` | POST | Set the delay response for api calls [RCAPTURE, CAPTURE, MOSIPDINFO, MOSIPDISC, STREAM] | {"type": "Biometric Device","delay": "10000","method":["RCAPTURE"]}
| `/admin/profile` | POST | Set the profile to get biometric data ["Default", "Profile1", "Profile2"] | {"type": "Biometric Device","profileId": "Profile1"}


## License
This project is licensed under the terms of [Mozilla Public License 2.0](LICENSE).
2 changes: 1 addition & 1 deletion MockMDS/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cors.headers.allowed.methods="OPTIONS, RCAPTURE, CAPTURE, MOSIPDINFO, MOSIPDISC,
cors.headers.allowed.origin="*"

mosip.mock.sbi.allowed.admin.apis="admin/score, admin/delay, admin/status, admin/profile"
mosip.mock.sbi.quality.score=44
mosip.mock.sbi.quality.score=44.00

mosip.mock.sbi.device.purpose.registration=Registration
mosip.mock.sbi.device.purpose.auth=Auth
Expand Down
Loading
Loading