Skip to content

Commit f59418d

Browse files
jonkjetiloyeJon Kjetil Øye
andauthored
Moved shared testdata file constant to collection level (#1218)
- Also fixed casing on path which seem to fail on pipelines #1204 Co-authored-by: Jon Kjetil Øye <acn-joye@ai-dev.no>
1 parent d39d050 commit f59418d

39 files changed

+2
-59
lines changed

test/Bruno/Altinn.Authorization/collection.bru

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ auth:bearer {
88

99
script:pre-request {
1010
const testTokenGenerator = require("./TestTokenGenerator.js");
11+
const sharedtestdata = require(`./testdata/shared.json`);
1112
}
1213

1314
script:post-response {

test/Bruno/Altinn.Authorization/environments/DEV.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
vars {
2-
baseUrl: http://localhost:5070
2+
baseUrl: http://localhost:5050
33
tokenEnv: at22
44
tokenBasicAuthUser: {{process.env.TOKEN_BASIC_AUTH_USER}}
55
tokenBasicAuthPw: {{process.env.TOKEN_BASIC_AUTH_PW}}

test/Bruno/Altinn.Authorization/shared/AccessListAuthorize/devtest_gar_rrr_accesslist.bru

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ body:json {
3333
}
3434

3535
script:pre-request {
36-
const sharedtestdata = require(`./Testdata/shared.json`);
37-
3836
var getTokenParameters = {
3937
auth_tokenType: sharedtestdata.authTokenType.enterprise,
4038
auth_scopes: sharedtestdata.auth_scopes.authorize,

test/Bruno/Altinn.Authorization/shared/Authorize/AppInstanceDelegation/OrgAppInstance.bru

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ body:json {
7777
}
7878

7979
script:pre-request {
80-
const sharedtestdata = require(`./Testdata/shared.json`);
81-
8280
var getTokenParameters = {
8381
auth_tokenType: sharedtestdata.authTokenType.enterprise,
8482
auth_scopes: sharedtestdata.auth_scopes.authorize,

test/Bruno/Altinn.Authorization/shared/Authorize/AppInstanceDelegation/PartyAppInstance.bru

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ body:json {
6161
}
6262

6363
script:pre-request {
64-
const sharedtestdata = require(`./Testdata/shared.json`);
65-
6664
var getTokenParameters = {
6765
auth_tokenType: sharedtestdata.authTokenType.enterprise,
6866
auth_scopes: sharedtestdata.auth_scopes.authorize,

test/Bruno/Altinn.Authorization/shared/Authorize/AppInstanceDelegation/ResourceAppInstance.bru

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ body:json {
7272
}
7373

7474
script:pre-request {
75-
const sharedtestdata = require(`./Testdata/shared.json`);
76-
7775
var getTokenParameters = {
7876
auth_tokenType: sharedtestdata.authTokenType.enterprise,
7977
auth_scopes: sharedtestdata.auth_scopes.authorize,

test/Bruno/Altinn.Authorization/shared/Authorize/MultiReqApps.bru

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ body:json {
115115
}
116116

117117
script:pre-request {
118-
const sharedtestdata = require(`./Testdata/shared.json`);
119-
120118
var getTokenParameters = {
121119
auth_tokenType: sharedtestdata.authTokenType.enterprise,
122120
auth_scopes: sharedtestdata.auth_scopes.authorize,

test/Bruno/Altinn.Authorization/shared/Authorize/MultiReqResource.bru

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ body:json {
9898
}
9999

100100
script:pre-request {
101-
const sharedtestdata = require(`./Testdata/shared.json`);
102-
103101
var getTokenParameters = {
104102
auth_tokenType: sharedtestdata.authTokenType.enterprise,
105103
auth_scopes: sharedtestdata.auth_scopes.authorize,

test/Bruno/Altinn.Authorization/shared/MetadataPolicy/UploadAppMetadataPolicy.bru

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ body:xml {
240240
}
241241

242242
script:pre-request {
243-
const sharedtestdata = require(`./Testdata/shared.json`);
244-
245243
bru.setVar("org", sharedtestdata.serviceOwners.ttd.org);
246244
bru.setVar("app", "jkstestapp");
247245

test/Bruno/Altinn.Authorization/test/Authorize/AccessList/AccessList_AC1_Delegation_Permit.bru

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ assert {
6868
}
6969

7070
script:pre-request {
71-
const sharedtestdata = require(`./Testdata/shared.json`);
72-
7371
var getTokenParameters = {
7472
auth_tokenType: sharedtestdata.authTokenType.enterprise,
7573
auth_scopes: sharedtestdata.auth_scopes.authorize,

0 commit comments

Comments
 (0)