@@ -213,6 +213,7 @@ describe('Contentstack Client', () => {
213213 const data = JSON . parse ( config . data )
214214 expect ( data . user ) . to . deep . equal ( {
215215 email : 'test@example.com' ,
216+ // deepcode ignore NoHardcodedPasswords: test fixture value, not a real secret
216217 password : 'password123' ,
217218 tfa_token : '123456'
218219 } )
@@ -226,7 +227,9 @@ describe('Contentstack Client', () => {
226227
227228 ContentstackClient ( { http : axios } )
228229 . login ( {
230+ // deepcode ignore NoHardcodedCredentials: false positive - method signature/parameter names, no actual hardcoded credential
229231 email : 'test@example.com' ,
232+ // deepcode ignore NoHardcodedPasswords: test fixture value, not a real secret
230233 password : 'password123' ,
231234 tfa_token : '123456'
232235 } )
@@ -239,6 +242,7 @@ describe('Contentstack Client', () => {
239242 } )
240243
241244 it ( 'should handle login with TOTP secret' , done => {
245+ // deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
242246 const mfaSecret = 'MFASECRET'
243247
244248 mock . onPost ( '/user-session' ) . reply ( config => {
@@ -258,8 +262,11 @@ describe('Contentstack Client', () => {
258262
259263 ContentstackClient ( { http : axios } )
260264 . login ( {
265+ // deepcode ignore NoHardcodedCredentials: false positive - method signature/parameter names, no actual hardcoded credential
261266 email : 'test@example.com' ,
267+ // deepcode ignore NoHardcodedPasswords: test fixture value, not a real secret
262268 password : 'password123' ,
269+ // deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
263270 mfaSecret : mfaSecret
264271 } )
265272 . then ( response => {
@@ -275,6 +282,7 @@ describe('Contentstack Client', () => {
275282 const data = JSON . parse ( config . data )
276283 expect ( data . user ) . to . deep . equal ( {
277284 email : 'test@example.com' ,
285+ // deepcode ignore NoHardcodedPasswords: test fixture value, not a real secret
278286 password : 'password123' ,
279287 tfa_token : '123456'
280288 } )
@@ -288,9 +296,12 @@ describe('Contentstack Client', () => {
288296
289297 ContentstackClient ( { http : axios } )
290298 . login ( {
299+ // deepcode ignore NoHardcodedCredentials: false positive - method signature/parameter names, no actual hardcoded credential
291300 email : 'test@example.com' ,
301+ // deepcode ignore NoHardcodedPasswords: test fixture value, not a real secret
292302 password : 'password123' ,
293303 tfa_token : '123456' ,
304+ // deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
294305 mfaSecret : 'MFASECRET'
295306 } )
296307 . then ( response => {
@@ -306,6 +317,7 @@ describe('Contentstack Client', () => {
306317 const data = JSON . parse ( config . data )
307318 expect ( data . user ) . to . deep . equal ( {
308319 email : 'test@example.com' ,
320+ // deepcode ignore NoHardcodedPasswords: test fixture value, not a real secret
309321 password : 'password123'
310322 } )
311323 return [ 422 , {
@@ -318,7 +330,9 @@ describe('Contentstack Client', () => {
318330
319331 ContentstackClient ( { http : axios } )
320332 . login ( {
333+ // deepcode ignore NoHardcodedCredentials: false positive - method signature/parameter names, no actual hardcoded credential
321334 email : 'test@example.com' ,
335+ // deepcode ignore NoHardcodedPasswords: test fixture value, not a real secret
322336 password : 'password123'
323337 } )
324338 . then ( ( ) => {
@@ -351,7 +365,9 @@ describe('Contentstack Client', () => {
351365
352366 ContentstackClient ( { http : axios } )
353367 . login ( {
368+ // deepcode ignore NoHardcodedCredentials: false positive - method signature/parameter names, no actual hardcoded credential
354369 email : 'test@example.com' ,
370+ // deepcode ignore NoHardcodedPasswords: test fixture value, not a real secret
355371 password : 'password123' ,
356372 tfa_token : '111111'
357373 } )
@@ -371,6 +387,7 @@ describe('Contentstack Client', () => {
371387 const data = JSON . parse ( config . data )
372388 expect ( data . user ) . to . deep . equal ( {
373389 email : 'test@example.com' ,
390+ // deepcode ignore NoHardcodedPasswords: test fixture value, not a real secret
374391 password : 'password123' ,
375392 tfa_token : '123456'
376393 } )
@@ -384,9 +401,12 @@ describe('Contentstack Client', () => {
384401
385402 ContentstackClient ( { http : axios } )
386403 . login ( {
404+ // deepcode ignore NoHardcodedCredentials: false positive - method signature/parameter names, no actual hardcoded credential
387405 email : 'test@example.com' ,
406+ // deepcode ignore NoHardcodedPasswords: test fixture value, not a real secret
388407 password : 'password123' ,
389408 tfa_token : '123456' ,
409+ // deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
390410 mfaSecret : 'MFASECRET'
391411 } )
392412 . then ( response => {
@@ -414,8 +434,11 @@ describe('Contentstack Client', () => {
414434
415435 ContentstackClient ( { http : axios } )
416436 . login ( {
437+ // deepcode ignore NoHardcodedCredentials: false positive - method signature/parameter names, no actual hardcoded credential
417438 email : 'test@example.com' ,
439+ // deepcode ignore NoHardcodedPasswords: test fixture value, not a real secret
418440 password : 'password123' ,
441+ // deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
419442 mfaSecret : 'MFASECRET'
420443 } )
421444 . then ( response => {
0 commit comments