Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for compareYAMLContent (0.27 sec)

  1. operator/pkg/object/objects_test.go

    				}
    				for i, obj := range objects {
    					assert.Equal(t, true, compareYAMLContent(string(obj.yaml), expectedYAMLs[i]))
    				}
    			}
    		})
    	}
    }
    
    // compareYAMLContent compares two yaml resources and returns true if they are equal. If they have same content but different
    // order of fields, it will return true as well.
    func compareYAMLContent(yaml1, yaml2 string) bool {
    	var obj1, obj2 interface{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 07:16:46 UTC 2023
    - 18.4K bytes
    - Viewed (0)
Back to top