test: 💍 fix tests for authorized_actions field
This commit is contained in:
6 files changed
+10
No files matched your search
@@ -170,6 +170,7 @@ module('Unit | Serializer | application', function (hooks) {
|
||||
id: '1',
|
||||
type: 'user',
|
||||
attributes: {
|
||||
authorized_actions: [],
|
||||
name: 'User 1',
|
||||
account_ids: [],
|
||||
scope: { scope_id: 'o_123' },
|
||||
@@ -200,6 +201,7 @@ module('Unit | Serializer | application', function (hooks) {
|
||||
id: '1',
|
||||
type: 'target',
|
||||
attributes: {
|
||||
authorized_actions: [],
|
||||
name: 'Target 1',
|
||||
scope: { scope_id: 'o_123' },
|
||||
host_sets: [],
|
||||
|
||||
@@ -66,6 +66,7 @@ module('Unit | Serializer | group', function (hooks) {
|
||||
id: '1',
|
||||
type: 'group',
|
||||
attributes: {
|
||||
authorized_actions: [],
|
||||
name: 'Group 1',
|
||||
scope: { scope_id: 'o_123' },
|
||||
member_ids: [],
|
||||
|
||||
@@ -67,6 +67,7 @@ module('Unit | Serializer | host set', function (hooks) {
|
||||
id: '1',
|
||||
type: 'host-set',
|
||||
attributes: {
|
||||
authorized_actions: [],
|
||||
name: 'Host Set 1',
|
||||
host_ids: [{ value: '1' }, { value: '2' }, { value: '3' }],
|
||||
},
|
||||
@@ -96,6 +97,7 @@ module('Unit | Serializer | host set', function (hooks) {
|
||||
id: '1',
|
||||
type: 'host-set',
|
||||
attributes: {
|
||||
authorized_actions: [],
|
||||
name: 'Host Set 1',
|
||||
scope: { scope_id: 'o_123' },
|
||||
host_ids: [],
|
||||
|
||||
@@ -67,6 +67,7 @@ module('Unit | Serializer | role', function (hooks) {
|
||||
id: '1',
|
||||
type: 'role',
|
||||
attributes: {
|
||||
authorized_actions: [],
|
||||
name: 'Role 1',
|
||||
grant_strings: ['*', '*'],
|
||||
principals: [],
|
||||
@@ -93,6 +94,7 @@ module('Unit | Serializer | role', function (hooks) {
|
||||
id: '1',
|
||||
type: 'role',
|
||||
attributes: {
|
||||
authorized_actions: [],
|
||||
name: 'Role 1',
|
||||
scope: { scope_id: 'o_123' },
|
||||
principals: [],
|
||||
|
||||
@@ -110,6 +110,7 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
id: '1',
|
||||
type: 'target',
|
||||
attributes: {
|
||||
authorized_actions: [],
|
||||
name: 'Target 1',
|
||||
host_sets: [
|
||||
{ host_set_id: '1', host_catalog_id: '2' },
|
||||
@@ -143,6 +144,7 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
id: '1',
|
||||
type: 'target',
|
||||
attributes: {
|
||||
authorized_actions: [],
|
||||
name: 'Target 1',
|
||||
scope: { scope_id: 'o_123' },
|
||||
host_sets: [],
|
||||
|
||||
@@ -62,6 +62,7 @@ module('Unit | Serializer | user', function (hooks) {
|
||||
id: '1',
|
||||
type: 'user',
|
||||
attributes: {
|
||||
authorized_actions: [],
|
||||
name: 'user 1',
|
||||
scope: { scope_id: 'o_123' },
|
||||
account_ids: [],
|
||||
|
||||
Reference in new issue
Block a user