-
Notifications
You must be signed in to change notification settings - Fork 15
fix(shortcut): resource acc test should use WorkspaceRS #634
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
base: main
Are you sure you want to change the base?
fix(shortcut): resource acc test should use WorkspaceRS #634
Conversation
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.
Pull Request Overview
This PR fixes the shortcut resource acceptance test to use WorkspaceRS instead of workspace data source for resource creation. The change improves test isolation by creating dedicated lakehouse resources instead of relying on shared test data.
Key changes:
- Switch from using workspace data source to WorkspaceRS for workspace ID lookup
- Create dedicated lakehouse resources dynamically within the test
- Separate workspace concerns by using different workspace IDs for the main resource and target references
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| internal/services/shortcut/resource_shortcut_test.go | Updated acceptance test to use WorkspaceRS and create dedicated lakehouse resources |
| internal/services/shortcut/base_test.go | Added helper function to generate lakehouse resources for tests |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Minimum allowed line rate is |
| ) | ||
|
|
||
| var itemTypeInfo = shortcut.ItemTypeInfo | ||
|
|
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.
why is this needed here?
π₯ Pull Request
β What are you trying to address
Use WorkspaceRS for shortcut resource creation acc test instead of workspace DS