Goverance Github Server Validation 6 Test

This commit is contained in:
Luis Fernando Molina committed 2021-08-09 18:49:41 +02:00
1 parent 3d14b0b766
commit 1225ca023c
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -476,6 +476,7 @@ exports.newGithubServer = function newGithubServer() {
'Governance',
'User-Profiles'
)
console.log('pluginFileNames', JSON.stringify(pluginFileNames))
for (let i = 0; i < pluginFileNames.length; i++) {
let pluginFileName = pluginFileNames[i]
@@ -487,9 +488,11 @@ exports.newGithubServer = function newGithubServer() {
let otherUserProfile = JSON.parse(pluginFileContent)
userProfileIdMap.set(otherUserProfile.id, otherUserProfile.name)
console.log('Record of Map', otherUserProfile.id, otherUserProfile.name)
}
let testUserProfile = userProfileIdMap.get(userProfile.id)
console.log('testUserProfile', testUserProfile, 'userProfile.id', userProfile.id)
if (testUserProfile === undefined) { return true }
if (testUserProfile !== userProfile.name) {