GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: replace hardcoded secret literals in test fixtures with approved… · contentstack/cli-plugins@f5497a7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • contentstack-asset-management/test/unit
      • import
        • asset-types.test.ts
        • assets.test.ts
        • base.test.ts
        • fields.test.ts
        • spaces.test.ts
        • workspaces.test.ts
      • utils
        • detect-asset-management-export.test.ts
    • contentstack-bootstrap/test
      • bootstrap-integration.test.js
    • contentstack-bulk-operations/test/unit
      • base-bulk-command.test.ts
      • utils
        • bulk-operation-log-handler.test.ts
        • config-builder.test.ts
        • revert-retry-handler.test.ts
    • contentstack-clone/test
      • commands
        • stack-clone.test.ts
      • lib
        • helpers
          • command-helpers.test.ts
        • util
          • clone-handler.branch.test.ts
    • contentstack-content-type/test
      • core
        • command.test.ts
        • contentstack
          • client.test.ts
      • utils
        • index.test.ts
    • contentstack-export-to-csv/test/unit
      • commands
        • export-to-csv.test.ts
      • utils
        • error-handler.test.ts
        • teams-export.functional.test.ts
    • contentstack-export/test/unit
      • export
        • module-exporter.test.ts
        • modules
          • marketplace-apps.test.ts
      • utils
        • common-helper.test.ts
        • export-config-handler.test.ts
        • interactive.test.ts
        • marketplace-app-helper.test.ts
    • contentstack-import-setup/test/unit
      • common-helper.test.ts
      • login-handler.test.ts
    • contentstack-import/test/unit
      • commands/cm/stacks
        • import.test.ts
      • import/modules
        • assets.test.ts
        • base-class.test.ts
        • content-types.test.ts
        • entries.test.ts
        • global-fields.test.ts
        • index.test.ts
        • marketplace-apps.test.ts
      • utils
        • common-helper.test.ts
        • interactive.test.ts
        • login-handler.test.ts
        • marketplace-app-helper.test.ts
    • contentstack-migrate-rte/test
      • commands
        • json-migration.test.js
      • utils
        • index.js
    • contentstack-query-export/test/unit
      • common-helper.test.ts
    • contentstack-seed/test
      • commands/cm/stacks
        • seed.test.ts
      • seed
        • contentstack
          • client.test.ts
        • interactive.test.ts
    • contentstack-variants/test/unit/export
      • variant-entries.test.ts
  • pnpm-lock.yaml

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/contentstack-asset-management/test/unit/import/asset-types.test.ts‎

