Skip to content
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

Fix skipped user-functions tests #6838

Merged
merged 2 commits into from
May 22, 2024
Merged

Fix skipped user-functions tests #6838

merged 2 commits into from
May 22, 2024

Conversation

snej
Copy link
Contributor

@snej snej commented May 21, 2024

A couple of user-functions tests had t.Skip() applied to them because they weren't working at the time. Some of them appear to work fine now, others needed a small fix.

  • The skipped tests in db/functions appear to work fine now.
  • The functionsapitest failures were due to inadvertently enabling "admin party" when the intent was for the guest user not to have channel access; fixed that in the config.
  • There was another failure in TestJSFunctionAsGuest due to reversed order of args in assert.Contains.

Pre-review checklist

  • Removed debug logging (fmt.Print, log.Print, ...)
  • Logging sensitive data? Make sure it's tagged (e.g. base.UD(docID), base.MD(dbName))
  • Updated relevant information in the API specifications (such as endpoint descriptions, schemas, ...) in docs/api

Dependencies (if applicable)

  • Link upstream PRs
  • Update Go module dependencies when merged

Integration Tests

snej added 2 commits May 21, 2024 13:26
- The skipped tests in db/functions appear to work fine now.
- The functionsapitest failures were due to inadvertently enabling
  "admin party" when the intent was for the guest user not to have
  channel access; fixed that in the config.
- There was another failure in TestJSFunctionAsGuest due to reversed
  order of args in assert.Contains.
...instead of its own copy of the identical code.
@snej snej requested a review from torcolvin May 21, 2024 21:47
@adamcfraser
Copy link
Collaborator

Changes look good. Kicked off integration tests to sanity check CBS behaviour, will merge when that run completes.

@adamcfraser adamcfraser merged commit 860f00b into main May 22, 2024
19 checks passed
@adamcfraser adamcfraser deleted the fix/functions-tests branch May 22, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants