Unified Storage: Testing For Fix Create, Update and Delete wrt Resource Versions (#88568)

Add testing harness
This commit is contained in:
Diego Augusto Molina
2024-06-05 15:18:33 -03:00
committed by GitHub
parent 6fcd7d9e03
commit 5fc580b401
66 changed files with 4416 additions and 322 deletions
@@ -0,0 +1,22 @@
package sqlstash
import "github.com/grafana/grafana/pkg/services/store/entity"
// validateEntity validates a fully loaded *entity.Entity model, and should be
// used before storing an entity to the database and before returning it to the
// user.
func validateEntity(*entity.Entity) error {
return nil // TODO
}
// validateLabels validates the given map of label names to their values.
func validateLabels(map[string]string) error {
// this should be called by validateEntity
return nil // TODO
}
// validateFields validates the given map of fields names to their values.
func validateFields(map[string]string) error {
// this should be called by validateEntity
return nil // TODO
}