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

Refactored test setup in env.go #1080

Conversation

kian99
Copy link
Contributor

@kian99 kian99 commented Nov 2, 2023

Description

Based on #1083

I noticed in my previous PRs that the setup of test resources in env.go was inconsistent, this PR aims to address that.

  • Changed env.go so that the PopulateDB function only populates the DB and added PopulateDBAndPermissions to populate the DB and OpenFGA permissions. This clarifies when a test needs only database objects versus when a test needs database objects and permissions.

Engineering checklist

Check only items that apply

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests

@kian99 kian99 changed the title Refactored test Refactored test setup in env.go Nov 2, 2023
- Changed env.go so that the PopulateDB function only populates the DB and added PopulateDBAndPermissions to populate the DB and OpenFGA permissions. This clarifies when a test needs only database objects versus when a test needs database objects and permissions
@kian99 kian99 changed the base branch from feature-rebac to CSS-6046-remove-controller-users November 3, 2023 09:22
@kian99 kian99 deleted the branch canonical:CSS-6046-remove-controller-users November 15, 2023 10:55
@kian99 kian99 closed this Nov 15, 2023
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