Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohandey committed Dec 4, 2023
2 parents e8f866b + 0846bcd commit 80372bf
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 18 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/authdemo-push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,8 @@ jobs:
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

build-automation-tests:
needs: publish_to_nexus
uses: ./.github/workflows/automationtests-push-trigger.yml
25 changes: 13 additions & 12 deletions .github/workflows/automationtests-push-trigger.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
name: Maven Package upon a push

on:
release:
types: [published]
pull_request:
types: [opened, reopened, synchronize]
workflow_call:
workflow_dispatch:
inputs:
message:
description: 'Message for manually triggering'
required: false
default: 'Triggered for Updates'
type: string
push:
branches:
- '!release-branch'
- master
- 1.*
- develop
- MOSIP*
- release*
#release:
# types: [published]
#pull_request:
# types: [opened, reopened, synchronize]
#push:
# branches:
# - '!release-branch'
# - master
# - 1.*
# - develop
# - MOSIP*
# - release*

jobs:
build-maven-automationtests:
Expand Down
2 changes: 1 addition & 1 deletion authentication-demo-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


<groupId>io.mosip.testrig.authentication.demo</groupId>
<version>1.2.1-SNAPSHOT</version>
<version>1.2.1-develop-SNAPSHOT</version>
<artifactId>authentication-demo-service</artifactId>
<name>authentication-demo-service</name>
<packaging>jar</packaging>
Expand Down
6 changes: 3 additions & 3 deletions automationtests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<packaging>jar</packaging>
<name>mosip-functional-test</name>
<url>http://maven.apache.org</url>
<version>1.2.1-SNAPSHOT</version>
<version>1.2.1-develop-SNAPSHOT</version>

<licenses>
<license>
Expand Down Expand Up @@ -186,7 +186,7 @@
<rest.assured.version>3.0.7</rest.assured.version>
<testng.version>6.11</testng.version>
<zt.zip.version>1.13</zt.zip.version>
<fileName>automationtests-1.2.1-SNAPSHOT-jar-with-dependencies</fileName>
<fileName>automationtests-1.2.1-develop-SNAPSHOT-jar-with-dependencies</fileName>

</properties>
<dependencies>
Expand Down Expand Up @@ -461,7 +461,7 @@
<dependency>
<groupId>io.mosip.testrig.authentication.demo</groupId>
<artifactId>authentication-demo-service</artifactId>
<version>1.2.1-SNAPSHOT</version>
<version>1.2.1-develop-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>dom4j</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public class ConfigManager {
private static String S3_USER_KEY = "s3-user-key";
private static String S3_SECRET_KEY = "s3-user-secret";
private static String S3_ACCOUNT = "s3-account";
private static String S3_ACCOUNT_FOR_PERSONA_DATA = "s3-account-for-persona-data";
private static String PUSH_TO_S3 = "push-reports-to-s3";
private static String ENABLE_DEBUG = "enableDebug";
private static String THREAD_COUNT = "threadCount";
Expand Down Expand Up @@ -183,6 +184,7 @@ public class ConfigManager {
private static String s3Host;
private static String s3UserKey;
private static String s3Account;
private static String s3AccountForPersonaData;
private static String s3SecretKey;
private static String push_reports_to_s3;
private static String enableDebug;
Expand Down Expand Up @@ -291,6 +293,7 @@ public static void init() {
s3UserKey = getValueForKey(S3_USER_KEY);
s3SecretKey = getValueForKey(S3_SECRET_KEY);
s3Account = getValueForKey(S3_ACCOUNT);
s3AccountForPersonaData = getValueForKey(S3_ACCOUNT_FOR_PERSONA_DATA);
dbPort = getValueForKey(DB_PORT);
dbDomain = getValueForKey(DB_DOMAIN);
hibernateConnectionDriverClass = getValueForKey(HIBERNATE_CONNECTION_DRIVER_CLASS);
Expand Down Expand Up @@ -678,6 +681,10 @@ public static String getS3SecretKey() {
public static String getS3Account() {
return s3Account;
}

public static String getS3AccountForPersonaData() {
return s3AccountForPersonaData;
}

public static String getPushReportsToS3() {
return push_reports_to_s3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ s3-host=http://minio.minio:9000
s3-account=automation
s3-region=null
reportExpirationInDays=3
s3-account-for-persona-data=personaData
# supported values yes or no
push-reports-to-s3=yes
enableDebug=yes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,34 @@ AddIdentity:
}'
output: '{
"status":"ACTIVATED"
}'
auth_AddIdentity_withValidParameters_new_uin_smoke_Pos:
endPoint: /idrepository/v1/identity/
role: idrepo
restMethod: post
inputTemplate: ida/AddIdentity/addIdentity_$LANGNUMBER$
outputTemplate: ida/AddIdentity/addIdentityResult
input: '{
"value": "$BIOVALUE$",
"id": "mosip.id.create",
"registrationId": "$RID$",
"addressCopy": "Y",
"biometricReferenceId": "23452353",
"UIN": "$UIN$",
"dateOfBirth": "1970/07/08",
"postalCode": "14022",
"email": "[email protected]",
"phone": "7019858531",
"mobileno": "7019858531",
"referenceIdentityNumber": "6789545678878",
"version": "v1",
"introducerRID": "212124324784879",
"introducerUIN": "212124324784879",
"category": "individualBiometrics",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"status":"ACTIVATED"
}'
auth_AddIdentity_withValidParameters_Infant_smoke_Pos:
endPoint: /idrepository/v1/identity/
Expand Down Expand Up @@ -1052,4 +1080,4 @@ AddIdentity:
}'
output: '{
"status":"ACTIVATED"
}'
}'

0 comments on commit 80372bf

Please sign in to comment.