feat: 🎸 Add indexedDb parser (#2068)
* feat: 🎸 Add indexedDb parser ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12164 --------- Co-authored-by: Lisbet Alvarez <lisbet.alvarez@hashicorp.com>
This commit is contained in:
1 parent
bd5e3da1f4
commit
d72fa0d6e3
24 files changed
+890
-178
No files matched your search
@@ -13,7 +13,7 @@ module('Unit | Model | scope', function (hooks) {
|
||||
|
||||
test('it may have a scope fragment', async function (assert) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
this.server.get('/v1/scopes', () => ({
|
||||
this.server.get('/scopes', () => ({
|
||||
items: [
|
||||
{ id: 'global', type: 'global' },
|
||||
{ id: 'o_1', type: 'org', scope: { scope_id: 'global' } },
|
||||
@@ -72,7 +72,7 @@ module('Unit | Model | scope', function (hooks) {
|
||||
test('it has an `attachStoragePolicy` method that targets a specific POST API endpoint and serialization', async function (assert) {
|
||||
assert.expect(1);
|
||||
this.server.post(
|
||||
'/v1/scopes/123abc:attach-storage-policy',
|
||||
'/scopes/123abc:attach-storage-policy',
|
||||
(schema, request) => {
|
||||
const body = JSON.parse(request.requestBody);
|
||||
assert.deepEqual(body, {
|
||||
@@ -106,7 +106,7 @@ module('Unit | Model | scope', function (hooks) {
|
||||
test('it has a `detachStoragePolicy` method that targets a specific POST API endpoint and serialization', async function (assert) {
|
||||
assert.expect(1);
|
||||
this.server.post(
|
||||
'/v1/scopes/123abc:detach-storage-policy',
|
||||
'/scopes/123abc:detach-storage-policy',
|
||||
(schema, request) => {
|
||||
const body = JSON.parse(request.requestBody);
|
||||
assert.deepEqual(body, {
|
||||
|
||||
Reference in new issue
Block a user