Skip to content

Commit

Permalink
Fix more Testdata path casing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Kjetil Øye committed Nov 21, 2024
1 parent f59418d commit ca779de
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);

// Should be the same as the .bru request file. Used as Test-name Tests tab and shows in test result.
bru.setVar("requestName", "Instance_Main2P_AC3_OrgApp_InstId_Permit");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);

// Should be the same as the .bru request file. Used as Test-name Tests tab and shows in test result.
bru.setVar("requestName", "Instance_Main2P_AC4_MissingInstId_NotApplicable");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);

// Should be the same as the .bru request file. Used as Test-name Tests tab and shows in test result.
bru.setVar("requestName", "Instance_O2O_AC7_DaglOfFrom_NotApplicable");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);

// Should be the same as the .bru request file. Used as Test-name Tests tab and shows in test result.
bru.setVar("requestName", "Instance_O2O_AC7_DaglOfTo_Permit");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);

// Should be the same as the .bru request file. Used as Test-name Tests tab and shows in test result.
bru.setVar("requestName", "Instance_O2O_AC7_ResId_InstId_Permit");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);

// Should be the same as the .bru request file. Used as Test-name Tests tab and shows in test result.
bru.setVar("requestName", "Instance_P2P_AC1_ResId_InstId_Permit");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);

// Should be the same as the .bru request file. Used as Test-name Tests tab and shows in test result.
bru.setVar("requestName", "Instance_P2P_AC2_MissingInstId_NotApplicable");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);

// Should be the same as the .bru request file. Used as Test-name Tests tab and shows in test result.
bru.setVar("requestName", "Instance_P2P_MissingTask_NotApplicable");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);

// Should be the same as the .bru request file. Used as Test-name Tests tab and shows in test result.
bru.setVar("requestName", "Instance_Sub2P_AC1_OrgApp_InstId_Permit");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/InstanceDelegation/${bru.getEnvVar("tokenEnv")}.json`);

// Should be the same as the .bru request file. Used as Test-name Tests tab and shows in test result.
bru.setVar("requestName", "Instance_Sub2P_MissingTask_NotApplicable");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/Authorization/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/Authorization/${bru.getEnvVar("tokenEnv")}.json`);

bru.setVar("auth_userId", testdata.org1.dagl.userid)
bru.setVar("auth_partyId", testdata.org1.dagl.partyid)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/Authorization/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/Authorization/${bru.getEnvVar("tokenEnv")}.json`);

bru.setVar("auth_userId", testdata.org1.dagl.userid)
bru.setVar("auth_partyId", testdata.org1.dagl.partyid)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/Authorization/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/Authorization/${bru.getEnvVar("tokenEnv")}.json`);

bru.setVar("auth_userId", testdata.org1.dagl.userid)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/Authorization/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/Authorization/${bru.getEnvVar("tokenEnv")}.json`);

bru.setVar("auth_userId", testdata.org1.dagl.userid)
bru.setVar("auth_partyId", testdata.org2.dagl.partyid)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/Authorization/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/Authorization/${bru.getEnvVar("tokenEnv")}.json`);

bru.setVar("auth_userId", testdata.org1.dagl.userid)
bru.setVar("auth_partyId", testdata.org1.dagl.partyid)
Expand Down
2 changes: 1 addition & 1 deletion test/Bruno/Altinn.Authorization/test/Roles/getRoles.bru
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ assert {
}

script:pre-request {
const testdata = require(`./Testdata/Authorization/${bru.getEnvVar("tokenEnv")}.json`);
const testdata = require(`./testdata/Authorization/${bru.getEnvVar("tokenEnv")}.json`);

bru.setVar("auth_userId", testdata.org1.dagl.userid)
bru.setVar("auth_partyId", testdata.org1.dagl.partyid)
Expand Down

0 comments on commit ca779de

Please sign in to comment.