Test environment:
User clones repository and with minimum environment variables(.env.sample) starts application
Scenario : User tries to Upload video and after that tries to delete the uploaded video
Observation : Since, GCP Credentials are not defined in .env file so after ffmpeg operation is completed then video files are not uploaded to GCP but still entry for video is done in mongoDB. As a result, user see a video in Videos tab.
I now user tries to delete the video from UI, then error message is shown to user
rairnode Logs
7:44:44 AM web.1 | 2024-05-23T07:44:44.150Z [error] : [gcp/index.js] Can't remove file. Uninitialized
7:44:44 AM web.1 | DELETE /api/files/remove/K4KOp8dqOXsMJeR4KbJmGbjRNryH7Su5sEqnA6veLgYyzx 200 8.567 ms - 84
Expected Response:
Since the video is not uploaded to GCP so maybe we don't create MongoDB entry for the video
Test environment: User clones repository and with minimum environment variables(.env.sample) starts application
Scenario : User tries to Upload video and after that tries to delete the uploaded video
Observation : Since, GCP Credentials are not defined in .env file so after ffmpeg operation is completed then video files are not uploaded to GCP but still entry for video is done in mongoDB. As a result, user see a video in Videos tab. I now user tries to delete the video from UI, then error message is shown to user
rairnode Logs 7:44:44 AM web.1 | 2024-05-23T07:44:44.150Z [error] : [gcp/index.js] Can't remove file. Uninitialized 7:44:44 AM web.1 | DELETE /api/files/remove/K4KOp8dqOXsMJeR4KbJmGbjRNryH7Su5sEqnA6veLgYyzx 200 8.567 ms - 84
Expected Response:
Since the video is not uploaded to GCP so maybe we don't create MongoDB entry for the video