From 2a63129ff6637cf770d92d40b9859ba9c825b999 Mon Sep 17 00:00:00 2001 From: Doug Drechsel Date: Fri, 16 Aug 2024 15:21:56 -0400 Subject: [PATCH] test: Add more test IDs (#9285) --- spec/CloudCode.Validator.spec.js | 12 ++++++------ spec/CloudCode.spec.js | 12 ++++++------ spec/EmailVerificationToken.spec.js | 4 ++-- spec/ParseObject.spec.js | 2 +- spec/ParseUser.spec.js | 4 ++-- spec/PointerPermissions.spec.js | 6 +++--- spec/rest.spec.js | 2 +- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/spec/CloudCode.Validator.spec.js b/spec/CloudCode.Validator.spec.js index dfec5c1e49..11ccc82766 100644 --- a/spec/CloudCode.Validator.spec.js +++ b/spec/CloudCode.Validator.spec.js @@ -734,7 +734,7 @@ describe('cloud validator', () => { done(); }); - it('basic beforeSave Parse.Config skipWithMasterKey', async () => { + it_id('893eec0c-41bd-4adf-8f0a-306087ad8d61')(it)('basic beforeSave Parse.Config skipWithMasterKey', async () => { Parse.Cloud.beforeSave( Parse.Config, () => { @@ -750,7 +750,7 @@ describe('cloud validator', () => { expect(config.get('number')).toBe(12); }); - it('basic afterSave Parse.Config skipWithMasterKey', async () => { + it_id('91e739a4-6a38-405c-8f83-f36d48220734')(it)('basic afterSave Parse.Config skipWithMasterKey', async () => { Parse.Cloud.afterSave( Parse.Config, () => { @@ -1531,7 +1531,7 @@ describe('cloud validator', () => { } }); - it('validate beforeSave Parse.Config', async () => { + it_id('32ca1a99-7f2b-429d-a7cf-62b6661d0af6')(it)('validate beforeSave Parse.Config', async () => { Parse.Cloud.beforeSave(Parse.Config, () => {}, validatorSuccess); const config = await testConfig(); expect(config.get('internal')).toBe('i'); @@ -1539,7 +1539,7 @@ describe('cloud validator', () => { expect(config.get('number')).toBe(12); }); - it('validate beforeSave Parse.Config fail', async () => { + it_id('c84d11e7-d09c-4843-ad98-f671511bf612')(it)('validate beforeSave Parse.Config fail', async () => { Parse.Cloud.beforeSave(Parse.Config, () => {}, validatorFail); try { await testConfig(); @@ -1549,7 +1549,7 @@ describe('cloud validator', () => { } }); - it('validate afterSave Parse.Config', async () => { + it_id('b18b9a6a-0e35-4b60-9771-30f53501df3c')(it)('validate afterSave Parse.Config', async () => { Parse.Cloud.afterSave(Parse.Config, () => {}, validatorSuccess); const config = await testConfig(); expect(config.get('internal')).toBe('i'); @@ -1557,7 +1557,7 @@ describe('cloud validator', () => { expect(config.get('number')).toBe(12); }); - it('validate afterSave Parse.Config fail', async () => { + it_id('ef761222-1758-4614-b984-da84d73fc10c')(it)('validate afterSave Parse.Config fail', async () => { Parse.Cloud.afterSave(Parse.Config, () => {}, validatorFail); try { await testConfig(); diff --git a/spec/CloudCode.spec.js b/spec/CloudCode.spec.js index ea862b3fe9..99ec4910d1 100644 --- a/spec/CloudCode.spec.js +++ b/spec/CloudCode.spec.js @@ -3926,7 +3926,7 @@ describe('Cloud Config hooks', () => { return Parse.Config.save({ internal: 'i', string: 's', number: 12 }, { internal: true }); } - it('beforeSave(Parse.Config) can run hook with new config', async () => { + it_id('997fe20a-96f7-454a-a5b0-c155b8d02f05')(it)('beforeSave(Parse.Config) can run hook with new config', async () => { let count = 0; Parse.Cloud.beforeSave(Parse.Config, (req) => { expect(req.object).toBeDefined(); @@ -3950,7 +3950,7 @@ describe('Cloud Config hooks', () => { expect(count).toBe(1); }); - it('beforeSave(Parse.Config) can run hook with existing config', async () => { + it_id('06a9b66c-ffb4-43d1-a025-f7d2192500e7')(it)('beforeSave(Parse.Config) can run hook with existing config', async () => { let count = 0; Parse.Cloud.beforeSave(Parse.Config, (req) => { if (count === 0) { @@ -3968,7 +3968,7 @@ describe('Cloud Config hooks', () => { expect(count).toBe(2); }); - it('beforeSave(Parse.Config) should not change config if nothing is returned', async () => { + it_id('ca76de8e-671b-4c2d-9535-bd28a855fa1a')(it)('beforeSave(Parse.Config) should not change config if nothing is returned', async () => { let count = 0; Parse.Cloud.beforeSave(Parse.Config, () => { count += 1; @@ -4021,7 +4021,7 @@ describe('Cloud Config hooks', () => { } }); - it('afterSave(Parse.Config) can run hook with new config', async () => { + it_id('3e7a75c0-6c2e-4c7e-b042-6eb5f23acf94')(it)('afterSave(Parse.Config) can run hook with new config', async () => { let count = 0; Parse.Cloud.afterSave(Parse.Config, (req) => { expect(req.object).toBeDefined(); @@ -4045,7 +4045,7 @@ describe('Cloud Config hooks', () => { expect(count).toBe(1); }); - it('afterSave(Parse.Config) can run hook with existing config', async () => { + it_id('5cffb28a-2924-4857-84bb-f5778d80372a')(it)('afterSave(Parse.Config) can run hook with existing config', async () => { let count = 0; Parse.Cloud.afterSave(Parse.Config, (req) => { if (count === 0) { @@ -4063,7 +4063,7 @@ describe('Cloud Config hooks', () => { expect(count).toBe(2); }); - it('afterSave(Parse.Config) should throw error', async () => { + it_id('49883992-ce91-4797-85f9-7cce1f819407')(it)('afterSave(Parse.Config) should throw error', async () => { Parse.Cloud.afterSave(Parse.Config, () => { throw new Parse.Error(400, 'It should fail'); }); diff --git a/spec/EmailVerificationToken.spec.js b/spec/EmailVerificationToken.spec.js index 4ebd00c453..1e9f6a7830 100644 --- a/spec/EmailVerificationToken.spec.js +++ b/spec/EmailVerificationToken.spec.js @@ -431,7 +431,7 @@ describe('Email Verification Token Expiration: ', () => { expect(emailSpy).toHaveBeenCalledTimes(0); }); - it('provides full user object in email verification function on email and username change', async () => { + it_id('d98babc1-feb8-4b5e-916c-57dc0a6ed9fb')(it)('provides full user object in email verification function on email and username change', async () => { const emailAdapter = { sendVerificationEmail: () => {}, sendPasswordResetEmail: () => Promise.resolve(), @@ -679,7 +679,7 @@ describe('Email Verification Token Expiration: ', () => { }); }); - it('setting the email on the user should set a new email verification token and new expiration date for the token when expire email verify token flag is set', done => { + it_id('b6c87f35-d887-477d-bc86-a9217a424f53')(it)('setting the email on the user should set a new email verification token and new expiration date for the token when expire email verify token flag is set', done => { const user = new Parse.User(); let userBeforeEmailReset; diff --git a/spec/ParseObject.spec.js b/spec/ParseObject.spec.js index b34a945ce1..1905ec3130 100644 --- a/spec/ParseObject.spec.js +++ b/spec/ParseObject.spec.js @@ -603,7 +603,7 @@ describe('Parse.Object testing', () => { expect(result.get('items')).toEqual(obj.get('items')); }); - it('can query array nested fields', async () => { + it_id('44097c6f-d0ca-4dc5-aa8a-3dd2d9ac645a')(it)('can query array nested fields', async () => { const objects = []; for (let i = 0; i < 10; i++) { const obj = new TestObject(); diff --git a/spec/ParseUser.spec.js b/spec/ParseUser.spec.js index ede853b4dd..b33b5f61f2 100644 --- a/spec/ParseUser.spec.js +++ b/spec/ParseUser.spec.js @@ -2271,7 +2271,7 @@ describe('Parse.User testing', () => { ); }); - it('signup should fail with duplicate case insensitive username with field specific setter', async () => { + it_id('1cef005b-d5f0-4699-af0c-bb0af27d2437')(it)('signup should fail with duplicate case insensitive username with field specific setter', async () => { const user = new Parse.User(); user.setUsername('test1'); user.setPassword('test'); @@ -2285,7 +2285,7 @@ describe('Parse.User testing', () => { ); }); - it('signup should fail with duplicate case insensitive email', async () => { + it_id('12735529-98d1-42c0-b437-3b47fe78ddde')(it)('signup should fail with duplicate case insensitive email', async () => { const user = new Parse.User(); user.setUsername('test1'); user.setPassword('test'); diff --git a/spec/PointerPermissions.spec.js b/spec/PointerPermissions.spec.js index 0e4023adc1..a4cf43899d 100644 --- a/spec/PointerPermissions.spec.js +++ b/spec/PointerPermissions.spec.js @@ -2517,7 +2517,7 @@ describe('Pointer Permissions', () => { done(); }); - it('should fail for user not listed', async done => { + it_id('84a42339-c7b5-4735-a431-57b46535b073')(it)('should fail for user not listed', async done => { await updateCLP({ get: { pointerFields: ['moderators'], @@ -2698,7 +2698,7 @@ describe('Pointer Permissions', () => { done(); }); - it('should fail for user not listed', async done => { + it_id('1abb9f4a-fb24-48c7-8025-3001d6cf8737')(it)('should fail for user not listed', async done => { await updateCLP({ update: { pointerFields: ['moderators'], @@ -2764,7 +2764,7 @@ describe('Pointer Permissions', () => { done(); }); - it('should fail for user not listed', async done => { + it_id('3175a0e3-e51e-4b84-a2e6-50bbcc582123')(it)('should fail for user not listed', async done => { await updateCLP({ delete: { pointerFields: ['owners'], diff --git a/spec/rest.spec.js b/spec/rest.spec.js index d61c5232c5..fed64c988b 100644 --- a/spec/rest.spec.js +++ b/spec/rest.spec.js @@ -787,7 +787,7 @@ describe('rest create', () => { ); }); - it('cannot get object in _GlobalConfig if not masterKey through pointer', async () => { + it_id('3ce563bf-93aa-4d0b-9af9-c5fb246ac9fc')(it)('cannot get object in _GlobalConfig if not masterKey through pointer', async () => { await Parse.Config.save({ privateData: 'secret' }, { privateData: true }); const obj2 = new Parse.Object('TestObject'); obj2.set('globalConfigPointer', {