diff --git a/test/resources/9999999/interaction/v1/interactions/dsfdsafdsa-922c-4568-85a5-e5cc77efc3be/delete-response.txt b/test/resources/9999999/interaction/v1/interactions/dsfdsafdsa-922c-4568-85a5-e5cc77efc3be/delete-response.txt new file mode 100644 index 000000000..85c35b04a --- /dev/null +++ b/test/resources/9999999/interaction/v1/interactions/dsfdsafdsa-922c-4568-85a5-e5cc77efc3be/delete-response.txt @@ -0,0 +1 @@ +dsfdsafdsa-922c-4568-85a5-e5cc77efc3be \ No newline at end of file diff --git a/test/type.journey.test.js b/test/type.journey.test.js index cb469749f..c10f450f2 100644 --- a/test/type.journey.test.js +++ b/test/type.journey.test.js @@ -350,7 +350,7 @@ describe('type: journey', () => { const isDeleted = await handler.deleteByKey( 'testInstance/testBU', 'journey', - 'testExisting_journey_Quicksend' + 'testExisting_journey_Multistep' ); // THEN assert.equal(process.exitCode, 1, 'delete should have thrown an error'); @@ -364,7 +364,7 @@ describe('type: journey', () => { const isDeleted = await handler.deleteByKey( 'testInstance/testBU', 'journey', - 'testExisting_journey_Quicksend/2' + 'testExisting_journey_Multistep/2' ); // THEN assert.equal(process.exitCode, 1, 'delete should have thrown an error'); @@ -378,7 +378,7 @@ describe('type: journey', () => { const isDeleted = await handler.deleteByKey( 'testInstance/testBU', 'journey', - 'testExisting_journey_Quicksend/1' + 'testExisting_journey_Multistep/1' ); // THEN assert.equal(process.exitCode, 0, 'delete should not have thrown an error'); @@ -392,7 +392,7 @@ describe('type: journey', () => { const isDeleted = await handler.deleteByKey( 'testInstance/testBU', 'journey', - 'testExisting_journey_Quicksend/*' + 'testExisting_journey_Multistep/*' ); // THEN assert.equal(process.exitCode, 0, 'delete should not have thrown an error'); @@ -404,7 +404,8 @@ describe('type: journey', () => { it('Should delete 2 items with exact version', async () => { // WHEN const isDeleted = await handler.deleteByKey('testInstance/testBU', 'journey', [ - 'testExisting_journey_Quicksend/1', + 'testExisting_journey_Quicksend', + 'testExisting_temail', 'testExisting_journey_Multistep/1', ]); // THEN