Skip to content

Commit 8c90e71

Browse files
committed
Fix removed the master_key anddescription
1 parent f8c3010 commit 8c90e71

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/contentstack-export/src/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ const config: DefaultConfig = {
201201
stack: {
202202
dirName: 'stack',
203203
fileName: 'stack.json',
204-
invalidKeys: ['SYS_ACL', 'user_uids', 'owner_uid'],
204+
invalidKeys: ['SYS_ACL', 'user_uids', 'owner_uid', 'description', 'master_key'],
205205
},
206206
dependency: {
207207
entries: ['stack', 'locales', 'content-types'],

packages/contentstack-export/test/unit/export/modules/stack.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ describe('ExportStack', () => {
187187
stack: {
188188
dirName: 'stack',
189189
fileName: 'stack.json',
190-
invalidKeys: ['SYS_ACL', 'user_uids', 'owner_uid'],
190+
invalidKeys: ['SYS_ACL', 'user_uids', 'owner_uid', 'description', 'master_key'],
191191
limit: 100,
192192
},
193193
dependency: {
@@ -435,6 +435,8 @@ describe('ExportStack', () => {
435435
SYS_ACL: {},
436436
user_uids: ['u1'],
437437
owner_uid: 'owner-1',
438+
description: 'Stack description',
439+
master_key: 'secret-master-key',
438440
};
439441
const expectedWritten = { name: 'Test Stack', uid: 'stack-uid', org_uid: 'org-123' };
440442
mockStackClient.fetch = sinon.stub().resolves(stackData);

0 commit comments

Comments
 (0)