Merge branch 'main' into groups-capabilities

This commit is contained in:
Randall Morey authored and GitHub committed 2021-08-17 09:36:33 -04:00
commit 84fe240c1f
11 files changed
+423 -204

No files matched your search

@@ -1,5 +1,6 @@
import factory from '../generated/factories/credential-library';
import { random, system } from 'faker';
import permissions from '../helpers/permissions';
const types = ['vault'];
@@ -7,6 +8,14 @@ export default factory.extend({
id: (i) => `credential-library-id-${i}`,
type: (i) => types[i % types.length],
authorized_actions: () =>
permissions.authorizedActionsFor('credential-library') || [
'no-op',
'read',
'update',
'delete',
],
attributes() {
switch (this.type) {
case 'vault':