Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
29 changes: 1 addition & 28 deletions .github/workflows/apitest-push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
OSSRH_URL: ${{ secrets.RELEASE_URL }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
Expand All @@ -56,33 +56,6 @@ jobs:
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: ./apitest-commons
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 }}

build-maven-authentication-demo-service:
uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21
with:
SERVICE_LOCATION: ./authentication-demo-service
BUILD_ARTIFACT: authentication-demo-service
secrets:
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-authentication-demo-service:
needs: build-maven-authentication-demo-service
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: ./authentication-demo-service
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
ORG_KEY: ${{ secrets.ORG_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ To use this repository, ensure you have:
<dependency>
<groupId>io.mosip.testrig.apirig.apitest.commons</groupId>
<artifactId>apitest-commons</artifactId>
<version>1.3.2-SNAPSHOT</version>
<version>1.3.2</version>
</dependency>

---
Expand Down
3 changes: 2 additions & 1 deletion apitest-commons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The API Test Commons is a shared codebase used for executing module-wise automat
- ESignet-signup
- Mimoto
- Inji-Certify
- Inji-Verify

---

Expand Down Expand Up @@ -84,7 +85,7 @@ Ensure the following software is installed on the machine from where the automat
<dependency>
<groupId>io.mosip.testrig.apirig.apitest.commons</groupId>
<artifactId>apitest-commons</artifactId>
<version>1.3.2-SNAPSHOT</version>
<version>1.3.2</version>
</dependency>

---
Expand Down
6 changes: 3 additions & 3 deletions apitest-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<name>apitest-commons</name>
<description>Parent project of MOSIP functional tests</description>
<url>https://github.com/mosip/mosip-functional-tests</url>
<version>1.3.2-SNAPSHOT</version>
<version>1.3.2</version>

<licenses>
<license>
Expand Down Expand Up @@ -55,7 +55,7 @@
<aws.javasdk.version>1.11.368</aws.javasdk.version>

<!-- Hibernate version -->
<hibernate.version>5.2.17.Final</hibernate.version>
<hibernate.version>5.3.20.Final</hibernate.version>

<!-- automationtests version -->
<wink-json4j-provider.version>1.1.2-incubating</wink-json4j-provider.version>
Expand All @@ -66,7 +66,7 @@
<maven.model.version>3.3.9</maven.model.version>
<testng.version>7.11.0</testng.version>
<zt.zip.version>1.13</zt.zip.version>
<fileName>apitest-commons-1.3.2-SNAPSHOT-jar-with-dependencies</fileName>
<fileName>apitest-commons-1.3.2-jar-with-dependencies</fileName>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2787,6 +2787,8 @@ public String inputJsonKeyWordHandeler(String jsonString, String testCaseName) {
}
if (jsonString.contains(GlobalConstants.TIMESTAMP))
jsonString = replaceKeywordWithValue(jsonString, GlobalConstants.TIMESTAMP, generateCurrentUTCTimeStamp());
if (jsonString.contains("$EXPIRYTIMESTAMP$"))
jsonString = replaceKeywordWithValue(jsonString, "$EXPIRYTIMESTAMP$", generateExpiryUTCTimeStamp());
if (jsonString.contains(GlobalConstants.TRANSACTION_ID))
jsonString = replaceKeywordWithValue(jsonString, GlobalConstants.TRANSACTION_ID, TRANSACTION_ID);
if (jsonString.contains("$DATESTAMP$"))
Expand Down Expand Up @@ -3276,6 +3278,14 @@ public static String generateCurrentUTCTimeStamp() {
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
return dateFormat.format(date);
}

public static String generateExpiryUTCTimeStamp() {
Calendar calendar = Calendar.getInstance();
calendar.add(Calendar.SECOND, Integer.parseInt(ConfigManager.getproperty("expirationTime")));
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
return dateFormat.format(calendar.getTime());
}

public static String generateCurrentUTCDateStamp() {
Date date = new Date();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ admin_password=mosip123
admin_userName=220005
admin_zone_password=mosip123
admin_zone_userName=globaladmin

expirationTime=120


#------------------------- Need to check if these are used or not ------------------------#
Expand Down
4 changes: 0 additions & 4 deletions authentication-demo-service/.gitignore

This file was deleted.

86 changes: 0 additions & 86 deletions authentication-demo-service/Dockerfile

This file was deleted.

26 changes: 0 additions & 26 deletions authentication-demo-service/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions authentication-demo-service/entrypoint.sh

This file was deleted.

53 changes: 0 additions & 53 deletions authentication-demo-service/lib/Keystore/ExportPrivateKey.java

This file was deleted.

21 changes: 0 additions & 21 deletions authentication-demo-service/lib/Keystore/MosipTestCert.cer

This file was deleted.

21 changes: 0 additions & 21 deletions authentication-demo-service/lib/Keystore/MosipTestCert.pem

This file was deleted.

Binary file not shown.
3 changes: 0 additions & 3 deletions authentication-demo-service/lib/Keystore/PrivateKey.pem

This file was deleted.

Binary file removed authentication-demo-service/lib/Keystore/PublicKey.pem
Binary file not shown.
Loading