1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-25 06:42:35 +00:00

Convert tests to real SQL store (#652)

This commit is contained in:
Tom Lebreux
2025-06-02 16:01:45 -06:00
committed by GitHub
parent 97f07399d6
commit a8f3ce48d6
2 changed files with 333 additions and 439 deletions

View File

@@ -946,7 +946,7 @@ func isLabelsFieldList(fields []string) bool {
// toUnstructuredList turns a slice of unstructured objects into an unstructured.UnstructuredList // toUnstructuredList turns a slice of unstructured objects into an unstructured.UnstructuredList
func toUnstructuredList(items []any) *unstructured.UnstructuredList { func toUnstructuredList(items []any) *unstructured.UnstructuredList {
objectItems := make([]map[string]any, len(items)) objectItems := make([]any, len(items))
result := &unstructured.UnstructuredList{ result := &unstructured.UnstructuredList{
Items: make([]unstructured.Unstructured, len(items)), Items: make([]unstructured.Unstructured, len(items)),
Object: map[string]interface{}{"items": objectItems}, Object: map[string]interface{}{"items": objectItems},

File diff suppressed because it is too large Load Diff