diff --git a/app/repository/assets-repository.js b/app/repository/assets-repository.js index aa1b96f2..af99e3e3 100644 --- a/app/repository/assets-repository.js +++ b/app/repository/assets-repository.js @@ -2,6 +2,9 @@ const BaseRepository = require('./_base.repository'); const Asset = require('../models/asset-model'); +const regexValidator = require('../lib/regex'); +const { lastUpdatedByQueryHelper } = require('../lib/request-parameter-helper'); +const { DatabaseError } = require('../exceptions'); class AssetsRepository extends BaseRepository { diff --git a/app/tests/shared/keycloak.js b/app/tests/shared/keycloak.js index a3555bdc..8350b855 100644 --- a/app/tests/shared/keycloak.js +++ b/app/tests/shared/keycloak.js @@ -119,18 +119,18 @@ async function getClientSecret(basePath, realmName, idOfClient, token) { } } -async function getWellKnownConfiguration(basePath, realmName, token) { - try { - const res = await request - .get(`${ basePath }/realms/${ realmName }/.well-known/openid-configuration`) - .set('Authorization', `bearer ${ token }`); - console.log(res); - } - catch (err) { - logger.error('Unable to get well known configuration'); - throw err; - } -} +// async function getWellKnownConfiguration(basePath, realmName, token) { +// try { +// const res = await request +// .get(`${ basePath }/realms/${ realmName }/.well-known/openid-configuration`) +// .set('Authorization', `bearer ${ token }`); +// console.log(res); +// } +// catch (err) { +// logger.error('Unable to get well known configuration'); +// throw err; +// } +// } async function createUser(basePath, realmName, userOptions, token) { const userData = {