-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reestablish E2E Tests (reopened) #383
Reestablish E2E Tests (reopened) #383
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #383 +/- ##
========================================
Coverage 42.05% 42.05%
========================================
Files 79 79
Lines 4829 4829
========================================
Hits 2031 2031
Misses 2798 2798 ☔ View full report in Codecov by Sentry. |
… tests The SQLite file path inside the container is not the same as on hte host: In the container: `sqlite:///var/lib/torrust/index/database/sqlite3.db?mode=rwc` It's an absolute path. From the host: `sqlite://./storage/index/lib/database/sqlite3.db?mode=rwc` It's a relative path to where the test are being executed (root project path). TODO: inject as an env var when running the E2E tests isntead of parsing the config file. ``` TORRUST_INDEX_E2E_SHARED=true TORRUST_INDEX_E2E_PATH_CONFIG="./share/default/config/index.container.sqlite3.toml" cargo test ```
…_id field Some E2E tests were failing becuase a category field in a response was renamed. I have reestablished the old name `category_id`.
30a4afe
to
7a27bba
Compare
until we reestablish the E2E tests.
7a27bba
to
31351fa
Compare
The Tracker configuration was using MySQL instead of SQLite but the database was not created. We can use SQLite for the Tracker even if in this case we are testing with MySQL becuase E2E test are for the Index not the tracker.
ACK 439ca84 |
Hi @da2ce7, I've made the minimum changes to reestablish E2E tests. I want to merge this asap so we have E2E tests enabled again. Not all the old features have been re-established. There are some pending things like:
I will create a new epic issue with a subtasks for each of those items. |
439ca84
to
d92443d
Compare
The E2E test suite execution was not reestablished correctly here.
Some env vars were renamed (like
TORRUST_INDEX_E2E_SHARED
) so we were not running E2E tests (although they seemed to pass, we were only executing the ones that do not require a shared env).This PR only reestablishes the E2E tests. There are a lot of pending refactors that will be done in new PRs like renaming env vars.