Skip to content

Commit

Permalink
TritonDataCenter#92 users.test.js failing due to stale policy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsell Kukuljevic committed May 22, 2021
1 parent 64e367e commit ceb6e23
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/users.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,14 @@ test('list policies (OK)', function (t) {
common.checkHeaders(t, res.headers);
t.ok(body);
t.ok(Array.isArray(body));
t.equal(body.length, 2);
t.equal(body.length, 3);

var expectedUuids = [POLICY_UUID, CLIENT.policy.uuid];
var expectedUuids = [
POLICY_UUID, CLIENT.policy.uuid, CLIENT.xpolicy.uuid
];
t.notEqual(expectedUuids, body[0].id);
t.notEqual(expectedUuids, body[1].id);
t.notEqual(expectedUuids, body[2].id);

t.end();
});
Expand Down Expand Up @@ -691,7 +694,7 @@ test('list roles (OK)', function (t) {
common.checkHeaders(t, res.headers);
t.ok(body);
t.ok(Array.isArray(body));
t.equal(body.length, 3);
t.equal(body.length, 4);
checkRole(t, body[0]);
checkRole(t, body[1]);
t.end();
Expand Down

0 comments on commit ceb6e23

Please sign in to comment.