Skip to content

Commit

Permalink
fix test following rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Nov 28, 2018
1 parent 53c89e4 commit a352ce9
Showing 1 changed file with 3 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,29 +300,17 @@ registerPrivilegesWithClusterTest(`deletes no-longer specified privileges`, {
all: {
application,
name: 'all',
actions: ['action:all'],
actions: ['action:foo'],
metadata: {},
},
space_read: {
application,
name: 'space_read',
actions: ['action:read'],
metadata: {},
},
feature_foo_all: {
application,
name: 'feature_foo_all',
actions: ['action:foo_all'],
metadata: {},
},
feature_bar_read: {
application,
name: 'feature_bar_read',
actions: ['action:bar_read'],
actions: ['action:bar'],
metadata: {},
}
}
}, [ 'quz', 'space_baz' ]);
}, ['read', 'space_baz']);
}
});

Expand Down Expand Up @@ -817,28 +805,6 @@ registerPrivilegesWithClusterTest(`throws and logs error when errors getting pri
}
});

registerPrivilegesWithClusterTest(`throws and logs error when errors deleting privileges`, {
privilegeMap: {
global: {},
space: {}
},
existingPrivileges: {
[application]: {
foo: {
application,
name: 'foo',
actions: ['action:not-foo'],
metadata: {},
}
}
},
throwErrorWhenDeletingPrivileges: new Error('Error deleting privileges'),
errorDeletingPrivilegeName: 'foo',
assert: ({ expectErrorThrown }) => {
expectErrorThrown('Error deleting privileges');
}
});

registerPrivilegesWithClusterTest(`throws and logs error when errors putting privileges`, {
privilegeMap: {
features: {},
Expand Down

0 comments on commit a352ce9

Please sign in to comment.