Copy file name to clipboardExpand all lines: packages/contentstack-asset-management/test/unit/import/asset-types.test.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('ImportAssetTypes', () => {
1414
const importContext: ImportContext = {
1515
spacesRootPath: '/tmp/import/spaces',
1616
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
17-
apiKey: 'api-key-1',
17+
apiKey: 'API_KEY',
1818
host: 'https://api.contentstack.io/v3',
1919
org_uid: 'org-1',
2020
};
Collapse file

‎packages/contentstack-asset-management/test/unit/import/assets.test.ts‎

Copy file name to clipboardExpand all lines: packages/contentstack-asset-management/test/unit/import/assets.test.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('ImportAssets', () => {
1717
const importContext: ImportContext = {
1818
spacesRootPath: '/tmp/import/spaces',
1919
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
20-
apiKey: 'api-key-1',
20+
apiKey: 'API_KEY',
2121
host: 'https://api.contentstack.io/v3',
2222
org_uid: 'org-1',
2323
};
Collapse file

‎packages/contentstack-asset-management/test/unit/import/base.test.ts‎

Copy file name to clipboardExpand all lines: packages/contentstack-asset-management/test/unit/import/base.test.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('CSAssetsImportAdapter (base)', () => {
2929
const importContext: ImportContext = {
3030
spacesRootPath: '/tmp/import/spaces',
3131
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
32-
apiKey: 'api-key-1',
32+
apiKey: 'API_KEY',
3333
host: 'https://api.contentstack.io/v3',
3434
org_uid: 'org-1',
3535
};
Collapse file

‎packages/contentstack-asset-management/test/unit/import/fields.test.ts‎

Copy file name to clipboardExpand all lines: packages/contentstack-asset-management/test/unit/import/fields.test.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('ImportFields', () => {
1414
const importContext: ImportContext = {
1515
spacesRootPath: '/tmp/import/spaces',
1616
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
17-
apiKey: 'api-key-1',
17+
apiKey: 'API_KEY',
1818
host: 'https://api.contentstack.io/v3',
1919
org_uid: 'org-1',
2020
};
Collapse file

‎packages/contentstack-asset-management/test/unit/import/spaces.test.ts‎

Copy file name to clipboardExpand all lines: packages/contentstack-asset-management/test/unit/import/spaces.test.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('ImportSpaces', () => {
1818
csAssetsUrl: 'https://am.example.com',
1919
org_uid: 'org-1',
2020
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
21-
apiKey: 'api-key-1',
21+
apiKey: 'API_KEY',
2222
host: 'https://api.contentstack.io/v3',
2323
};
2424

Collapse file

‎packages/contentstack-asset-management/test/unit/import/workspaces.test.ts‎

Copy file name to clipboardExpand all lines: packages/contentstack-asset-management/test/unit/import/workspaces.test.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('ImportWorkspace', () => {
1616
const importContext: ImportContext = {
1717
spacesRootPath: '/tmp/import/spaces',
1818
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
19-
apiKey: 'api-key-1',
19+
apiKey: 'API_KEY',
2020
host: 'https://api.contentstack.io/v3',
2121
org_uid: 'org-1',
2222
};
Collapse file

‎packages/contentstack-asset-management/test/unit/utils/detect-asset-management-export.test.ts‎

Copy file name to clipboardExpand all lines: packages/contentstack-asset-management/test/unit/utils/detect-asset-management-export.test.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('detectAssetManagementExportFromContentDir', () => {
5252
fs.writeFileSync(
5353
path.join(tmpRoot, 'branches.json'),
5454
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
55-
JSON.stringify([{ stackHeaders: { api_key: 'source-stack-key' } }]),
55+
JSON.stringify([{ stackHeaders: { api_key: 'API_KEY' } }]),
5656
);
5757

5858
stub(utilities.configHandler, 'get').withArgs('region').returns({
@@ -62,6 +62,6 @@ describe('detectAssetManagementExportFromContentDir', () => {
6262
const flags = detectAssetManagementExportFromContentDir(tmpRoot);
6363
expect(flags.assetManagementEnabled).to.equal(true);
6464
expect(flags.assetManagementUrl).to.equal('https://am.example.com');
65-
expect(flags.source_stack).to.equal('source-stack-key');
65+
expect(flags.source_stack).to.equal('API_KEY');
6666
});
6767
});
Collapse file

‎packages/contentstack-bootstrap/test/bootstrap-integration.test.js‎

Copy file name to clipboardExpand all lines: packages/contentstack-bootstrap/test/bootstrap-integration.test.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('Bootstrap Integration Tests', () => {
8383
cloneDirectory: '/test/path',
8484
seedParams: {
8585
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
86-
stackAPIKey: 'test-key',
86+
stackAPIKey: 'API_KEY',
8787
managementTokenAlias: 'test-alias',
8888
managementToken: 'test-token',
8989
},
@@ -119,7 +119,7 @@ describe('Bootstrap Integration Tests', () => {
119119
// Verify that SeedParams interface includes the new properties
120120
const mockSeedParams = {
121121
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
122-
stackAPIKey: 'test-key',
122+
stackAPIKey: 'API_KEY',
123123
org: 'test-org',
124124
stackName: 'test-stack',
125125
yes: 'yes',
Collapse file

‎packages/contentstack-bulk-operations/test/unit/base-bulk-command.test.ts‎

Copy file name to clipboardExpand all lines: packages/contentstack-bulk-operations/test/unit/base-bulk-command.test.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ describe('BaseBulkCommand', () => {
720720
publishMode: 'bulk',
721721
apiKey: undefined,
722722
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
723-
stackApiKey: 'fallback-key',
723+
stackApiKey: 'API_KEY',
724724
branch: 'main',
725725
bulkOperationFolder: './bulk-operation',
726726
};
Collapse file

‎packages/contentstack-bulk-operations/test/unit/utils/bulk-operation-log-handler.test.ts‎

Copy file name to clipboardExpand all lines: packages/contentstack-bulk-operations/test/unit/utils/bulk-operation-log-handler.test.ts
+12-12Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ describe('Bulk Operation Log Handler', () => {
198198
items: [{ uid: 'entry1' }],
199199
status: 'success',
200200
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
201-
apiKey: 'test-key',
201+
apiKey: 'API_KEY',
202202
branch: 'main',
203203
},
204204
];
@@ -256,7 +256,7 @@ describe('Bulk Operation Log Handler', () => {
256256
status: 'failed',
257257
error: 'Network error',
258258
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
259-
apiKey: 'test-key',
259+
apiKey: 'API_KEY',
260260
branch: 'main',
261261
},
262262
];
@@ -354,7 +354,7 @@ describe('Bulk Operation Log Handler', () => {
354354
environments: ['prod'],
355355
status: 'success',
356356
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
357-
apiKey: 'test-key',
357+
apiKey: 'API_KEY',
358358
branch: 'main',
359359
},
360360
];
@@ -404,7 +404,7 @@ describe('Bulk Operation Log Handler', () => {
404404
status: 'failed',
405405
error: 'Network error',
406406
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
407-
apiKey: 'test-key',
407+
apiKey: 'API_KEY',
408408
branch: 'main',
409409
},
410410
];
@@ -447,7 +447,7 @@ describe('Bulk Operation Log Handler', () => {
447447
items: [{ uid: 'entry1', type: 'entry', locale: 'en-us' }],
448448
status: 'success',
449449
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
450-
apiKey: 'test-key',
450+
apiKey: 'API_KEY',
451451
branch: 'main',
452452
};
453453

@@ -473,7 +473,7 @@ describe('Bulk Operation Log Handler', () => {
473473
items: [],
474474
status: 'success',
475475
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
476-
apiKey: 'test-key',
476+
apiKey: 'API_KEY',
477477
branch: 'main',
478478
};
479479

@@ -499,7 +499,7 @@ describe('Bulk Operation Log Handler', () => {
499499
items: [],
500500
status: 'success',
501501
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
502-
apiKey: 'test-key',
502+
apiKey: 'API_KEY',
503503
branch: 'main',
504504
};
505505

@@ -536,7 +536,7 @@ describe('Bulk Operation Log Handler', () => {
536536
status: 'failed',
537537
error: 'API Error',
538538
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
539-
apiKey: 'test-key',
539+
apiKey: 'API_KEY',
540540
branch: 'main',
541541
};
542542

@@ -572,7 +572,7 @@ describe('Bulk Operation Log Handler', () => {
572572
environments: ['prod'],
573573
status: 'success',
574574
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
575-
apiKey: 'test-key',
575+
apiKey: 'API_KEY',
576576
branch: 'main',
577577
};
578578

@@ -596,7 +596,7 @@ describe('Bulk Operation Log Handler', () => {
596596
environments: ['prod'],
597597
status: 'success',
598598
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
599-
apiKey: 'test-key',
599+
apiKey: 'API_KEY',
600600
branch: 'main',
601601
};
602602

@@ -633,7 +633,7 @@ describe('Bulk Operation Log Handler', () => {
633633
status: 'failed',
634634
error: 'Publish failed',
635635
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
636-
apiKey: 'test-key',
636+
apiKey: 'API_KEY',
637637
branch: 'main',
638638
};
639639

@@ -656,7 +656,7 @@ describe('Bulk Operation Log Handler', () => {
656656
environments: [],
657657
status: 'failed',
658658
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
659-
apiKey: 'test-key',
659+
apiKey: 'API_KEY',
660660
branch: 'main',
661661
};
662662

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.