diff --git a/test/Bruno/Altinn.AccessManagement/Automatic Test Collection/AppsInstanceDelegation/DelegationCheck/AppWithDelegableRights_Ok.bru b/test/Bruno/Altinn.AccessManagement/Automatic Test Collection/AppsInstanceDelegation/DelegationCheck/AppWithDelegableRights_Ok.bru index a8580c12..4e3fe6a4 100644 --- a/test/Bruno/Altinn.AccessManagement/Automatic Test Collection/AppsInstanceDelegation/DelegationCheck/AppWithDelegableRights_Ok.bru +++ b/test/Bruno/Altinn.AccessManagement/Automatic Test Collection/AppsInstanceDelegation/DelegationCheck/AppWithDelegableRights_Ok.bru @@ -45,10 +45,12 @@ script:pre-request { tests { test("AppsInstanceDelegation DelegationCheck GET AppWithDelegableRights_Ok", function() { var body = res.getBody(); + var data = body.data; + console.log(data); expect(res.status).to.equal(200); - expect(body[0]).to.have.property('rightKey', 'authz-bruno-instancedelegation,ttd,task_1:read') - expect(body[0]).to.have.property('status', 'Delegable') - expect(body[1]).to.have.property('rightKey', 'authz-bruno-instancedelegation,ttd,task_1:sign') - expect(body[1]).to.have.property('status', 'Delegable') + expect(data[0]).to.have.property('rightKey', 'app_ttd_authz-bruno-instancedelegation,task_1:read') + expect(data[0]).to.have.property('status', 'Delegable') + expect(data[1]).to.have.property('rightKey', 'app_ttd_authz-bruno-instancedelegation,task_1:sign') + expect(data[1]).to.have.property('status', 'Delegable') }); }