Skip to content

Commit a86ee52

Browse files
committed
Update multi tenancy_Integration.yml
1 parent a8395c2 commit a86ee52

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/multi tenancy_Integration.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ jobs:
157157
CLIENT_ID: ${{ steps.fetch_credentials.outputs.CLIENT_ID }}
158158
CLIENT_SECRET_MT: ${{ steps.fetch_credentials_mt.outputs.CLIENT_SECRET_MT }}
159159
CLIENT_ID_MT: ${{ steps.fetch_credentials_mt.outputs.CLIENT_ID_MT }}
160+
CMIS_CLIENT_ID: ${{ secrets.CMISCLIENTID }}
161+
CMIS_CLIENT_SECRET: ${{ secrets.CMISCLIENTSECRET }}
160162
run: |
161163
echo "🚀 Preparing credentials for ${{ matrix.tokenFlow }} - ${{ matrix.tenant }}..."
162164
set -e
@@ -174,6 +176,9 @@ jobs:
174176
password="${{ secrets.CF_PASSWORD }}"
175177
noSDMRoleUsername="${{ secrets.NOSDMROLEUSERNAME }}"
176178
noSDMRoleUserPassword="${{ secrets.NOSDMROLEUSERPASSWORD }}"
179+
CMIS_URL="${{ secrets.CMIS_URL }}"
180+
cmisClientID="$CMIS_CLIENT_ID"
181+
cmisClientSecret="$CMIS_CLIENT_SECRET"
177182
178183
echo "::add-mask::$clientSecret"
179184
echo "::add-mask::$clientID"
@@ -183,6 +188,9 @@ jobs:
183188
echo "::add-mask::$password"
184189
echo "::add-mask::$noSDMRoleUsername"
185190
echo "::add-mask::$noSDMRoleUserPassword"
191+
echo "::add-mask::$CMIS_URL"
192+
echo "::add-mask::$cmisClientID"
193+
echo "::add-mask::$cmisClientSecret"
186194
187195
if [ -z "$appUrl" ]; then echo "❌ Error: appUrl is not set"; exit 1; fi
188196
if [ -z "$appUrlMT" ]; then echo "❌ Error: appUrlMT is not set"; exit 1; fi
@@ -197,6 +205,9 @@ jobs:
197205
if [ -z "$password" ]; then echo "❌ Error: password is not set"; exit 1; fi
198206
if [ -z "$noSDMRoleUsername" ]; then echo "❌ Error: noSDMRoleUsername is not set"; exit 1; fi
199207
if [ -z "$noSDMRoleUserPassword" ]; then echo "❌ Error: noSDMRoleUserPassword is not set"; exit 1; fi
208+
if [ -z "$CMIS_URL" ]; then echo "❌ Error: CMIS_URL is not set"; exit 1; fi
209+
if [ -z "$cmisClientID" ]; then echo "❌ Error: cmisClientID is not set"; exit 1; fi
210+
if [ -z "$cmisClientSecret" ]; then echo "❌ Error: cmisClientSecret is not set"; exit 1; fi
200211
201212
cat > "$PROPERTIES_FILE" <<EOL
202213
appUrl=$appUrl
@@ -212,6 +223,9 @@ jobs:
212223
password=$password
213224
noSDMRoleUsername=$noSDMRoleUsername
214225
noSDMRoleUserPassword=$noSDMRoleUserPassword
226+
CMIS_URL=$CMIS_URL
227+
cmisClientID=$cmisClientID
228+
cmisClientSecret=$cmisClientSecret
215229
EOL
216230
echo "✅ Credentials file prepared!"
217231
@@ -402,6 +416,8 @@ jobs:
402416
CLIENT_ID: ${{ steps.fetch_credentials.outputs.CLIENT_ID }}
403417
CLIENT_SECRET_MT: ${{ steps.fetch_credentials_mt.outputs.CLIENT_SECRET_MT }}
404418
CLIENT_ID_MT: ${{ steps.fetch_credentials_mt.outputs.CLIENT_ID_MT }}
419+
CMIS_CLIENT_ID: ${{ secrets.CMISCLIENTID }}
420+
CMIS_CLIENT_SECRET: ${{ secrets.CMISCLIENTSECRET }}
405421
run: |
406422
set -e
407423
PROPERTIES_FILE="sdm/src/test/resources/credentials.properties"
@@ -422,6 +438,9 @@ jobs:
422438
virusScanRepositoryID="${{ secrets.VIRUSSCANREPOSITORYID }}"
423439
defaultRepositoryID="${{ secrets.DEFAULTREPOSITORYID }}"
424440
defaultRepositoryIDMT="${{ secrets.DEFAULTREPOSITORYIDMT }}"
441+
CMIS_URL="${{ secrets.CMIS_URL }}"
442+
cmisClientID="$CMIS_CLIENT_ID"
443+
cmisClientSecret="$CMIS_CLIENT_SECRET"
425444
cat > "$PROPERTIES_FILE" <<EOL
426445
appUrl=$appUrl
427446
appUrlMT=$appUrlMT
@@ -440,6 +459,9 @@ jobs:
440459
virusScanRepositoryID=$virusScanRepositoryID
441460
defaultRepositoryID=$defaultRepositoryID
442461
defaultRepositoryIDMT=$defaultRepositoryIDMT
462+
CMIS_URL=$CMIS_URL
463+
cmisClientID=$cmisClientID
464+
cmisClientSecret=$cmisClientSecret
443465
EOL
444466
echo "🎯 Running versioned integration tests for ${{ matrix.tokenFlow }} - ${{ matrix.tenant }} - ${{ matrix.testClass }}..."
445467
mvn clean verify -P integration-tests -DtokenFlow=${{ matrix.tokenFlow }} -DtenancyModel=multi -Dtenant=${{ matrix.tenant }} -DskipUnitTests -Dfailsafe.includes="**/${{ matrix.testClass }}.java"
@@ -631,6 +653,8 @@ jobs:
631653
CLIENT_ID: ${{ steps.fetch_credentials.outputs.CLIENT_ID }}
632654
CLIENT_SECRET_MT: ${{ steps.fetch_credentials_mt.outputs.CLIENT_SECRET_MT }}
633655
CLIENT_ID_MT: ${{ steps.fetch_credentials_mt.outputs.CLIENT_ID_MT }}
656+
CMIS_CLIENT_ID: ${{ secrets.CMISCLIENTID }}
657+
CMIS_CLIENT_SECRET: ${{ secrets.CMISCLIENTSECRET }}
634658
run: |
635659
set -e
636660
PROPERTIES_FILE="sdm/src/test/resources/credentials.properties"
@@ -651,6 +675,9 @@ jobs:
651675
virusScanRepositoryID="${{ secrets.VIRUSSCANREPOSITORYID }}"
652676
defaultRepositoryID="${{ secrets.DEFAULTREPOSITORYID }}"
653677
defaultRepositoryIDMT="${{ secrets.DEFAULTREPOSITORYIDMT }}"
678+
CMIS_URL="${{ secrets.CMIS_URL }}"
679+
cmisClientID="$CMIS_CLIENT_ID"
680+
cmisClientSecret="$CMIS_CLIENT_SECRET"
654681
cat > "$PROPERTIES_FILE" <<EOL
655682
appUrl=$appUrl
656683
appUrlMT=$appUrlMT
@@ -669,6 +696,9 @@ jobs:
669696
virusScanRepositoryID=$virusScanRepositoryID
670697
defaultRepositoryID=$defaultRepositoryID
671698
defaultRepositoryIDMT=$defaultRepositoryIDMT
699+
CMIS_URL=$CMIS_URL
700+
cmisClientID=$cmisClientID
701+
cmisClientSecret=$cmisClientSecret
672702
EOL
673703
echo "🎯 Running virus scan integration tests for ${{ matrix.tokenFlow }} - ${{ matrix.tenant }} - ${{ matrix.testClass }}..."
674704
mvn clean verify -P integration-tests -DtokenFlow=${{ matrix.tokenFlow }} -DtenancyModel=multi -Dtenant=${{ matrix.tenant }} -DskipUnitTests -Deicar.file.path=eicar.com.txt -Dfailsafe.includes="**/${{ matrix.testClass }}.java"
@@ -845,6 +875,8 @@ jobs:
845875
CLIENT_ID: ${{ steps.fetch_credentials.outputs.CLIENT_ID }}
846876
CLIENT_SECRET_MT: ${{ steps.fetch_credentials_mt.outputs.CLIENT_SECRET_MT }}
847877
CLIENT_ID_MT: ${{ steps.fetch_credentials_mt.outputs.CLIENT_ID_MT }}
878+
CMIS_CLIENT_ID: ${{ secrets.CMISCLIENTID }}
879+
CMIS_CLIENT_SECRET: ${{ secrets.CMISCLIENTSECRET }}
848880
run: |
849881
set -e
850882
PROPERTIES_FILE="sdm/src/test/resources/credentials.properties"
@@ -865,6 +897,9 @@ jobs:
865897
virusScanRepositoryID="${{ secrets.VIRUSSCANREPOSITORYID }}"
866898
defaultRepositoryID="${{ secrets.DEFAULTREPOSITORYID }}"
867899
defaultRepositoryIDMT="${{ secrets.DEFAULTREPOSITORYIDMT }}"
900+
CMIS_URL="${{ secrets.CMIS_URL }}"
901+
cmisClientID="$CMIS_CLIENT_ID"
902+
cmisClientSecret="$CMIS_CLIENT_SECRET"
868903
cat > "$PROPERTIES_FILE" <<EOL
869904
appUrl=$appUrl
870905
appUrlMT=$appUrlMT
@@ -883,6 +918,9 @@ jobs:
883918
virusScanRepositoryID=$virusScanRepositoryID
884919
defaultRepositoryID=$defaultRepositoryID
885920
defaultRepositoryIDMT=$defaultRepositoryIDMT
921+
CMIS_URL=$CMIS_URL
922+
cmisClientID=$cmisClientID
923+
cmisClientSecret=$cmisClientSecret
886924
EOL
887925
echo "🎯 Running repo-specific integration tests for ${{ matrix.tokenFlow }} - ${{ matrix.tenant }} - ${{ matrix.testClass }}..."
888926
mvn clean verify -P integration-tests -DtokenFlow=${{ matrix.tokenFlow }} -DtenancyModel=multi -Dtenant=${{ matrix.tenant }} -DskipUnitTests -Dfailsafe.includes="**/${{ matrix.testClass }}.java"
@@ -1008,6 +1046,8 @@ jobs:
10081046
CLIENT_ID: ${{ steps.fetch_credentials.outputs.CLIENT_ID }}
10091047
CLIENT_SECRET_MT: ${{ steps.fetch_credentials_mt.outputs.CLIENT_SECRET_MT }}
10101048
CLIENT_ID_MT: ${{ steps.fetch_credentials_mt.outputs.CLIENT_ID_MT }}
1049+
CMIS_CLIENT_ID: ${{ secrets.CMISCLIENTID }}
1050+
CMIS_CLIENT_SECRET: ${{ secrets.CMISCLIENTSECRET }}
10111051
run: |
10121052
set -e
10131053
PROPERTIES_FILE="sdm/src/test/resources/credentials.properties"
@@ -1029,6 +1069,9 @@ jobs:
10291069
defaultRepositoryID="${{ secrets.DEFAULTREPOSITORYID }}"
10301070
defaultRepositoryIDMT="${{ secrets.DEFAULTREPOSITORYIDMT }}"
10311071
consumerSubdomainMT="${{ secrets.CONSUMERSUBDOMAINMT }}"
1072+
CMIS_URL="${{ secrets.CMIS_URL }}"
1073+
cmisClientID="$CMIS_CLIENT_ID"
1074+
cmisClientSecret="$CMIS_CLIENT_SECRET"
10321075
cat > "$PROPERTIES_FILE" <<EOL
10331076
appUrl=$appUrl
10341077
appUrlMT=$appUrlMT
@@ -1048,6 +1091,9 @@ jobs:
10481091
defaultRepositoryID=$defaultRepositoryID
10491092
defaultRepositoryIDMT=$defaultRepositoryIDMT
10501093
consumerSubdomainMT=$consumerSubdomainMT
1094+
CMIS_URL=$CMIS_URL
1095+
cmisClientID=$cmisClientID
1096+
cmisClientSecret=$cmisClientSecret
10511097
EOL
10521098
echo "🎯 Running subscription integration tests for ${{ matrix.tenant }}..."
10531099
mvn clean verify -P integration-tests -DtokenFlow=technicalUser -DtenancyModel=multi -Dtenant=${{ matrix.tenant }} -DskipUnitTests -Dfailsafe.includes="**/IntegrationTest_Subscription.java"

0 commit comments

Comments
 (0)