This test issue is created to test the whole functionality of enkeltrettighetersdelegering which is implemented in A3 when we are going live in TT02. All test scenarios which we are going to test are listed here including steps which can be followed to verify differednt test scenarios.
Manual verification of end-to-end tests
DAGL/HADM delegable (without having the actual resource access themselves) : On behalf of Org
[x] Verify when user A who has HADM role for org delegates resources/Altinn 3 app/Altinn 2 services to SSN :
Login with User A : 30867795770 (Who has DAGL/ HADM role on Org :310005223 RETT USELVISK TIGER AS) and choose org as reportee and tries to delegate resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization tests to User B : 16926896931 : INNESLUTTET PLATE.
Verify under "Andre med rettigheter" if coveredby user B has got rights from offeredby org
After verifying instatiation navigate to profile page and click on "Skjema og tjenester du har rettigheter til" and try to delete rights which User B : 16926896931 : INNESLUTTET PLATE has got from Org :310005223 RETT USELVISK TIGER AS. Coveredby User should be able to delete self rights under "Skjema og tjenester du har rettigheter til"
[ ] Verify when user A who has HADM role for org delegates resources/Altinn 3 app/Altinn 2 services to Org :
Login with User A : 30867795770 (Who has DAGL/ HADM role on Org: Org :310005223 RETT USELVISK TIGER AS) and choose org as reportee and tries to delegate resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization teststo Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS who has DAGL : 20860898609
Verify under "Andre med rettigheter" if coveredby Org B has got rights from offeredby org by clicking on user B
After verifying instatiation navigate to profile page and click on "Skjema og tjenester du har rettigheter til" and try to delete rights which Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS) has got from Org :310005223 RETT USELVISK TIGER AS. Coveredby Org should be able to delete self rights under "Skjema og tjenester du har rettigheter til"
Now choose Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS) as reportee and navigate to profile page and verify Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS) should be able to see and delete rights under "Rettigheter du har hos andre" which he got from Org :310005223 RETT USELVISK TIGER AS
Negative scenario :
[ ] Verify when user A who has HADM role for org delegates Resource of type MaskinPorten schema from an Organization to a person
Login with User A : 30867795770 (Who has DAGL/ HADM role on Org: Org :310005223 RETT USELVISK TIGER AS) and choose org as reportee and tries to delegate Resource of type MaskinPorten schema to User B : 16926896931 : INNESLUTTET PLATE.
User should not be able to delegate Maskinporten Schema - AM - K6.
Delegation access scenario 2 (ADMAI + Role access), delegation of a resource from Organization to a Person
[ ] Verify userA who is DAGL and has access to resource, delegates ADMAI + SISKD for delegating resources to user B
Login with User A who is DAGL : 30867795770 for Org :310005223 RETT USELVISK TIGER AS and choose org as reportee who delegates ADMAI and SISKD role to user B : 16926896931 : INNESLUTTET PLATE by navigating to profile page. Now login with user B and delegate resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization tests to User Z : 04880748144 (UTSTRAKT KLIPPFISK)
-Now login with User Z and choose Org :310005223 RETT USELVISK TIGER AS as reportee and verify USer Z is able to instantiate altinn 3 app (https://ttd.apps.tt02.altinn.no/ttd/am-automation-test-generic-app) and Altinn 2 service (https://tt02.altinn.no/Pages/ServiceEngine/Start/StartService.aspx?ServiceEditionCode=1111&ServiceCode=5995)
After verifying instatiation navigate to profile page and click on "Skjema og tjenester du har rettigheter til" and try to delete rights which User B : 16926896931 : INNESLUTTET PLATE has got from Org :310005223 RETT USELVISK TIGER AS. Coveredby User should be able to delete self rights under "Skjema og tjenester du har rettigheter til"
[ ] Verify MainunitX delegates ADMAI and SISKD role to Org B, Org B can represent subUnitY(which is sub unit of X) and delegate Resources to Org B, Org B then logs in represent subUnitY to inst service
Login with DAGL of main unit : 05826995191 (MOTVILLIG HARPUN) Main unit X : 313776549 (PRESIS DJERV TIGER AS and chooser Main unit as reportee who delegates ADMAI and SISKD role(Tilgangstyrring role and begrenset signeringsrettighet ) to user A : 11868898854 (ROMANTISK ESKE)
Now login with user A and can represent subunit X (which is a subunit of Main unit X : 313776549 (PRESIS DJERV TIGER AS)) and delegates resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization tests to user B : 16926896931 (INNESLUTTET PLATE)
After verifying instatiation navigate to profile page and click on "Skjema og tjenester du har rettigheter til" and try to delete rights which User B : 16926896931 : INNESLUTTET PLATE has got from subunit X (which is a subunit of Main unit X : 313776549 (PRESIS DJERV TIGER AS)). Coveredby User should be able to delete self rights under "Skjema og tjenester du har rettigheter til"
[ ] Verify userA who is DAGL for mainUnitX delegates ADMAI and role to orgY. DAGL for orgY can delegate Resources to Org B
Login with User A : 05826995191( MOTVILLIG HARPUN) who is DAGL of main unit X : 313776549 (PRESIS DJERV TIGER AS) delegates ADMAI and SISKD role to org Y : 310203181 (TROSSIG FULLKOMMEN TIGER AS who has DAGL : 27858198661 : REFLEKTERENDE ASPARGES)by choosing Main unit : 313776549 (PRESIS DJERV TIGER AS) as reportee.
Now login with DAGL (27858198661 : REFLEKTERENDE ASPARGES ) of org Y : 310203181 (TROSSIG FULLKOMMEN TIGER AS) who
delegates resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization tests to Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS who has DAGL : 20860898609) by choosing main unit as reportee.
Now choose Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS) as reportee and navigate to profile page and verify Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS) should be able to see and delete rights under "Rettigheter du har hos andre" which he got from org Y : 310203181 (TROSSIG FULLKOMMEN TIGER AS)
3. Delegation access scenario 3 (ADMAI + single rights access), delegation of a resource
[ ] Verify userA who is DAGL for mainUnitX delegates ADMAI and resources to orgY. DAGL for orgY logged in and represent subunit X which is subunit of main unit X can delegate resources to user Z
Login with User A : 05826995191( MOTVILLIG HARPUN) who is DAGL of main unit X : 313776549 (PRESIS DJERV TIGER AS) delegates ADMAI and resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization to org Y : 310203181 (TROSSIG FULLKOMMEN TIGER AS who has DAGL : 27858198661 : REFLEKTERENDE ASPARGES).
Verify under "Andre med Rettigheter" for Org Y if rights which Org Y has got are listed
Verify coveredby subunit is able to delete rights which he got under "Skjema og tjenester du har rettigjeter til"
[ ] Verify userA who is DAGL for mainUnitX delegates ADMAI and rights to orgY. DAGL for orgY can delegate Resources to Org B
Login with User A : 05826995191( MOTVILLIG HARPUN) who is DAGL of main unit X : 313776549 (PRESIS DJERV TIGER AS) delegates ADMAI and resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization to org Y : 310203181 (TROSSIG FULLKOMMEN TIGER AS who has DAGL : 27858198661 : REFLEKTERENDE ASPARGES).
Now DAGL (27858198661 : REFLEKTERENDE ASPARGES ) of org Y : 310203181 (TROSSIG FULLKOMMEN TIGER AS) can delegates resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization to Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS who has DAGL : 20860898609).
[ ] Verify Delegation access scenario 3 (ADMAI + single rights access), delegation of a resource of type MaskinPorten schema from Org to Org
Login with User A who is DAGL : 30867795770 for Org :310005223
RETT USELVISK TIGER AS delegates ADMAI or APIADM role to Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS who has DAGL : 20860898609)
Now login with DAGL : 20860898609 for Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS) and navigate to profile page and verify if user is able to delegate Maskinporten Schema - AM - K6 to Org Z 311185306 (OPPKLARENDE OMKOMMEN TIGER AS) who has DAGL : TØRR BARISTA : 03835898554
Description
This test issue is created to test the whole functionality of enkeltrettighetersdelegering which is implemented in A3 when we are going live in TT02. All test scenarios which we are going to test are listed here including steps which can be followed to verify differednt test scenarios.
Manual verification of end-to-end tests
[x] Verify when user A who has HADM role for org delegates resources/Altinn 3 app/Altinn 2 services to SSN :
Login with User A : 30867795770 (Who has DAGL/ HADM role on Org :310005223 RETT USELVISK TIGER AS) and choose org as reportee and tries to delegate resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization tests to User B : 16926896931 : INNESLUTTET PLATE.
Verify under "Andre med rettigheter" if coveredby user B has got rights from offeredby org
Now user B tries to login and represent org 310005223 RETT USELVISK TIGER AS and instantiate App (https://ttd.apps.tt02.altinn.no/ttd/am-automation-test-generic-app) on behalf of org and user should be able to instantaite app and services.
After verifying instatiation navigate to profile page and click on "Skjema og tjenester du har rettigheter til" and try to delete rights which User B : 16926896931 : INNESLUTTET PLATE has got from Org :310005223 RETT USELVISK TIGER AS. Coveredby User should be able to delete self rights under "Skjema og tjenester du har rettigheter til"
[ ] Verify when user A who has HADM role for org delegates resources/Altinn 3 app/Altinn 2 services to Org :
Login with User A : 30867795770 (Who has DAGL/ HADM role on Org: Org :310005223 RETT USELVISK TIGER AS) and choose org as reportee and tries to delegate resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization teststo Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS who has DAGL : 20860898609
Verify under "Andre med rettigheter" if coveredby Org B has got rights from offeredby org by clicking on user B
Now Org B tries to login and represent org 310005223 RETT USELVISK TIGER AS and instantiate App (https://ttd.apps.tt02.altinn.no/ttd/am-automation-test-generic-app) on behalf of org and user should be able to instantaite app and services.
After verifying instatiation navigate to profile page and click on "Skjema og tjenester du har rettigheter til" and try to delete rights which Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS) has got from Org :310005223 RETT USELVISK TIGER AS. Coveredby Org should be able to delete self rights under "Skjema og tjenester du har rettigheter til"
Now choose Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS) as reportee and navigate to profile page and verify Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS) should be able to see and delete rights under "Rettigheter du har hos andre" which he got from Org :310005223 RETT USELVISK TIGER AS
Negative scenario :
[ ] Verify when user A who has HADM role for org delegates Resource of type MaskinPorten schema from an Organization to a person
Login with User A : 30867795770 (Who has DAGL/ HADM role on Org: Org :310005223 RETT USELVISK TIGER AS) and choose org as reportee and tries to delegate Resource of type MaskinPorten schema to User B : 16926896931 : INNESLUTTET PLATE.
User should not be able to delegate Maskinporten Schema - AM - K6.
[ ] Verify userA who is DAGL and has access to resource, delegates ADMAI + SISKD for delegating resources to user B
Login with User A who is DAGL : 30867795770 for Org :310005223 RETT USELVISK TIGER AS and choose org as reportee who delegates ADMAI and SISKD role to user B : 16926896931 : INNESLUTTET PLATE by navigating to profile page. Now login with user B and delegate resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization tests to User Z : 04880748144 (UTSTRAKT KLIPPFISK) -Now login with User Z and choose Org :310005223 RETT USELVISK TIGER AS as reportee and verify USer Z is able to instantiate altinn 3 app (https://ttd.apps.tt02.altinn.no/ttd/am-automation-test-generic-app) and Altinn 2 service (https://tt02.altinn.no/Pages/ServiceEngine/Start/StartService.aspx?ServiceEditionCode=1111&ServiceCode=5995)
After verifying instatiation navigate to profile page and click on "Skjema og tjenester du har rettigheter til" and try to delete rights which User B : 16926896931 : INNESLUTTET PLATE has got from Org :310005223 RETT USELVISK TIGER AS. Coveredby User should be able to delete self rights under "Skjema og tjenester du har rettigheter til"
[ ] Verify MainunitX delegates ADMAI and SISKD role to Org B, Org B can represent subUnitY(which is sub unit of X) and delegate Resources to Org B, Org B then logs in represent subUnitY to inst service
Login with DAGL of main unit : 05826995191 (MOTVILLIG HARPUN) Main unit X : 313776549 (PRESIS DJERV TIGER AS and chooser Main unit as reportee who delegates ADMAI and SISKD role(Tilgangstyrring role and begrenset signeringsrettighet ) to user A : 11868898854 (ROMANTISK ESKE)
Now login with user A and can represent subunit X (which is a subunit of Main unit X : 313776549 (PRESIS DJERV TIGER AS)) and delegates resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization tests to user B : 16926896931 (INNESLUTTET PLATE)
Now login with User B and choose subunit X as reportee who tries to instantiate altinn 3 app (https://ttd.apps.tt02.altinn.no/ttd/am-automation-test-generic-app) and Altinn 2 service (https://tt02.altinn.no/Pages/ServiceEngine/Start/StartService.aspx?ServiceEditionCode=1111&ServiceCode=5995)
After verifying instatiation navigate to profile page and click on "Skjema og tjenester du har rettigheter til" and try to delete rights which User B : 16926896931 : INNESLUTTET PLATE has got from subunit X (which is a subunit of Main unit X : 313776549 (PRESIS DJERV TIGER AS)). Coveredby User should be able to delete self rights under "Skjema og tjenester du har rettigheter til"
[ ] Verify userA who is DAGL for mainUnitX delegates ADMAI and role to orgY. DAGL for orgY can delegate Resources to Org B
Login with User A : 05826995191( MOTVILLIG HARPUN) who is DAGL of main unit X : 313776549 (PRESIS DJERV TIGER AS) delegates ADMAI and SISKD role to org Y : 310203181 (TROSSIG FULLKOMMEN TIGER AS who has DAGL : 27858198661 : REFLEKTERENDE ASPARGES)by choosing Main unit : 313776549 (PRESIS DJERV TIGER AS) as reportee.
Now login with DAGL (27858198661 : REFLEKTERENDE ASPARGES ) of org Y : 310203181 (TROSSIG FULLKOMMEN TIGER AS) who delegates resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization tests to Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS who has DAGL : 20860898609) by choosing main unit as reportee.
Now login with DAGL : 20860898609 for 313948579 (UNDERFUNDIG TROFAST TIGER AS) and choose main unit as reportee and instantiate altinn 3 app (https://ttd.apps.tt02.altinn.no/ttd/am-automation-test-generic-app) and Altinn 2 service (https://tt02.altinn.no/Pages/ServiceEngine/Start/StartService.aspx?ServiceEditionCode=1111&ServiceCode=5995). User should be able to instantaite app and services on behalf of main unit.
Now choose Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS) as reportee and navigate to profile page and verify Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS) should be able to see and delete rights under "Rettigheter du har hos andre" which he got from org Y : 310203181 (TROSSIG FULLKOMMEN TIGER AS)
3. Delegation access scenario 3 (ADMAI + single rights access), delegation of a resource
[ ] Verify userA who is DAGL for mainUnitX delegates ADMAI and resources to orgY. DAGL for orgY logged in and represent subunit X which is subunit of main unit X can delegate resources to user Z
Login with User A : 05826995191( MOTVILLIG HARPUN) who is DAGL of main unit X : 313776549 (PRESIS DJERV TIGER AS) delegates ADMAI and resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization to org Y : 310203181 (TROSSIG FULLKOMMEN TIGER AS who has DAGL : 27858198661 : REFLEKTERENDE ASPARGES).
Verify under "Andre med Rettigheter" for Org Y if rights which Org Y has got are listed
Now login with DAGL (27858198661 : REFLEKTERENDE ASPARGES) of org Y (TROSSIG FULLKOMMEN TIGER AS) represents subunit X (314430395 : PRESIS DJERV TIGER AS ) can delegate Ressurs resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization to user Z : 04880748144( UTSTRAKT KLIPPFISK) and User Z is able to instantiate app and services (https://ttd.apps.tt02.altinn.no/ttd/am-automation-test-generic-app) and Altinn 2 service (https://tt02.altinn.no/Pages/ServiceEngine/Start/StartService.aspx?ServiceEditionCode=1111&ServiceCode=5995) on behalf of subunit
Verify coveredby subunit is able to delete rights which he got under "Skjema og tjenester du har rettigjeter til"
[ ] Verify userA who is DAGL for mainUnitX delegates ADMAI and rights to orgY. DAGL for orgY can delegate Resources to Org B
Login with User A : 05826995191( MOTVILLIG HARPUN) who is DAGL of main unit X : 313776549 (PRESIS DJERV TIGER AS) delegates ADMAI and resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization to org Y : 310203181 (TROSSIG FULLKOMMEN TIGER AS who has DAGL : 27858198661 : REFLEKTERENDE ASPARGES).
Now DAGL (27858198661 : REFLEKTERENDE ASPARGES ) of org Y : 310203181 (TROSSIG FULLKOMMEN TIGER AS) can delegates resource_enkeltrettighet, am-automation-test-generic-app and Altinn2 Reporting service for Authorization to Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS who has DAGL : 20860898609).
Now Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS logged in and represents Org y and Instantiate instantiate app and services (https://ttd.apps.tt02.altinn.no/ttd/am-automation-test-generic-app) and Altinn 2 service (https://tt02.altinn.no/Pages/ServiceEngine/Start/StartService.aspx?ServiceEditionCode=1111&ServiceCode=5995)
[ ] Verify Delegation access scenario 3 (ADMAI + single rights access), delegation of a resource of type MaskinPorten schema from Org to Org
Login with User A who is DAGL : 30867795770 for Org :310005223 RETT USELVISK TIGER AS delegates ADMAI or APIADM role to Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS who has DAGL : 20860898609)
Now login with DAGL : 20860898609 for Org B : 313948579 (UNDERFUNDIG TROFAST TIGER AS) and navigate to profile page and verify if user is able to delegate Maskinporten Schema - AM - K6 to Org Z 311185306 (OPPKLARENDE OMKOMMEN TIGER AS) who has DAGL : TØRR BARISTA : 03835898554