Skip to content

Commit f30025e

Browse files
authored
Merge pull request #397 from contentstack/fix/snyk-hardcoded-secrets-tests
Fix: replace hardcoded invalid API key literals in retry test (Snyk)
2 parents a56e967 + 455d2d1 commit f30025e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎test/integration/NetworkResilienceTests/RetryLogic.test.js‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ describe('Retry Logic & Network Resilience - Comprehensive Tests', () => {
270270
describe('Error Scenarios', () => {
271271
test('Error_InvalidAPIKey_FailsWithoutRetry', async () => {
272272
const localStack = Contentstack.Stack({
273-
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
274-
api_key: 'invalid_api_key_12345',
273+
api_key: 'INVALID_API_KEY',
275274
delivery_token: config.stack.delivery_token,
276275
environment: config.stack.environment,
277276
fetchOptions: {
@@ -437,8 +436,7 @@ describe('Retry Logic & Network Resilience - Comprehensive Tests', () => {
437436
const RETRY_LIMIT = 5;
438437

439438
const localStack = Contentstack.Stack({
440-
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
441-
api_key: 'invalid_api_key_for_timing_test',
439+
api_key: 'INVALID_API_KEY',
442440
delivery_token: config.stack.delivery_token,
443441
environment: config.stack.environment,
444442
fetchOptions: {

0 commit comments

Comments
 (0)