WING-NUS / SSID

Student Submission Integrity Diagnosis
18 stars 23 forks source link

🐛 CI/CD database error for .delete when running tests with Github Actions #347

Closed sibinhho99 closed 1 year ago

sibinhho99 commented 1 year ago

Cc:

Hi

Describe the Bug

Unable to run tests on Github Actions due to a database error when .delete is used as described in https://github.com/WING-NUS/SSID/pull/346#issuecomment-1741944081

To Reproduce

Steps to reproduce the behavior: (When writing test)

  1. Create a User and an associated ApiKey
  2. Delete the user
  3. Test database raises error (error when run on Github Actions CI/CD but working on local setup). Example run: https://github.com/WING-NUS/SSID/actions/runs/6367710089/job/17286506081?pr=346 image

Expected Behavior

Tasks

Acceptance Criteria

RSpec tests involving database entry deletion can be run on CI/CD pipeline

More Information

Environment

Screenshots

Thanks!