-
Notifications
You must be signed in to change notification settings - Fork 41
Test db permissions #160
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
Test db permissions #160
Conversation
…istence when running migrations
cmd/dbos/cli_integration_test.go
Outdated
| { | ||
| name: "FunnySchema", | ||
| schemaName: "F8nny_sCHem@-n@m3", | ||
| dbRole: "notpostgres", |
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.
Put some funny characters in the role to verify everything is quoted correctly
| output, err := cmd.CombinedOutput() | ||
| require.NoError(t, err, "Migrate command failed: %s", string(output)) | ||
| assert.Contains(t, string(output), "DBOS migrations completed successfully", "Output should confirm migration") | ||
| fmt.Println(string(output)) |
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.
We also need to test the app actually works with the new role after the migration
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.
The other tests do that (they'll use the role that's passed to the suite)
No description provided.