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

[MOSIP-32901] Merging changes from release back to develop #951

Closed
wants to merge 112 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
15d8242
[DSD-6382] updated chart version in helm and deployment scripts
ckm007 Oct 4, 2024
1013b06
[DSD-6382] updated changes as reported during dev round
ckm007 Oct 4, 2024
4fa1c67
Merge pull request #932 from mosip/DSD-6382
ckm007 Oct 4, 2024
576292d
[DSD-6382] adding fixes for issues reported during dev round
ckm007 Oct 4, 2024
7a751a0
[DSD-6382] removing swp file added by mistake
ckm007 Oct 4, 2024
20e7552
Merge pull request #933 from mosip/DSD-6382
ckm007 Oct 4, 2024
db488a1
[DSD-6382] increased initialDelaySeconds in esignet helm
ckm007 Oct 4, 2024
3c3e3ad
[DSD-6382] updated healthcheck configurations
ckm007 Oct 4, 2024
8d373b4
[DSD-6382] removed unused clusterrolebinding
ckm007 Oct 4, 2024
e2c2b5c
Merge pull request #935 from mosip/DSD-6382
ckm007 Oct 4, 2024
e0461c8
Updated readme, pom.xml. Added NoOpKeyBinder default implementation
ase-101 Oct 6, 2024
80a65e8
Merge pull request #936 from ase-101/release-1.5.x
ckm007 Oct 6, 2024
f0640fa
[DSD-6382] updated correct onboarder chart version
ckm007 Oct 7, 2024
8f4233e
[DSD-6382] removed not required enabled params from realm attribute
ckm007 Oct 7, 2024
68fd2fb
[DSD-6382] added misp key update part
ckm007 Oct 7, 2024
8b96f25
[DSD-6382] updated message
ckm007 Oct 7, 2024
1ae3f87
Merge pull request #938 from ckm007/release-1.5.x
ckm007 Oct 7, 2024
d60c127
MOSIP-36454 - fixed build issue by adding suite setup in runner file …
mohanachandran-s Oct 9, 2024
264c510
[DSD-6382] added captcha secret update part to initialisation script …
ckm007 Oct 15, 2024
0120dcf
[ES-842] Updated the stoplight (#944) (#945)
ase-101 Oct 15, 2024
2988440
ES-842 Using mulitple profiles to avoid duplicate configuration
ase-101 Oct 15, 2024
b82cffd
Merge pull request #957 from ase-101/release-1.5.x
ckm007 Oct 16, 2024
e1d9b82
Delete .github/workflows/codeql-analysis.yml (#965)
rajapandi1234 Oct 18, 2024
0c670bf
ES-1807 & updated postman collection (#964)
ase-101 Oct 18, 2024
dbeb9d7
[DSD-6445] (#974)
ckm007 Oct 23, 2024
3391008
[DSD-6445] Updated esignet-global-cm.yaml.sample
abhishek8shankar Oct 25, 2024
acb8ca7
[DSD-6445] Updated esignet-global-cm.yaml.sample (#977)
abhishek8shankar Oct 28, 2024
317ddfd
Merge branch 'mosip:release-1.5.x' into release-1.5.x
abhishek8shankar Oct 28, 2024
267d23e
[DSD-6445] Updated install.sh scripts for softhsm .
abhishek8shankar Oct 28, 2024
933ce96
Merge pull request #981 from abhishek8shankar/release-1.5.x
ckm007 Oct 28, 2024
d33db4f
[DSD-6445]Updated application-default.properties
Rakshitha650 Oct 30, 2024
7ff5b1c
Merge pull request #982 from Rakshitha650/patch-1
ckm007 Oct 30, 2024
4e7e59a
[ES-1892] [ES-1358] i18n translation changes and minor UI changes. (#…
gk-4VII Nov 4, 2024
6a2503f
ES-842
ase-101 Nov 3, 2024
3acb544
Merge pull request #985 from ase-101/release-1.5.x
ckm007 Nov 6, 2024
b4d66f7
MOSIP-37214
nandhu-kumar Nov 6, 2024
bdea2d4
Merge pull request #989 from nandhu-kumar/release-1.5.x
ckm007 Nov 6, 2024
f5d82e8
MOSIP-37214
nandhu-kumar Nov 11, 2024
e5dcf40
Merge remote-tracking branch 'upstream/release-1.5.x' into release-1.5.x
nandhu-kumar Nov 11, 2024
ce928f1
MOSIP-37214
nandhu-kumar Nov 11, 2024
bc6e8f8
Merge pull request #994 from nandhu-kumar/release-1.5.x
ckm007 Nov 11, 2024
f7bff95
MOSIP-37214 | Syncing changes from develop to Release 1.5.x
nandhu-kumar Nov 12, 2024
18ad7d7
Merge pull request #996 from nandhu-kumar/release-1.5.x
ckm007 Nov 13, 2024
580c7c7
[MOSIP-37447] restructured postgres
bhumi46 Nov 13, 2024
d83bc1f
[MOSIP-37447] restructured postgres
bhumi46 Nov 13, 2024
a1b823b
[MOSIP-37447] restructured postgres
bhumi46 Nov 13, 2024
85ffb1e
[MOSIP-37447] restructured postgres
bhumi46 Nov 13, 2024
35fbef0
MOSIP-37214
nandhu-kumar Nov 13, 2024
47547a2
Merge remote-tracking branch 'upstream/release-1.5.x' into release-1.5.x
nandhu-kumar Nov 13, 2024
c4ce474
MOSIP-37214
nandhu-kumar Nov 13, 2024
6ecfe85
[MOSIP-37447] restructured postgres
bhumi46 Nov 13, 2024
4c1d0c0
MOSIP-37214
nandhu-kumar Nov 13, 2024
0ce6bdd
MOSIP-37214
nandhu-kumar Nov 14, 2024
6891001
MOSIP-37476 - updated the docker file for jdk version
mohanachandran-s Nov 14, 2024
e186562
MOSIP-37214
nandhu-kumar Nov 14, 2024
159390b
MOSIP-37214
nandhu-kumar Nov 14, 2024
147ad04
Merge pull request #1002 from mohanachandran-s/patch-2
ckm007 Nov 14, 2024
6cbb5b4
Merge remote-tracking branch 'upstream/release-1.5.x' into release-1.5.x
nandhu-kumar Nov 14, 2024
29ab4fc
[DSD-6445] Updated install.sh for opting plugings
abhishek8shankar Nov 14, 2024
bb78dd7
MOSIP-37214
nandhu-kumar Nov 14, 2024
4b9cb29
[MOSIP-37447] added nfs helm changes for apitestrig
bhumi46 Nov 14, 2024
09d83d2
MOSIP-37214
nandhu-kumar Nov 15, 2024
1c841ed
Merge pull request #998 from nandhu-kumar/release-1.5.x
ckm007 Nov 15, 2024
6d5c3cf
Merge pull request #1004 from abhishek8shankar/release-1.5.x
ckm007 Nov 15, 2024
7e63ff6
[ES-1553] Hidden the language dropdown in the claim-details screen. (…
gk-4VII Nov 18, 2024
a71d5ef
ES-1929 (#1007)
ase-101 Nov 18, 2024
25f3b48
[MOSIP-37447] restructured postgres
bhumi46 Nov 19, 2024
4e69170
[MOSIP-37447] restructured postgres
bhumi46 Nov 19, 2024
f442fb7
[MOSIP-37447] restructured postgres
bhumi46 Nov 20, 2024
a51b904
[MOSIP-37447] restructured postgres
bhumi46 Nov 20, 2024
a4d0f56
[MOSIP-37447] restructured postgres
bhumi46 Nov 25, 2024
f8d1c21
Merge pull request #997 from bhumi46/release-1.5.x
ckm007 Nov 27, 2024
81e5a59
MOSIP-37793 - Updated the Readme file
mohanachandran-s Nov 28, 2024
08d9be8
Merge pull request #1019 from mohanachandran-s/patch-2
ckm007 Nov 29, 2024
32df861
[MOSIP-37815] Added Unique Config as User input (#1017)
VSIVAKALYAN Nov 29, 2024
409fc2e
[DSD-6742] updated/restructured install scripts for fixes
ckm007 Nov 29, 2024
54980e2
Merge pull request #1022 from shubham17998/release-1.5.x
ckm007 Nov 29, 2024
63bf6a4
Merge pull request #1020 from VSIVAKALYAN/release-1.5.x
ckm007 Nov 29, 2024
ca8db25
MOSIP-36485
nandhu-kumar Dec 4, 2024
fbe159f
MOSIP-36485
nandhu-kumar Dec 4, 2024
a93b85d
ES-1987
nandhu-kumar Dec 4, 2024
d11f9a8
Merge pull request #1025 from nandhu-kumar/release-1.5.x
ckm007 Dec 5, 2024
0435933
MOSIP-36485 (#1028)
nandhu-kumar Dec 5, 2024
cefe1a8
MOSIP-36485 | changes validation message (#1031)
nandhu-kumar Dec 6, 2024
2781a9b
ES-1856 updated Readme file as per review comments (#1023)
ase-101 Dec 10, 2024
053bf8d
[DSD-6742] Updated values.yaml
shubham17998 Dec 11, 2024
9a02050
[DSD-6742] Updated install.sh replaced global cm as esignet-global
shubham17998 Dec 11, 2024
85f1cd8
[DSD-6742] Updated apitestrig README
ckm007 Dec 11, 2024
15724e8
[DSD-6742] Updated Env variables in values.yaml
ckm007 Dec 11, 2024
74aba18
Merge pull request #1039 from shubham17998/release-1.5.x
ckm007 Dec 11, 2024
bb62027
[DSD-6742] removed unwanted Env variables in values.yaml
ckm007 Dec 11, 2024
cc8cc32
Merge pull request #1041 from shubham17998/release-1.5.x
ckm007 Dec 11, 2024
500f8d8
[DSD-6742] updated README
ckm007 Dec 12, 2024
ec90140
ES-842 (#1046)
ase-101 Dec 12, 2024
d51fea5
Merge pull request #1043 from shubham17998/release-1.5.x
ckm007 Dec 12, 2024
8a72bdf
Updated postman collection & docker compose (#1048)
ase-101 Dec 13, 2024
9d8c405
ES-842 Update esignet-openapi.yaml
ase-101 Dec 16, 2024
02d18f8
Merge pull request #1050 from mosip/ase-101-patch-4
ckm007 Dec 16, 2024
7aab66a
[DSD-6888]Update push-trigger.yml to check results for release. (#1051)
Mahesh-Binayak Dec 17, 2024
835a3f3
[DSD-6888]Update push-trigger.yml reverting changes for sonar test (#…
Mahesh-Binayak Dec 17, 2024
ef0ae97
Update README.md
Rakshitha650 Dec 17, 2024
0978270
Merge pull request #1053 from Rakshitha650/patch-2
ckm007 Dec 17, 2024
c1ed8e5
Update Dockerfile (#1057)
Prafulrakhade Dec 18, 2024
06e992d
MOSIP-36485 | Updated the commons released version in pom.xml (#1056)
nandhu-kumar Dec 18, 2024
dec7af1
[MOSIP-36849]updated README.md (#1055)
Rakshitha650 Dec 18, 2024
639edbe
[DSD-6742] Updated Install script for istio (#1063)
shubham17998 Dec 20, 2024
7a3a9ae
[DSD-6742] Updated esignet-global-cm.yaml.sample
shubham17998 Dec 20, 2024
024ea4d
Merge pull request #1068 from shubham17998/release-1.5.x
ckm007 Dec 20, 2024
1ac9cce
Update Dockerfile
ase-101 Dec 20, 2024
5382b72
Merge pull request #1071 from ase-101/release-1.5.x
ckm007 Dec 23, 2024
39ef8e0
[DSD-6742] Updated init_values.yaml
shubham17998 Dec 24, 2024
71be1ee
Merge pull request #1077 from shubham17998/release-1.5.x
ckm007 Dec 24, 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
37 changes: 0 additions & 37 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
[![Maven Package upon a push](https://github.com/mosip/esignet/actions/workflows/push_trigger.yml/badge.svg?branch=develop)](https://github.com/mosip/esignet/actions/workflows/push_trigger.yml)
[![Maven Package upon a push](https://github.com/mosip/esignet/actions/workflows/push_trigger.yml/badge.svg?branch=release-1.5.x)](https://github.com/mosip/esignet/actions/workflows/push_trigger.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=mosip_esignet&id=mosip_esignet&metric=alert_status)](https://sonarcloud.io/dashboard?id=mosip_esignet)
# eSignet Project
## Overview

eSignet offers a seamless and straightforward solution for incorporating an existing trusted identity database into the digital realm via plugins.

This repository contains limited OpenId protocol implementation with:
* OAuth 2.0 RFC 6749 - Authorization code flow support
* OAuth 2.0 RFC 7636 - PKCE security extension
* OAuth 2.0 RFC 7523 - JWT profile for client authentication
* RFC 7519 - ID token and access token as JWT
* OpenID Connect Discovery 1.0 - /.well-known/openid-configuration
* RFC 5785 - Followed for both openid and oauth well-knowns
* Identity assurance 1.0
* Identity Assurance 1.0

## High level overview of eSignet with external systems

![esignet-architecture-overview.png](docs/esignet-architecture-overview.png)
![esignet-overview.png](docs/esignet-overview.png)

`Note: Kindly refer `[eSignet signup repository](https://github.com/mosip/esignet-signup)` for more details on eSignet signup module.`

eSignet repository contains following:

Expand Down Expand Up @@ -43,7 +45,7 @@ Refer to [SQL scripts](db_scripts).
The project requires JDK 11.
1. Build:
```
$ mvn clean install -Dgpg.skip=true
$ mvn clean install -Dgpg.skip=true -Dmaven.gitcommitid.skip=true
```
## [Deployment in K8 cluster](deploy/README.md)

Expand Down
2 changes: 1 addition & 1 deletion api-test/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mosipdev/openjdk-21-jre:latest
FROM mosipid/openjdk-21-jre:21.0.4

ARG SOURCE
ARG COMMIT_HASH
Expand Down
172 changes: 170 additions & 2 deletions api-test/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,171 @@
# Automation test
# eSignet API Test Rig

All automation test code.
## Overview

The **eSignet API Test Rig** is designed for the execution of module-wise automation API tests for the eSignet service. This test rig utilizes **Java REST Assured** and **TestNG** frameworks to automate testing of the eSignet API functionalities. The key focus is to validate the authentication, signature generation, and related functionalities provided by the eSignet module.

---

## Test Categories

- **Smoke**: Contains only positive test scenarios for quick verification.
- **Regression**: Includes all test scenarios, covering both positive and negative cases.

---

## Coverage

This test rig covers only **external API endpoints** exposed by the eSignet module.

---

## Pre-requisites

Before running the automation tests, ensure the following software is installed on the machine:

- **Java 21** (or a compatible version)
- **Maven 3.9.6** (or higher)
- **Lombok** (Refer to [Lombok Project](https://projectlombok.org/))
- **setting.xml** ([download here](https://github.com/mosip/mosip-functional-tests/blob/master/settings.xml))
- **apitest-commons** library should be cloned and the JAR should be built. Refer to ([README](https://github.com/mosip/mosip-functional-tests/blob/release-1.3.0/apitest-commons/README.md))

### For Windows

- **Git Bash 2.18.0** or higher
- Ensure the `settings.xml` file is present in the `.m2` folder.

### For Linux

- The `settings.xml` file should be present in two places:
- In the regular Maven configuration folder (`/conf`)
- Under `/usr/local/maven/conf/`

---

## Access Test Automation Code

You can access the test automation code using either of the following methods:

### From Browser

1. Clone or download the repository as a zip file from [GitHub](https://github.com/mosip/esignet).
2. Unzip the contents to your local machine.
3. Open a terminal (Linux) or command prompt (Windows) and continue with the following steps.

### From Git Bash

1. Copy the Git repository URL: `https://github.com/mosip/esignet`
2. Open **Git Bash** on your local machine.
3. Run the following command to clone the repository:
```sh
git clone https://github.com/mosip/esignet
```

---

## Build Test Automation Code

Once the repository is cloned or downloaded, follow these steps to build and install the test automation code:

1. Navigate to the project directory:
```sh
cd api-test
```

2. Build the project using Maven:
```sh
mvn clean install -Dgpg.skip=true -Dmaven.gitcommitid.skip=true
```

This will download the required dependencies and prepare the test suite for execution.

---

## Execute Test Automation Suite

You can execute the test automation code using either of the following methods:

### Using Jar

To execute the tests using Jar, use the following steps:

1. Navigate to the `target` directory where the JAR file is generated:
```sh
cd target/
```

2. Run the automation test suite JAR file:
```
java -jar -Dmodules=esignet -Denv.user=api-internal.<env_name> -Denv.endpoint=<base_env> -Denv.testLevel=smokeAndRegression -jar apitest-esignet-1.2.1-SNAPSHOT-jar-with-dependencies.jar
```

# Using Eclipse IDE

To execute the tests using Eclipse IDE, use the following steps:

## 1. **Install Eclipse (Latest Version)**
- Download and install the latest version of Eclipse IDE from the [Eclipse Downloads](https://www.eclipse.org/downloads/).

## 2. **Import the Maven Project**

After Eclipse is installed, follow these steps to import the Maven project:

- Open Eclipse IDE.
- Go to `File` > `Import`.
- In the **Import** wizard, select `Maven` > `Existing Maven Projects`, then click **Next**.
- Browse to the location where the `api-test` folder is saved (either from the cloned Git repository or downloaded zip).
- Select the folder, and Eclipse will automatically detect the Maven project. Click **Finish** to import the project.

## 3. **Build the Project**

- Right-click on the project in the **Project Explorer** and select `Maven` > `Update Project`.
- This will download the required dependencies as defined in the `pom.xml` and ensure everything is correctly set up.

## 4. **Run the Tests**

To execute the test automation suite, you need to configure the run parameters in Eclipse:

- Go to `Run` > `Run Configurations`.
- In the **Run Configurations** window, create a new configuration for your tests:
- Right-click on **Java Application** and select **New**.
- In the **Main** tab, select the project by browsing the location where the `api-test` folder is saved, and select the **Main class** as `io.mosip.testrig.apirig.esignet.testrunner.MosipTestRunner`.
- In the **Arguments** tab, add the necessary **VM arguments**:
- **VM Arguments**:
```
-Dmodules=esignet -Denv.user=api-internal.<env_name> -Denv.endpoint=<base_env> -Denv.testLevel=smokeAndRegression```

## 5. **Run the Configuration**

- Once the configuration is set up, click **Run** to execute the test suite.
- The tests will run, and the results will be shown in the **Console** tab of Eclipse.

**Note**: You can also run in **Debug Mode** to troubleshoot issues by setting breakpoints in your code and choosing `Debug` instead of `Run`.

## 6. **View Test Results**

- After the tests are executed, you can view the detailed results in the `api-test\testng-report` directory.
- Two reports will gets generated
- First report is for pre-requisite testcases
- Second report is for core testcases

---

## Details of Arguments Used

- **env.user**: Replace `<env_name>` with the appropriate environment name (e.g., `dev`, `qa`, etc.).
- **env.endpoint**: The environment where the application under test is deployed. Replace `<base_env>` with the correct base URL for the environment (e.g., `https://api-internal.<env_name>.mosip.net`).
- **env.testLevel**: Set this to `smoke` to run only smoke test cases, or `smokeAndRegression` to run both smoke and regression tests.
- **jar**: Specify the name of the JAR file to execute. The version will change according to the development code version. For example, the current version may look like `apitest-esignet-1.2.1-SNAPSHOT-jar-with-dependencies.jar`.

### Build and Run Info

To run the tests for both **Smoke** and **Regression**:

1. Ensure the correct environment and test level parameters are set.
2. Execute the tests as shown in the command above to validate eSignet's API functionalities.

---

## License

This project is licensed under the terms of the [Mozilla Public License 2.0](https://github.com/mosip/mosip-platform/blob/master/LICENSE)
10 changes: 5 additions & 5 deletions api-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<name>apitest-esignet</name>
<description>Parent project of MOSIP Esignet apitests</description>
<url>https://github.com/mosip/esignet</url>
<version>1.2.1-SNAPSHOT</version>
<version>1.5.0-SNAPSHOT</version>

<licenses>
<license>
Expand Down Expand Up @@ -49,14 +49,14 @@
<maven.source.plugin.version>2.2.1</maven.source.plugin.version>

<git.commit.id.plugin.version>3.0.1</git.commit.id.plugin.version>
<fileName>apitest-esignet-1.2.1-SNAPSHOT-jar-with-dependencies</fileName>
<fileName>apitest-esignet-1.5.0-SNAPSHOT-jar-with-dependencies</fileName>
</properties>

<dependencies>
<dependency>
<groupId>io.mosip.testrig.apirig.apitest.commons</groupId>
<groupId>io.mosip.testrig.apitest.commons</groupId>
<artifactId>apitest-commons</artifactId>
<version>1.2.2-SNAPSHOT</version>
<version>1.3.0</version>
</dependency>
</dependencies>

Expand Down Expand Up @@ -163,7 +163,7 @@
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>
io.mosip.testrig.apirig.testrunner.MosipTestRunner</mainClass>
io.mosip.testrig.apirig.esignet.testrunner.MosipTestRunner</mainClass>
</transformer>
</transformers>
<!-- add this to prevent some security issues when
Expand Down
Loading
Loading