-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1204 - Request folders split into: -- local (git ignored -- shared (prev: Manual Test Collection) -- test (prev: Autmatic Test Collection) - Removed whitespaces and øæå from path and request filenames - Added support for PlatformToken and PlatformAccessToken to token generator - Added testdata scenario folder support
- Loading branch information
Jon Kjetil Øye
committed
Nov 15, 2024
1 parent
e896925
commit f9e4fe3
Showing
43 changed files
with
846 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Bruno | ||
.env | ||
local |
73 changes: 0 additions & 73 deletions
73
.../Manual Test Collection/AccessList Authorization/Ørsta for devtest_gar_rrr_accesslist.bru
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 0 additions & 43 deletions
43
test/Bruno/Altinn.Authorization/Testdata/Authorization/at21testdata.json
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
test/Bruno/Altinn.Authorization/Testdata/Authorization/at23testdata.json
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
test/Bruno/Altinn.Authorization/Testdata/Authorization/at24testdata.json
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
test/Bruno/Altinn.Authorization/Testdata/Authorization/sharedtestdata.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
test/Bruno/Altinn.Authorization/shared/AccessListAuthorize/devtest_gar_rrr_accesslist.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
meta { | ||
name: devtest_gar_rrr_accesslist | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
post { | ||
url: {{baseUrl}}/authorization/api/v1/accesslist/accessmanagement/authorization | ||
body: json | ||
auth: inherit | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
Ocp-Apim-Subscription-Key: {{apimSubscriptionKey}} | ||
} | ||
|
||
body:json { | ||
{ | ||
"subject": { | ||
"type": "urn:altinn:organization:identifier-no", | ||
"value": "910459880" | ||
}, | ||
"resource": { | ||
"type": "urn:altinn:resource", | ||
"value": "devtest_gar_rrr_accesslist" | ||
}, | ||
"action": { | ||
"type": "urn:oasis:names:tc:xacml:1.0:action:action-id", | ||
"value": "whatever" | ||
} | ||
} | ||
} | ||
|
||
script:pre-request { | ||
const sharedtestdata = require(`./Testdata/shared.json`); | ||
|
||
var getTokenParameters = { | ||
auth_tokenType: sharedtestdata.authTokenType.enterprise, | ||
auth_scopes: sharedtestdata.auth_scopes.authorize, | ||
auth_org: sharedtestdata.serviceOwners.ttd.org, | ||
auth_orgNo: sharedtestdata.serviceOwners.ttd.orgno, | ||
} | ||
|
||
const token = await testTokenGenerator.getToken(getTokenParameters); | ||
bru.setVar("bearerToken", token); | ||
} |
Oops, something went wrong.