Skip to content

feat: add expiration_policy parameter to prebuild resource #404

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

Merged
merged 12 commits into from
May 23, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add comment about partial match in preset test
  • Loading branch information
ssncferreira committed May 23, 2025
commit 60beaea332d080f35faba15c120617b900b91e8c
5 changes: 4 additions & 1 deletion provider/workspace_preset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ func TestWorkspacePreset(t *testing.T) {
cache_invalidation {}
}
}`,
// Note: Match only the beginning of the error message to make the test more reliable.
// The full error message includes formatting differences like newlines, which could
// cause the test to fail unnecessarily.
ExpectError: regexp.MustCompile("The argument \"invalidate_after_secs\" is required,"),
},
{
Expand Down Expand Up @@ -209,7 +212,7 @@ func TestWorkspacePreset(t *testing.T) {
for _, testcase := range testcases {
t.Run(testcase.Name, func(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
ProviderFactories: coderFactory(),
IsUnitTest: true,
Expand Down
Loading