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

Bump h2 from 1.4.200 to 2.1.210 in /mock-abis #146

Closed
Closed
6 changes: 3 additions & 3 deletions .github/workflows/push_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ jobs:
- name: Publish the maven package
run: |
cd mock-sdk
mvn deploy -DskipTests -DaltDeploymentRepository=ossrh::default::${{ secrets.RELEASE_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml
mvn deploy -DaltDeploymentRepository=ossrh::default::${{ secrets.RELEASE_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GPG_TTY: $(tty)
Expand Down Expand Up @@ -220,7 +220,7 @@ jobs:
- name: Publish the maven package
run: |
cd mock-mv
mvn deploy -DskipTests -DaltDeploymentRepository=ossrh::default::${{ secrets.RELEASE_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml
mvn deploy -DaltDeploymentRepository=ossrh::default::${{ secrets.RELEASE_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GPG_TTY: $(tty)
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:
- name: Publish the maven package
run: |
cd MockMDS
mvn deploy -DskipTests -DaltDeploymentRepository=ossrh::default::${{ secrets.RELEASE_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml
mvn deploy -DaltDeploymentRepository=ossrh::default::${{ secrets.RELEASE_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GPG_TTY: $(tty)
Expand Down
373 changes: 373 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

29 changes: 9 additions & 20 deletions MockMDS/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
# MockMDS

This module contains Mock MOSIP Device service implementation as per defined [SPEC](https://docs.mosip.io/platform/biometrics/mosip-device-service-specification)

Biometric data for registration capture is from files/MockMDS/registration

Biometric data for auth capture is from files/MockMDS/auth

Java 11 is a prerequisite

### Supported SPEC versions

0.9.5

### Defaults
## 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/`

## Defaults
server.port=4501

### Build and run

Execute the below command to build module
## Build and run

> mvn clean install
Execute the below command to build module:

target folder is created on successful build, run.sh / run.bat executable can be found under target folder.
```sh
mvn clean install
```

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

> io.mosip.mock.sbi.test.TestMockSBI
57 changes: 52 additions & 5 deletions MockMDS/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>io.mosip.mock.mds</groupId>
<artifactId>mock-mds</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
<name>mock-mds</name>
<description>A mock project for biometric provider</description>

Expand Down Expand Up @@ -108,8 +108,8 @@
<dependency>
<groupId>io.mosip.kernel</groupId>
<artifactId>kernel-core</artifactId>
<!-- <version>1.2.0-SNAPSHOT</version> -->
<version>1.2.0-SNAPSHOT</version>
<!-- <version>1.2.0</version> -->
<version>1.2.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.bitbucket.b_c/jose4j -->
Expand Down Expand Up @@ -142,7 +142,19 @@
</archive>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
Expand All @@ -165,7 +177,42 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<doclint>none</doclint>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.1</version>
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# mosip-mock-services
[![Maven Package upon a push](https://github.com/mosip/mosip-mock-services/actions/workflows/push_trigger.yml/badge.svg?branch=master)](https://github.com/mosip/mosip-mock-services/actions/workflows/push_trigger.yml)

# MOSIP Mock Services

This repository contains simulations (mock) of various components that are used in MOSIP. In production deployments these must be replaced with real components.

## License
This project is licensed under the terms of [Mozilla Public License 2.0](LICENSE).
8 changes: 4 additions & 4 deletions mock-abis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.mosip.mock.abis</groupId>
<artifactId>mock-abis</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
<packaging>jar</packaging>

<name>MockAbis</name>
Expand Down Expand Up @@ -81,16 +81,16 @@
<swagger.version>2.9.2</swagger.version>

<!-- Mosip kernel -->
<kernel.core.version>1.2.0-SNAPSHOT</kernel.core.version>
<kernel.biometrics.api.version>1.2.0-SNAPSHOT</kernel.biometrics.api.version>
<kernel.core.version>1.2.0</kernel.core.version>
<kernel.biometrics.api.version>1.2.0</kernel.biometrics.api.version>

<!-- Others -->
<postgresql.version>42.2.16</postgresql.version>
<json-simple.version>1.1</json-simple.version>
<jackson.version>2.11.3</jackson.version>
<gson.version>2.8.6</gson.version>
<logback.version>1.2.3</logback.version>
<h2-database-engine.version>1.4.200</h2-database-engine.version>
<h2-database-engine.version>2.1.210</h2-database-engine.version>

<springdoc.version>1.5.10</springdoc.version>
<spring.boot.version>2.0.2.RELEASE</spring.boot.version>
Expand Down
Binary file modified mock-abis/src/main/resources/cbeff.p12
Binary file not shown.
2 changes: 1 addition & 1 deletion mock-mv/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mock MV
# Mock Manual Verification (MV)

## About
* This service reads request from queue and mocks response for external "manual adjudication" and "verification" systems.
Expand Down
4 changes: 2 additions & 2 deletions mock-mv/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.mosip.mock.mv</groupId>
<artifactId>mock-mv</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
<packaging>jar</packaging>

<name>mock-mv</name>
Expand Down Expand Up @@ -100,7 +100,7 @@
<!--<dependency>
<groupId>io.mosip.kernel</groupId>
<artifactId>kernel-core</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</dependency>-->
<!--
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion mock-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<artifactId>mock-sdk</artifactId>
<groupId>io.mosip.mock.sdk</groupId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
<name>mock-sdk</name>
<description>Sample implementation of biometrics SDK</description>
<packaging>jar</packaging>
Expand Down