Skip to content

Cover a role in a second main file initialization - #151

Merged
LucaCappelletti94 merged 1 commit into
mainfrom
upstream/fresh-main-create-role-test
Oct 24, 2026
Merged

LucaCappelletti94 merged 1 commit into
mainfrom
upstream/fresh-main-create-role-test

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Collaborator

A plain CREATE ROLE used to make FreshFiles::Main and FreshFiles::Attached refuse the whole script, because the replay applied the role again to a reference schema that already held it in its final form. #145 fixed that by keeping roles and functions final, and it shipped tests for the function case but none for roles. This test initializes a second main file next to an existing shared file for a script that creates a role and grants it on the placed table, and reads the rows of both files. Against the source before #145 it fails with Role reader already exists.

@LucaCappelletti94
LucaCappelletti94 force-pushed the upstream/fresh-main-create-role-test branch from d51fecb to 79c9282 Compare October 24, 2026 17:14
@codecov

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LucaCappelletti94
LucaCappelletti94 merged commit 0ff918c into main Oct 24, 2026
21 checks passed
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.

1 participant