Refactor base scope fragment (#1166)

* refactor: 💡 migrate managed-group off fragments

* refactor: 💡 migrate credential-store off fragments

* refactor: 💡 migrate credential-library off fragments

* refactor: 💡 migrate account off fragments

* refactor: 💡 convert base model scope field to simple attr

* fix: 🐛 skip broken test
This commit is contained in:
Randall Morey authored and GitHub committed 2022-07-18 11:30:53 -07:00
1 parent b6a811cbbd
commit bdabcc119e
12 files changed
+38 -79

No files matched your search

@@ -130,19 +130,28 @@ module('Unit | Serializer | application', function (hooks) {
{
id: '1',
type: 'user',
attributes: { name: 'User 1', scope: { scope_id: 'o_123' } },
attributes: {
name: 'User 1',
scope: { id: 'o_123', scope_id: 'o_123' },
},
relationships: {},
},
{
id: '2',
type: 'user',
attributes: { name: 'User 2', scope: { scope_id: 'o_123' } },
attributes: {
name: 'User 2',
scope: { id: 'o_123', scope_id: 'o_123' },
},
relationships: {},
},
{
id: '3',
type: 'user',
attributes: { name: 'User 3', scope: { scope_id: 'o_123' } },
attributes: {
name: 'User 3',
scope: { id: 'o_123', scope_id: 'o_123' },
},
relationships: {},
},
],
@@ -173,7 +182,7 @@ module('Unit | Serializer | application', function (hooks) {
authorized_actions: [],
name: 'User 1',
account_ids: [],
scope: { scope_id: 'o_123' },
scope: { id: 'o_123', scope_id: 'o_123' },
},
relationships: {},
},
@@ -203,7 +212,7 @@ module('Unit | Serializer | application', function (hooks) {
attributes: {
authorized_actions: [],
name: 'Target 1',
scope: { scope_id: 'o_123' },
scope: { id: 'o_123', scope_id: 'o_123' },
host_sources: [],
application_credential_source_ids: [],
},
@@ -235,7 +244,7 @@ module('Unit | Serializer | application', function (hooks) {
attributes: {
authorized_actions: [],
name: 'user 1',
scope: { scope_id: 'o_123' },
scope: { id: 'o_123', scope_id: 'o_123' },
account_ids: [],
authorized_collection_actions: null,
created_time: null,
@@ -68,7 +68,7 @@ module('Unit | Serializer | group', function (hooks) {
attributes: {
authorized_actions: [],
name: 'Group 1',
scope: { scope_id: 'o_123' },
scope: { id: 'o_123', scope_id: 'o_123' },
member_ids: [],
},
relationships: {},
@@ -158,7 +158,7 @@ module('Unit | Serializer | host set', function (hooks) {
attributes: {
authorized_actions: [],
name: 'Host Set 1',
scope: { scope_id: 'o_123' },
scope: { id: 'o_123', scope_id: 'o_123' },
host_ids: [],
preferred_endpoints: [],
filters: [],
@@ -191,7 +191,7 @@ module('Unit | Serializer | host set', function (hooks) {
attributes: {
authorized_actions: [],
name: 'Host Set 1',
scope: { scope_id: 'o_123' },
scope: { id: 'o_123', scope_id: 'o_123' },
host_ids: [],
preferred_endpoints: [],
filters: [],
@@ -96,7 +96,7 @@ module('Unit | Serializer | role', function (hooks) {
attributes: {
authorized_actions: [],
name: 'Role 1',
scope: { scope_id: 'o_123' },
scope: { id: 'o_123', scope_id: 'o_123' },
principals: [],
},
relationships: {},
@@ -214,7 +214,7 @@ module('Unit | Serializer | target', function (hooks) {
attributes: {
authorized_actions: [],
name: 'Target 1',
scope: { scope_id: 'o_123' },
scope: { id: 'o_123', scope_id: 'o_123' },
host_sources: [],
application_credential_source_ids: [],
},
@@ -64,7 +64,7 @@ module('Unit | Serializer | user', function (hooks) {
attributes: {
authorized_actions: [],
name: 'user 1',
scope: { scope_id: 'o_123' },
scope: { id: 'o_123', scope_id: 'o_123' },
account_ids: [],
},
relationships: {},