-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update Elixir tests and config files #5822
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
base: main
Are you sure you want to change the base?
Conversation
969dc8b to
6d84623
Compare
6d84623 to
64ced76
Compare
42b2c15 to
54ab394
Compare
54ab394 to
c91c33f
Compare
| ], | ||
| "ReaderACLTest": [ | ||
| "unrestricted db can be read" | ||
| "JwtRolesClaimTest": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we skip the tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- This test was not included in the
suite.elixir, so it was never run in the CI before. - If adding this to the
suite.elixirfile, runningmake elixir tests=test/elixir/test/jwt_roles_claim_test.exswill fail locally.
$ make elixir tests=test/elixir/test/jwt_roles_claim_test.exs
...
Finished in 0.1 seconds (0.00s async, 0.1s sync)
5 tests, 5 failuresThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReplicationTest: they passed locally, but failed in CI.
- Elixir unit tests need to end with `_test.exs` to run. - large_docs_test.exs - reshard_changes_feed_test.exs - disk_monitor_test.exs - 04_key_test.exs - 25_beginswith_test.exs - The `Enum.each()` method cannot run tests because it iterates through the data at runtime, while the test macro is defined at compile time. Therefore, replace it with a for loop. - rewrite_js_test.exs - rewrite_test.exs - Update outdated tests. - cluster_with_quorum_test.exs - cluster_without_quorum_test.exs - cookie_auth_test.exs
- warning: variable "db" is unused (if the variable is not meant to be used, prefix it with an underscore). - friend_docs.ex - limit_docs.ex - warning: using single-quoted strings to represent charlists is deprecated. - user_docs.ex - warning: trailing commas are not allowed inside function/macro call arguments. - 02_basic_find_test.exs
- config/search.elixir - config/skip.elixir - config/suite.elixir
c91c33f to
ee1d058
Compare
Overview
Elixir unit tests need to end with
_test.exsto run.The
Enum.each()method cannot run tests because it iterates throughthe data at runtime, while the test macro is defined at compile time.
Therefore, replace it with a for loop.
Update outdated tests.
Update Elixir test config files.
Testing recommendations
make elixirmake elixir-searchRelated Issues or Pull Requests
Checklist
rel/overlay/etc/default.inisrc/docsfolder