X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Finterceptor.mock.ts;h=e444d91aca42cef1a10094e45c441ab6765d2c91;hb=e409ac955e6f0654f1721c69e1885bda23e1cf99;hp=89034a8a5215a671a41bf5cafe8daf21ff16cb08;hpb=3b19af38b08cd6838cf58fbc03064e4a6fc091eb;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/src/app/interceptor.mock.ts b/webapp-frontend/src/app/interceptor.mock.ts index 89034a8..e444d91 100644 --- a/webapp-frontend/src/app/interceptor.mock.ts +++ b/webapp-frontend/src/app/interceptor.mock.ts @@ -22,41 +22,54 @@ import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse } fr import { Injectable, Injector } from '@angular/core'; import { Observable, of } from 'rxjs'; import * as policyinstances1 from './mock/policy-instance-1.json'; -import * as policyinstances2 from './mock/policy-instance-2.json'; +import * as policyinstancesNoType from './mock/policy-instance-notype.json'; import * as eijobs from './mock/ei-jobs.json'; import * as eiproducers from './mock/ei-producers.json'; import * as nopolicyinstances from './mock/nopolicyinstances.json'; -import * as policytypes from './mock/policytypes.json'; +import * as policytypesList from './mock/policy-types.json'; +import * as policytypes1 from './mock/policy-type1.json'; import * as policyinstanceedit from './mock/policy-instance-edit.json'; import * as rics from './mock/rics.json'; const urls = [ { - url: 'api/policy/policytypes', - json: policytypes + url: 'v2/policy-types', + json: policytypesList }, { - url: 'api/policy/policies?type=1', + url: 'v2/policy-types/', + json: policytypes1 + }, + { + url: 'v2/policy-types/1', + json: policytypes1 + }, + { + url: 'v2/policies?type=1', json: policyinstances1 }, { - url: 'api/policy/policies?type=2', - json: policyinstances2 + url: 'v2/policies?type=', + json: policyinstancesNoType }, { - url: 'api/policy/policies?type=2', + url: 'v2/policies?type=2', json: nopolicyinstances }, { - url: 'api/policy/policies/2000?type=1', + url: 'v2/policies/2000?type=1', + json: policyinstanceedit + }, + { + url: 'v2/policies/3000?type=1', json: policyinstanceedit }, { - url: 'api/policy/policies/2001?type=2', + url: 'v2/policies/2001?type=', json: policyinstanceedit }, { - url: 'api/policy/policies/2000?ric=ric1&type=1', + url: 'v2/policies/2000?ric=ric1&type=1', json: '' }, {