Skip to content

Commit

Permalink
add: fuzz test for resource id parser
Browse files Browse the repository at this point in the history
Signed-off-by: Maksimczuk <[email protected]>
  • Loading branch information
justinmaks committed Jan 9, 2025
1 parent 1b47609 commit e6929cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/ucp/resources/id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1228,3 +1228,11 @@ func Test_ParseProviderScope(t *testing.T) {
})
}
}

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)

})
}

0 comments on commit e6929cd

Please sign in to comment.