2019-06-05 08:25:32 +00:00
|
|
|
export default function(
|
|
|
|
visitable,
|
|
|
|
deletable,
|
|
|
|
creatable,
|
|
|
|
clickable,
|
|
|
|
attribute,
|
|
|
|
collection,
|
|
|
|
text,
|
|
|
|
filter
|
|
|
|
) {
|
2019-05-01 18:09:29 +00:00
|
|
|
return creatable({
|
|
|
|
visit: visitable('/:dc/acls/roles'),
|
|
|
|
roles: collection(
|
|
|
|
'[data-test-tabular-row]',
|
|
|
|
deletable({
|
|
|
|
name: attribute('data-test-role', '[data-test-role]'),
|
2019-06-05 08:25:32 +00:00
|
|
|
description: text('[data-test-description]'),
|
|
|
|
policy: text('[data-test-policy].policy', { multiple: true }),
|
|
|
|
serviceIdentity: text('[data-test-policy].policy-service-identity', { multiple: true }),
|
2019-05-01 18:09:29 +00:00
|
|
|
actions: clickable('label'),
|
|
|
|
})
|
|
|
|
),
|
|
|
|
filter: filter,
|
|
|
|
});
|
|
|
|
}
|