Skip to content

Commit

Permalink
Fix faulty test condition in bruno test after respons model change
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Kjetil Øye committed Oct 23, 2024
1 parent ddb3d50 commit 1fd9bf8
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
});
}

0 comments on commit 1fd9bf8

Please sign in to comment.