Skip to content
Snippets Groups Projects
Commit 37fc1ebf authored by Xiao Gui's avatar Xiao Gui
Browse files

chore: fix pli e2e test

chore: changed sptial transform endpoint
parent 5f82f8fe
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ describe('> non-atlas images', () => {
)
)
const arr = [
const arrPli = [
"https://neuroglancer.humanbrainproject.eu/precomputed/PLI_FOM/BI-FOM-HSV_R",
"https://neuroglancer.humanbrainproject.eu/precomputed/PLI_FOM/BI-FOM-HSV_G",
"https://neuroglancer.humanbrainproject.eu/precomputed/PLI_FOM/BI-FOM-HSV_B",
......@@ -135,7 +135,7 @@ describe('> non-atlas images', () => {
)
)
for (const url of arr) {
for (const url of arrPli) {
expect(
interceptedCalls
).toContain(
......
......@@ -16,7 +16,7 @@ export class TemplateCoordinatesTransformation {
constructor(private httpClient: HttpClient) {}
public url = 'https://hbp-spatial-backend.apps-dev.hbp.eu/v1/transform-points'
public url = `${SPATIAL_TRANSFORM_BACKEND.replace(/\/$/, '')}/v1/transform-points`
// jasmine marble cannot test promise properly
// see https://github.com/ngrx/platform/issues/498#issuecomment-337465179
......
......@@ -21,3 +21,4 @@ declare var MATOMO_URL: string
declare var MATOMO_ID: string
declare var STRICT_LOCAL: boolean
declare var KIOSK_MODE: boolean
declare var SPATIAL_TRANSFORM_BACKEND: string
......@@ -72,6 +72,7 @@ module.exports = {
PRODUCTION: !!process.env.PRODUCTION,
BACKEND_URL: (process.env.BACKEND_URL && JSON.stringify(process.env.BACKEND_URL)) || 'null',
DATASET_PREVIEW_URL: JSON.stringify(process.env.DATASET_PREVIEW_URL || 'https://hbp-kg-dataset-previewer.apps.hbp.eu/datasetPreview'),
SPATIAL_TRANSFORM_BACKEND: JSON.stringify(process.env.SPATIAL_TRANSFORM_BACKEND || 'https://hbp-spatial-backend.apps.hbp.eu'),
MATOMO_URL: JSON.stringify(process.env.MATOMO_URL || null),
MATOMO_ID: JSON.stringify(process.env.MATOMO_ID || null),
USE_LOGO: JSON.stringify(process.env.USE_LOGO || 'hbp' || 'ebrains' || 'fzj'),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment