Skip to content

Conversation

@maxdml
Copy link
Collaborator

@maxdml maxdml commented Sep 29, 2025

No description provided.

{
name: "FunnySchema",
schemaName: "F8nny_sCHem@-n@m3",
dbRole: "notpostgres",
Copy link
Member

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))
Copy link
Member

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

Copy link
Collaborator Author

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)

@maxdml maxdml merged commit 1f6b69f into main Sep 29, 2025
3 checks passed
@maxdml maxdml deleted the test-db-permissions branch September 29, 2025 22:05
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.

3 participants