Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(old-age-pension): Add e2e tests #16369

Closed
wants to merge 214 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
0c7189c
feat/wip old age pension
karenbjorg Apr 28, 2023
7bc4bbd
Feat/old age pension periods (#11410)
qdd1 Jun 9, 2023
2717c29
add validators for periods (#11417)
qdd1 Jun 9, 2023
73b2457
add old age pension to codeowners
karenbjorg Jun 13, 2023
e97ce4e
fix codeowners
karenbjorg Jun 13, 2023
2229623
wip residence history + wip confirm screen + one payment per year
karenbjorg Jun 13, 2023
d4ac229
added fisherman and additional files screen (#11443)
qdd1 Jun 13, 2023
a8ae493
Merge remote-tracking branch 'origin/main' into feat/old-age-pension
karenbjorg Jun 14, 2023
c1e1de2
fix(old-age-pension): unitest and format (#11476)
qdd1 Jun 14, 2023
3f370d0
added comment page
qdd1 Jun 14, 2023
ca8a0d4
feat(old-age-pension): Add comment and files to Review screen (#11507)
qdd1 Jun 16, 2023
bbc14a2
residence history
karenbjorg Jun 16, 2023
c4a166a
added connected applications screen (#11508)
qdd1 Jun 16, 2023
37df539
format
karenbjorg Jun 16, 2023
c3990e6
clean in messages file (#11518)
karenbjorg Jun 16, 2023
71ca8f2
feat(old-age-pension): added homeAllowence (#11547)
qdd1 Jun 21, 2023
27024f9
Fix/old age pension review page fishermen period attachments (#11570)
qdd1 Jun 22, 2023
446d1d3
fix(old-age-pension): add applicationType and move fishermen option t…
qdd1 Jun 22, 2023
fdef7a4
fix(old-age-pension): early retirement (#11580)
qdd1 Jun 23, 2023
b2a26e1
call child custody from national registry
karenbjorg Jun 21, 2023
21b5487
clean..
karenbjorg Jun 23, 2023
5b7550c
wip child support + clean in message
karenbjorg Jun 26, 2023
0d8c168
add text to message
karenbjorg Jun 26, 2023
4f1523c
fix(old-age-pension): correct error message for cohabitants
qdd1 Jun 26, 2023
32f66b5
Merge branch 'feat/old-age-pension' of https://github.com/island-is/i…
qdd1 Jun 26, 2023
ff466e4
Update libs/service-portal/information/src/lib/messages.ts
qdd1 Jun 26, 2023
c835b81
Merge branch 'main' into feat/old-age-pension
qdd1 Jun 26, 2023
305e21d
chore: nx format:write update dirty files
github-actions[bot] Jun 26, 2023
d10dcc1
Merge branch 'main' into feat/old-age-pension
qdd1 Jun 26, 2023
1b447ae
update message
karenbjorg Jun 26, 2023
e387ef0
fix(old-age-pension): Period warning msg and cohabitants request
qdd1 Jun 26, 2023
323c5dc
conflict
qdd1 Jun 26, 2023
188119d
Merge branch 'main' into feat/old-age-pension
qdd1 Jun 26, 2023
4358b52
[TS-26] Residence history - screen
veronikasif Jul 4, 2023
772ae6a
wip child support
karenbjorg Jul 4, 2023
0f2e8a1
format
karenbjorg Jul 4, 2023
1cd4c20
[TS-67] Formatted marital status
veronikasif Jul 4, 2023
efae330
Merge branch 'feat/old-age-pension' of https://github.com/island-is/i…
veronikasif Jul 4, 2023
e6614a7
set up contentful
karenbjorg Jul 5, 2023
5d70162
[TS-71] Prevent applicant to send application if period is more than …
veronikasif Jul 5, 2023
1ba7a6b
Merge branch 'feat/old-age-pension' of https://github.com/island-is/i…
veronikasif Jul 5, 2023
ff40a56
Fixed period
veronikasif Jul 5, 2023
cba68d0
Fixed application type label
veronikasif Jul 6, 2023
bd8810e
Feat/old age pension half pension (#11699)
qdd1 Jul 7, 2023
d51478c
fix(old-age-pension): add applicationType
qdd1 Jul 7, 2023
58f7393
[TS-77] clean up in external data and add for information page before…
karenbjorg Jul 10, 2023
0fb4db9
format
karenbjorg Jul 10, 2023
8fe1b00
fix spelling error
karenbjorg Jul 10, 2023
6292a4f
misc fixes
karenbjorg Jul 10, 2023
7b7044c
feat(old-age-pension): added scratch payment page (#11712)
qdd1 Jul 10, 2023
43540b7
home allowance to household supplement
karenbjorg Jul 10, 2023
4239cce
fix message file for contentful
karenbjorg Jul 10, 2023
09e7917
[TS-79 | 81 | 83] minor fixes for employer
karenbjorg Jul 11, 2023
90a5e9b
[TS-89 | 90 | 91]: add missing things in review screen
karenbjorg Jul 11, 2023
b55d0d4
[TS-80]: fix so months can be translated
karenbjorg Jul 11, 2023
d9fe88b
fix(old-age-pension): employers and personal allowance (#11722)
qdd1 Jul 11, 2023
cac243c
[TS-88]: translate period in review page
karenbjorg Jul 12, 2023
dfbe8aa
[TS-84]: show month in period
karenbjorg Jul 13, 2023
8b32140
Changed PDF display in review screen
veronikasif Jul 13, 2023
56ccbdb
Merge branch 'feat/old-age-pension' of https://github.com/island-is/i…
veronikasif Jul 13, 2023
f15b8a7
feat(old-age-pension): Added new action card functionality (#11742)
veronikasif Jul 14, 2023
1b901a7
[TS-105] add unit tests + fix lint warnings
karenbjorg Jul 17, 2023
e831c71
Fixed comment in Review screen
veronikasif Jul 18, 2023
924254d
[TS-112]: readme + flow chart
karenbjorg Jul 18, 2023
25200c8
[TS-111] Fix lint errors and warnings
veronikasif Jul 18, 2023
338bee0
Merge branch 'feat/old-age-pension' of https://github.com/island-is/i…
veronikasif Jul 18, 2023
099a09f
changes to readme
karenbjorg Jul 19, 2023
eb1d2b4
[TS-111]: fix residence history table
karenbjorg Jul 21, 2023
33161e2
[TS-58] Changing phone number on confirm page
veronikasif Jul 21, 2023
118ec5a
Merge branch 'feat/old-age-pension' of https://github.com/island-is/i…
veronikasif Jul 21, 2023
99b4504
Fix/old age pension alert message (#11766)
qdd1 Jul 21, 2023
fe2e406
[TS-111] fix lint errors
karenbjorg Jul 21, 2023
8d8cfe7
[TS-140] Old age pension - Fix divider in Review page
veronikasif Jul 24, 2023
0b3dd4a
Merge branch 'feat/old-age-pension' of https://github.com/island-is/i…
veronikasif Jul 24, 2023
830c4a5
Fix/old age pension employers validator (#11771)
qdd1 Jul 25, 2023
0872f22
[TS-144] Only display spouse allowance question in payment page if ha…
veronikasif Jul 25, 2023
ed3dc8b
Merge branch 'feat/old-age-pension' of https://github.com/island-is/i…
veronikasif Jul 25, 2023
712a446
[TS-106] Old age pension e2e test
veronikasif Jul 28, 2023
a21ca17
Changed id name in InReview form from parental leave to old age pension
veronikasif Aug 2, 2023
902f5d9
[TS-149] Format spouse national id in applicant info page
veronikasif Aug 2, 2023
1e971ca
Fixed margin between items on Review page
veronikasif Aug 3, 2023
79bada2
[TS-145] Add print button to Review page
veronikasif Aug 3, 2023
4890238
[TS-150] Bankanúmer birtast ekki á Review síðu
veronikasif Aug 3, 2023
1a1dc43
[TS-153] Payment page issue
veronikasif Aug 3, 2023
4e51bac
[TS-144] Only display spouse allowance question in payment page if ha…
veronikasif Aug 3, 2023
0b0fc2c
fix typo
qdd1 Aug 3, 2023
094f281
Fixed employers ratio monthly
veronikasif Aug 14, 2023
0c1b2d9
Added margin to Attachments in Review
veronikasif Aug 16, 2023
e63a573
merge main
qdd1 Aug 17, 2023
c6bd2de
[TS-159] Fix register employer total ratio field
veronikasif Aug 23, 2023
4f16436
[TS-160] Fix error when change between monthly and yearly ratio when …
veronikasif Aug 23, 2023
29c668d
feat(old-age-pension): getting connect to TR X-road endpoint (#11948)
qdd1 Aug 25, 2023
ef2de2b
merge main
qdd1 Aug 29, 2023
d2f108f
chore: nx format:write update dirty files
github-actions[bot] Aug 29, 2023
cb8488d
Merge branch 'main' into feat/old-age-pension
karenbjorg Aug 31, 2023
06be464
feat(old-age-pension): Update register child page in old age pension …
veronikasif Aug 31, 2023
b1155ed
chore: nx format:write update dirty files
github-actions[bot] Aug 31, 2023
8f97afb
Feat/old age pension gagnagatt (#12054)
qdd1 Sep 6, 2023
3fe09fe
Feat/old age pension ts 152 (#12059)
birkirkristmunds Sep 6, 2023
e7d6c9d
chore: nx format:write update dirty files
github-actions[bot] Sep 6, 2023
3d4ec1e
fix(old-age-pension): Add event between submitted to inReview (#12063)
qdd1 Sep 6, 2023
93ffbf1
Fix/old age pension period show errors (#12069)
qdd1 Sep 6, 2023
c02884d
chore: nx format:write update dirty files
github-actions[bot] Sep 6, 2023
fa0d561
Feat/old age pension add feature flag (#12088)
qdd1 Sep 8, 2023
b1cfa63
TS-173 list up custody kids in checkboxes + more
karenbjorg Sep 10, 2023
9b72f29
TS-192 if no children in custody is selected, register a child
karenbjorg Sep 11, 2023
4766e38
lint & format
karenbjorg Sep 11, 2023
e315769
fix(old-age-pension): final version for external page (#12136)
qdd1 Sep 15, 2023
fc6e9c8
nx upgrade
karenbjorg Sep 15, 2023
92e32a5
nx upgrade
karenbjorg Sep 15, 2023
ef850e3
add markdown to massage
karenbjorg Sep 19, 2023
6c44e60
fix link in messages
karenbjorg Sep 19, 2023
3f19481
clean messages
karenbjorg Sep 19, 2023
b0cb4de
Merge branch 'main' into feat/old-age-pension
birkirkristmunds Sep 20, 2023
e76ebcb
TS-170 - Implement AlertmessageField (#12185)
birkirkristmunds Sep 21, 2023
f02e54d
Merge branch 'main' into feat/old-age-pension
birkirkristmunds Sep 28, 2023
119c6b9
feat(old-age-pension): Align our states with TR's (#12270)
veronikasif Sep 29, 2023
4e7d20b
update unit test after aligning states with TR
ylfahfa Oct 2, 2023
ce1e48e
Merge branch 'main' into feat/old-age-pension
birkirkristmunds Oct 9, 2023
7294e95
chore: nx format:write update dirty files
andes-it Oct 9, 2023
b902f43
call bank info api
karenbjorg Oct 11, 2023
907ecd1
TS-207 call bank info api from TR
karenbjorg Oct 16, 2023
584a410
TS-207 fix and format
karenbjorg Oct 16, 2023
d580947
TS-211 rename for clarity
ylfahfa Oct 16, 2023
07fff7d
merge before push
ylfahfa Oct 16, 2023
2bdffcf
chore: nx format:write update dirty files
andes-it Oct 16, 2023
68d7586
more name changes for readability
ylfahfa Oct 17, 2023
8a9dc04
merge before push
ylfahfa Oct 17, 2023
e493a3c
chore: nx format:write update dirty files
andes-it Oct 17, 2023
b8569c3
remove tax level radio button options on payment page
ylfahfa Oct 17, 2023
7e66d83
merge before push
ylfahfa Oct 17, 2023
ad1333d
chore: nx format:write update dirty files
andes-it Oct 17, 2023
9038bb6
make default value 100% for personal allowance
ylfahfa Oct 17, 2023
330a79e
merge before push
ylfahfa Oct 17, 2023
920836e
refactor
karenbjorg Oct 17, 2023
fed2a63
format
karenbjorg Oct 17, 2023
b54199c
feat(old age pension): Send application (#12355)
birkirkristmunds Oct 18, 2023
2aeba09
add validation for period to confirm child is under 18
ylfahfa Oct 20, 2023
431b180
format
ylfahfa Oct 20, 2023
b4268cb
Merge before push
ylfahfa Oct 20, 2023
bd3d341
TS-219 wip spouse in nursing home
karenbjorg Oct 20, 2023
ca00caf
format
karenbjorg Oct 23, 2023
77d1e4d
Feat(old age pension): send application fix (#12478)
birkirkristmunds Oct 26, 2023
06b37cd
TS-228 add tax level in bank information page
ylfahfa Oct 27, 2023
7b52a14
change taxLevel to number and bank to string
ylfahfa Oct 30, 2023
dc05b28
TS-231 Change text household supplement
ylfahfa Oct 30, 2023
e705651
TS-222 Throw out test and status endpoints
ylfahfa Oct 31, 2023
7895143
TS-234 Fix personalAllowanceUsage = null error
ylfahfa Oct 31, 2023
fe85b71
ts-223
karenbjorg Oct 31, 2023
3f79e7e
TS-232 and TS-235 fix space in period screen and make space after res…
ylfahfa Nov 1, 2023
44e276c
make alert title more consistent
ylfahfa Nov 2, 2023
55c8188
more alert message changes
ylfahfa Nov 3, 2023
520fdcd
TS-238 Change text on pension page
ylfahfa Nov 6, 2023
b4fc99a
revert residence history default value as yes
karenbjorg Nov 6, 2023
023f00e
merge with main
karenbjorg Nov 6, 2023
64cc46c
format
karenbjorg Nov 6, 2023
0d05533
[TS-239]: Update additional documents flow
ylfahfa Nov 8, 2023
4a57b06
feat(old-age-pension): Check if applicant is eligible (#12558)
veronikasif Nov 10, 2023
0cbff51
remove bank info api and spouse in nursing home + calling applicant api
karenbjorg Nov 9, 2023
1b447f6
format
karenbjorg Nov 9, 2023
0a03e95
[TS-239]: Remove unused file for filesInfoScreen
ylfahfa Nov 10, 2023
7a0b472
commit to merge with changes from Karen
ylfahfa Nov 10, 2023
4307adc
ts-299 phonenumber is not required but validate if filled in
karenbjorg Nov 10, 2023
fb0d403
Fix Eligible endpoint when running locally
veronikasif Nov 13, 2023
ebf84a2
remove connected applications code + validation
karenbjorg Nov 13, 2023
062bb82
remove unit tests, text and api calls for connected applications + ad…
karenbjorg Nov 13, 2023
ccdb957
[TS-194] Save the application on TR servers (#12738)
veronikasif Nov 14, 2023
b11d504
[TS-263]: Fix progress bar and move one payment per year page
ylfahfa Nov 16, 2023
b8aa5a8
feat(old-age-pension): Make sure additionalDocumentsRequired don't ge…
ylfahfa Nov 16, 2023
cce21f2
[TS-201]: Clean up
ylfahfa Nov 16, 2023
37dea6c
230 - icelandic and foreign bank, call currencies API, only send bank…
karenbjorg Nov 16, 2023
ea8c30b
[TS-263]: Update formstepper in prerequisites to same as oap form
ylfahfa Nov 17, 2023
9e9e320
Merge with previous changes
ylfahfa Nov 17, 2023
54ab3df
ts-265 update send application api
karenbjorg Nov 20, 2023
1a965a2
TS-230 remove unset bankaccount when switching between icelandic and …
karenbjorg Nov 21, 2023
3f027b5
remove unused states
karenbjorg Nov 21, 2023
9ebb23b
feat(old-age-pension): Add dismiss button when editing (#12786)
veronikasif Nov 21, 2023
1b31ac7
clean up
karenbjorg Nov 22, 2023
2b4ae89
update flow chart and lifecycles
karenbjorg Nov 22, 2023
b72c3c7
remove console.log
karenbjorg Nov 22, 2023
1e52418
[TS-263]: Fix and add unit tests
ylfahfa Nov 22, 2023
249d50b
merge main
karenbjorg Nov 23, 2023
e97ece9
chore: nx format:write update dirty files
andes-it Nov 23, 2023
1ec0fcf
hide hald old age pension, call clearBankAccountInfo when exiting dra…
karenbjorg Nov 23, 2023
c4dd718
remove spouse allowance
karenbjorg Nov 24, 2023
49fe111
merge main
karenbjorg Nov 24, 2023
9687c5d
isEmpty check
karenbjorg Nov 24, 2023
1a435e4
Merge branch 'main' into feat/old-age-pension
karenbjorg Nov 24, 2023
5afffc2
update CODEOWNERS
karenbjorg Nov 24, 2023
f3d00da
feat(old-age-pension): Rename TR service, added core folder for share…
veronikasif Nov 24, 2023
683e7b7
chore: nx format:write update dirty files
andes-it Nov 24, 2023
4b16d14
Fixed service name
veronikasif Nov 24, 2023
207e129
Merge branch 'feat/old-age-pension' of https://github.com/island-is/i…
veronikasif Nov 24, 2023
59a1f30
Fixed failing test
veronikasif Nov 27, 2023
46b57e3
Fix merge conflict
veronikasif Nov 27, 2023
89ef6ee
Updated e2e tests for old-age pension application
veronikasif Nov 27, 2023
19f1ae4
Merge branch 'main' into feat/old-age-pension-e2e
veronikasif Dec 11, 2023
1cd1809
Merge branch 'main' into feat/old-age-pension-e2e
veronikasif Dec 12, 2023
328fcf7
Merge branch 'main' into feat/old-age-pension-e2e
veronikasif Dec 18, 2023
a13a5ab
Merge branch 'main' into feat/old-age-pension-e2e
veronikasif Jan 4, 2024
b0fc10f
Update e2e tests to use sia core messages
veronikasif Jan 5, 2024
6116d86
Merge branch 'main' into feat/old-age-pension-e2e
veronikasif Jan 5, 2024
feafd59
Merge branch 'main' into feat/old-age-pension-e2e
veronikasif Jan 8, 2024
844dfa5
Merge branch 'main' into feat/old-age-pension-e2e
veronikasif Jan 23, 2024
e10b88a
Merge branch 'main' into feat/old-age-pension-e2e
veronikasif Jan 23, 2024
d5da93c
Update parental-leave e2e tests
veronikasif Apr 19, 2024
ac271cd
Merge branch 'feat/parental-leave-update-e2e' into feat/old-age-pensi…
veronikasif Apr 22, 2024
c7b7cb6
Update parental-leave e2e tests - use mock data
veronikasif Apr 22, 2024
067ad43
Merge branch 'feat/parental-leave-update-e2e' into feat/old-age-pensi…
veronikasif Apr 22, 2024
4ebfaf6
Merge branch 'main' into feat/old-age-pension-e2e
veronikasif Oct 11, 2024
c243a39
Remove unused files after merge conflict
veronikasif Oct 11, 2024
6910d28
Undo changes to parental-leave e2e
veronikasif Oct 11, 2024
b10d101
[TS-106] e2e tests (Old-age-pension)
veronikasif Oct 11, 2024
2bfdec6
Moved National Registry mocks to separate file
veronikasif Oct 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
import { Response } from '@anev/ts-mountebank'
import { NationalRegistry } from '../../../../../../../../infra/src/dsl/xroad'
import { addXroadMock } from '../../../../../support/wire-mocks'

export const loadNationalRegistryXroadMocks = async () => {
/* Gervimaður Afríka */
await addXroadMock({
config: NationalRegistry,
prefix: 'XROAD_NATIONAL_REGISTRY_SERVICE_PATH',
apiPath: '/api/v1/einstaklingar/0101303019',
prefixType: 'only-base-path',
response: new Response().withJSONBody({
kennitala: '0101303019',
nafn: 'Gervimaður Afríka',
eiginnafn: 'Gervimaður',
millinafn: null,
kenninafn: 'Afríka',
fulltNafn: 'Gervimaður Afríka',
kynkodi: '1',
bannmerking: false,
faedingardagur: new Date('1930-01-01T00:00:00'),
logheimili: {
heiti: 'Engihjalli 3',
postnumer: '200',
stadur: 'Kópavogur',
sveitarfelagsnumer: '1000',
},
adsetur: {
heiti: 'Fellsmúli 2',
postnumer: '108',
stadur: 'Reykjavík',
sveitarfelagsnumer: '0000',
},
}),
})
await addXroadMock({
config: NationalRegistry,
prefix: 'XROAD_NATIONAL_REGISTRY_SERVICE_PATH',
apiPath: '/api/v1/einstaklingar/0101303019/hjuskapur',
prefixType: 'only-base-path',
response: new Response().withJSONBody({
kennitalaMaka: '0101307789',
nafnMaka: 'Gervimaður útlönd',
hjuskaparkodi: '1',
breytt: '2021-05-26T22:23:40.513',
}),
})
await addXroadMock({
config: NationalRegistry,
prefix: 'XROAD_NATIONAL_REGISTRY_SERVICE_PATH',
apiPath: '/api/v1/einstaklingar/0101303019/rikisfang',
prefixType: 'only-base-path',
response: new Response().withJSONBody({
kodi: 'IS',
land: 'Ísland',
}),
})
await addXroadMock({
config: NationalRegistry,
prefix: 'XROAD_NATIONAL_REGISTRY_SERVICE_PATH',
apiPath: '/api/v1/einstaklingar/0101303019/buseta',
prefixType: 'only-base-path',
response: new Response().withJSONBody([
{
huskodi: '000031440040',
fasteignanumer: '',
heimilisfang: 'Gullengi 4',
postnumer: '112',
stadur: 'Reykjavík',
sveitarfelagsnumer: '0000',
landakodi: 'IS',
breytt: '2022-07-04T00:00:00',
},
{
huskodi: '99XT00000000',
fasteignanumer: '',
heimilisfang: 'Afríka ótilgreint',
postnumer: null,
stadur: 'Afríka ótilgreint',
sveitarfelagsnumer: null,
landakodi: 'XT',
breytt: '1992-11-16T00:00:00',
},
]),
})

/* Gervimaður útlönd */
await addXroadMock({
config: NationalRegistry,
prefix: 'XROAD_NATIONAL_REGISTRY_SERVICE_PATH',
apiPath: '/api/v1/einstaklingar/0101307789',
prefixType: 'only-base-path',
response: new Response().withJSONBody({
kennitala: '0101307789',
nafn: 'Gervimaður útlönd',
eiginnafn: 'Gervimaður',
millinafn: null,
kenninafn: 'útlönd',
fulltNafn: 'Gervimaður útlönd',
kynkodi: '1',
bannmerking: false,
faedingardagur: new Date('1930-01-01T00:00:00'),
logheimili: {
heiti: 'Engihjalli 3',
postnumer: '200',
stadur: 'Kópavogur',
sveitarfelagsnumer: '1000',
},
adsetur: {
heiti: 'Fellsmúli 2',
postnumer: '108',
stadur: 'Reykjavík',
sveitarfelagsnumer: '0000',
},
}),
})
await addXroadMock({
config: NationalRegistry,
prefix: 'XROAD_NATIONAL_REGISTRY_SERVICE_PATH',
apiPath: '/api/v1/einstaklingar/0101307789/hjuskapur',
prefixType: 'only-base-path',
response: new Response().withJSONBody({
kennitalaMaka: '0101303019',
nafnMaka: 'Gervimaður Afríka',
hjuskaparkodi: '1',
breytt: '2021-05-26T22:23:40.513',
}),
})
await addXroadMock({
config: NationalRegistry,
prefix: 'XROAD_NATIONAL_REGISTRY_SERVICE_PATH',
apiPath: '/api/v1/einstaklingar/0101307789/rikisfang',
prefixType: 'only-base-path',
response: new Response().withJSONBody({
kodi: 'IS',
land: 'Ísland',
}),
})
await addXroadMock({
config: NationalRegistry,
prefix: 'XROAD_NATIONAL_REGISTRY_SERVICE_PATH',
apiPath: '/api/v1/einstaklingar/0101307789/faedingarstadur',
prefixType: 'only-base-path',
response: new Response().withJSONBody({
sveitarfelagsnumer: '0000',
stadur: 'Reykjavík',
faedingardagur: '1930-01-01T00:00:00',
}),
})

/* Lyklar */
await addXroadMock({
config: NationalRegistry,
prefix: 'XROAD_NATIONAL_REGISTRY_SERVICE_PATH',
apiPath: '/api/v1/lyklar/hjuskaparkodar/1/1',
prefixType: 'only-base-path',
response: new Response().withJSONBody({
kodi: '1',
lysing: 'Ógiftur',
}),
})
}
Loading