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

add: Fuzz test for resource id parser #8214

Merged
merged 3 commits into from
Jan 9, 2025
Merged
Changes from all commits
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
9 changes: 9 additions & 0 deletions pkg/ucp/resources/id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1228,3 +1228,12 @@ func Test_ParseProviderScope(t *testing.T) {
})
}
}

justinmaks marked this conversation as resolved.
Show resolved Hide resolved
// Fuzz testing function for resource IDs to ensure user input is handled correctly.
func Fuzz_ResourceIDs(f *testing.F) {
f.Add("/planes/radius/local/resourceGroups/test-rg/providers/Applications.Datastores/mongoDatabases/mongo-database-0")
f.Fuzz(func(t *testing.T, id string) {
_, _ = Parse(id)

})
}
Loading