From 1cd17bae772d12a63cacb849877c0fdcb52adc03 Mon Sep 17 00:00:00 2001 From: Dylan Haussermann Date: Thu, 12 Sep 2024 10:32:53 -0400 Subject: [PATCH 1/9] Test cases for Global Retetion in hours --- .../SetGlobalPolicyForMessagesInHours.md | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md diff --git a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md new file mode 100644 index 000000000..bf3a9b0ed --- /dev/null +++ b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md @@ -0,0 +1,54 @@ +--- +# (Required) Ensure all values are filled up +name: "Set global policy for messages in hours" +status: Approved +priority: Normal +folder: Data Retention Policy +authors: "@DHaussermann" +team_ownership: +- Suite Users +priority_p1_to_p4: P3 - Deep Functions (Do extensive scenarios work?) + +# (Optional) +location: null +component: null +tags: [] +labels: [] +tested_by_contributor: '' + +# (Optional) Test type and tools +cypress: N/A +detox: N/A +mmctl: N/A +playwright: N/A +rainforest: [] +manual_test_environments: [] +- Webapp +- Desktop + +# Do not change +id: null +key: null +created_on: null +last_updated: null +case_hashed: null +steps_hashed: null +--- + +**Step 1** + +1\. Login as System Admin\ +2\. Enable /test commands\ +3\. Open any channel\ +4\. Create posts that are older than 1 hour ex: */test posts range=10 time=1726147464000* (based on you current time)\ +5\. Make some post that are not back dated ex: */test posts range=10*\ +6\. Navigate to *Data Retention* in the system console\ +7\. Set a global policy to have all posts deleted within 1 hour\ +8\. Click *Run Deletion Job Now* to run data retention job\ +9\. Ensure the job completes successfully\ +10\. Retunr to the user side and refresh the webapp OR login again in a new browser session + +**Expected** + +10.1 In the channel from step *3.* the backdated posts should be deleted\ +10.2 In the channel from step *3.* the posts that are not backdated should still be in the channel\ \ No newline at end of file From 5dce9a4de75290380da7913a2c4c513b283d9da4 Mon Sep 17 00:00:00 2001 From: Dylan Haussermann Date: Thu, 12 Sep 2024 10:34:14 -0400 Subject: [PATCH 2/9] Test cases for Global Retetion in hours --- .../SetGlobalPolicyForAttachmentInHours.md | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md diff --git a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md new file mode 100644 index 000000000..7d8a82c41 --- /dev/null +++ b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md @@ -0,0 +1,56 @@ +--- +# (Required) Ensure all values are filled up +name: "Set global policy for messages in hours" +status: Approved +priority: Normal +folder: Data Retention Policy +authors: "@DHaussermann" +team_ownership: +- Suite Users +priority_p1_to_p4: P3 - Deep Functions (Do extensive scenarios work?) + +# (Optional) +location: null +component: null +tags: [] +labels: [] +tested_by_contributor: '' + +# (Optional) Test type and tools +cypress: N/A +detox: N/A +mmctl: N/A +playwright: N/A +rainforest: [] +manual_test_environments: [] +- Webapp +- Desktop + +# Do not change +id: null +key: null +created_on: null +last_updated: null +case_hashed: null +steps_hashed: null +--- + +**Step 1** + +1\. Login as System Admin\ +2\. Enable /test commands\ +3\. Open any channel\ +4\. Create posts that are older than 1 hour ex: _/test posts images=3 time=1726147464000_ (based on you current time)\ +5\. Make some post that are not back dated ex: _/test posts images=3_\ +6\. Navigate to _Data Retention_ in the system console\ +7\. Set a global policy to have all attachments deleted within 1 hour\ +8\. Remove any global poicy for deleting posts +9\. Click _Run Deletion Job Now_ to run data retention job\ +10\. Ensure the job completes successfully\ +11\. Retunr to the user side and refresh the webapp OR login again in a new browser session + +**Expected** + +11.1 In the channel from step _3._ the attachments on the backdated posts should be deleted\ +11.2 In the channel from step _3._ the posts themselves should remain\ +11.3 In the channel from step _3._ the posts that are not backdated should still have their attachments in place From a9aaf9f6a8e339b3512735a26bbfcdabed8e6291 Mon Sep 17 00:00:00 2001 From: Dylan Haussermann Date: Thu, 12 Sep 2024 10:39:33 -0400 Subject: [PATCH 3/9] Correct typos --- .../SetGlobalPolicyForAttachmentInHours.md | 6 +++--- .../SetGlobalPolicyForMessagesInHours.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md index 7d8a82c41..b4969823f 100644 --- a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md +++ b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md @@ -41,13 +41,13 @@ steps_hashed: null 2\. Enable /test commands\ 3\. Open any channel\ 4\. Create posts that are older than 1 hour ex: _/test posts images=3 time=1726147464000_ (based on you current time)\ -5\. Make some post that are not back dated ex: _/test posts images=3_\ +5\. Make some post that are not backdated ex: _/test posts images=3_\ 6\. Navigate to _Data Retention_ in the system console\ 7\. Set a global policy to have all attachments deleted within 1 hour\ -8\. Remove any global poicy for deleting posts +8\. Remove any global policy for deleting posts 9\. Click _Run Deletion Job Now_ to run data retention job\ 10\. Ensure the job completes successfully\ -11\. Retunr to the user side and refresh the webapp OR login again in a new browser session +11\. Return to the user side and refresh the webapp OR login again in a new browser session **Expected** diff --git a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md index bf3a9b0ed..5dc9e6297 100644 --- a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md +++ b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md @@ -41,12 +41,12 @@ steps_hashed: null 2\. Enable /test commands\ 3\. Open any channel\ 4\. Create posts that are older than 1 hour ex: */test posts range=10 time=1726147464000* (based on you current time)\ -5\. Make some post that are not back dated ex: */test posts range=10*\ +5\. Make some post that are not backdated ex: */test posts range=10*\ 6\. Navigate to *Data Retention* in the system console\ 7\. Set a global policy to have all posts deleted within 1 hour\ 8\. Click *Run Deletion Job Now* to run data retention job\ 9\. Ensure the job completes successfully\ -10\. Retunr to the user side and refresh the webapp OR login again in a new browser session +10\. Return to the user side and refresh the webapp OR login again in a new browser session **Expected** From b18f025ac6e7c544d1f8c697514b9b8325323fcb Mon Sep 17 00:00:00 2001 From: Dylan Haussermann Date: Thu, 12 Sep 2024 11:41:31 -0400 Subject: [PATCH 4/9] As per Deno - formating for italic text requires correction --- .../SetGlobalPolicyForMessagesInHours.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md index 5dc9e6297..dbf7a805d 100644 --- a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md +++ b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md @@ -39,16 +39,16 @@ steps_hashed: null 1\. Login as System Admin\ 2\. Enable /test commands\ -3\. Open any channel\ -4\. Create posts that are older than 1 hour ex: */test posts range=10 time=1726147464000* (based on you current time)\ -5\. Make some post that are not backdated ex: */test posts range=10*\ -6\. Navigate to *Data Retention* in the system console\ +3\. Open any channel\ +4\. Create posts that are older than 1 hour ex: _/test posts range=10 time=1726147464000_ (based on you current time)\ +5\. Make some post that are not backdated ex: _/test posts range=10_\ +6\. Navigate to _Data Retention_ in the system console\ 7\. Set a global policy to have all posts deleted within 1 hour\ -8\. Click *Run Deletion Job Now* to run data retention job\ +8\. Click _Run Deletion Job Now_ to run data retention job\ 9\. Ensure the job completes successfully\ 10\. Return to the user side and refresh the webapp OR login again in a new browser session **Expected** -10.1 In the channel from step *3.* the backdated posts should be deleted\ -10.2 In the channel from step *3.* the posts that are not backdated should still be in the channel\ \ No newline at end of file +10.1 In the channel from step _3._ the backdated posts should be deleted\ +10.2 In the channel from step _3._ the posts that are not backdated should still be in the channel\ From 5706d9533fb966ee66cc3362f5f95f31b5f776f1 Mon Sep 17 00:00:00 2001 From: Dylan Haussermann Date: Thu, 12 Sep 2024 11:56:40 -0400 Subject: [PATCH 5/9] Make 2 of the steps more explicit to avoid possibility overlapping scenarios hidding a bug. --- .../SetGlobalPolicyForAttachmentInHours.md | 2 +- .../data-retention-policy/SetGlobalPolicyForMessagesInHours.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md index b4969823f..0d116dd2d 100644 --- a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md +++ b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md @@ -40,7 +40,7 @@ steps_hashed: null 1\. Login as System Admin\ 2\. Enable /test commands\ 3\. Open any channel\ -4\. Create posts that are older than 1 hour ex: _/test posts images=3 time=1726147464000_ (based on you current time)\ +4\. Create posts that are older than 1 hour ex: _/test posts images=3 time=1726147464000_ (based on you current time) but less than 1 day old\ 5\. Make some post that are not backdated ex: _/test posts images=3_\ 6\. Navigate to _Data Retention_ in the system console\ 7\. Set a global policy to have all attachments deleted within 1 hour\ diff --git a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md index dbf7a805d..83f9b5257 100644 --- a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md +++ b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md @@ -40,7 +40,7 @@ steps_hashed: null 1\. Login as System Admin\ 2\. Enable /test commands\ 3\. Open any channel\ -4\. Create posts that are older than 1 hour ex: _/test posts range=10 time=1726147464000_ (based on you current time)\ +4\. Create posts that are older than 1 hour ex: _/test posts range=10 time=1726147464000_ (based on you current time) but less than 1 day old\ 5\. Make some post that are not backdated ex: _/test posts range=10_\ 6\. Navigate to _Data Retention_ in the system console\ 7\. Set a global policy to have all posts deleted within 1 hour\ From 607e0277ad46bc8b7d5cc94f83aae6f90df516bd Mon Sep 17 00:00:00 2001 From: Dylan Haussermann <35588783+DHaussermann@users.noreply.github.com> Date: Fri, 13 Sep 2024 09:56:00 -0400 Subject: [PATCH 6/9] Update data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md Co-authored-by: Saturnino Abril <5334504+saturninoabril@users.noreply.github.com> --- .../SetGlobalPolicyForAttachmentInHours.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md index 0d116dd2d..584e1fbc4 100644 --- a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md +++ b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md @@ -1,7 +1,7 @@ --- # (Required) Ensure all values are filled up name: "Set global policy for messages in hours" -status: Approved +status: Active priority: Normal folder: Data Retention Policy authors: "@DHaussermann" From 77f1e61c3605b6e204ec4b9ca0c93c64d7caf774 Mon Sep 17 00:00:00 2001 From: Dylan Haussermann <35588783+DHaussermann@users.noreply.github.com> Date: Fri, 13 Sep 2024 09:56:12 -0400 Subject: [PATCH 7/9] Update data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md Co-authored-by: Saturnino Abril <5334504+saturninoabril@users.noreply.github.com> --- .../SetGlobalPolicyForAttachmentInHours.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md index 584e1fbc4..13c582372 100644 --- a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md +++ b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForAttachmentInHours.md @@ -22,7 +22,7 @@ detox: N/A mmctl: N/A playwright: N/A rainforest: [] -manual_test_environments: [] +manual_test_environments: - Webapp - Desktop From 9696820d7fe1d8c46f05312e9248471ee0229a46 Mon Sep 17 00:00:00 2001 From: Dylan Haussermann <35588783+DHaussermann@users.noreply.github.com> Date: Fri, 13 Sep 2024 09:56:20 -0400 Subject: [PATCH 8/9] Update data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md Co-authored-by: Saturnino Abril <5334504+saturninoabril@users.noreply.github.com> --- .../data-retention-policy/SetGlobalPolicyForMessagesInHours.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md index 83f9b5257..6216d43f4 100644 --- a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md +++ b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md @@ -1,7 +1,7 @@ --- # (Required) Ensure all values are filled up name: "Set global policy for messages in hours" -status: Approved +status: Active priority: Normal folder: Data Retention Policy authors: "@DHaussermann" From d5a98762f6a95a52e1871afb123627e479d35a05 Mon Sep 17 00:00:00 2001 From: Dylan Haussermann <35588783+DHaussermann@users.noreply.github.com> Date: Fri, 13 Sep 2024 09:56:27 -0400 Subject: [PATCH 9/9] Update data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md Co-authored-by: Saturnino Abril <5334504+saturninoabril@users.noreply.github.com> --- .../data-retention-policy/SetGlobalPolicyForMessagesInHours.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md index 6216d43f4..174fe16de 100644 --- a/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md +++ b/data/test-cases/suite/system-console/compliance/data-retention-policy/SetGlobalPolicyForMessagesInHours.md @@ -22,7 +22,7 @@ detox: N/A mmctl: N/A playwright: N/A rainforest: [] -manual_test_environments: [] +manual_test_environments: - Webapp - Desktop