Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for YAMLDiff (0.54 sec)

  1. operator/cmd/mesh/operator_test.go

    		if err := os.WriteFile(goldenFilepath, []byte(gotYAML), 0o644); err != nil {
    			t.Error(err)
    		}
    	}
    
    	wantYAML, err := readFile(goldenFilepath)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if diff := util.YAMLDiff(wantYAML, gotYAML); diff != "" {
    		t.Fatalf("diff: %s", diff)
    	}
    }
    
    func TestOperatorDumpJSONFormat(t *testing.T) {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  2. operator/cmd/mesh/profile-dump_test.go

    			want, err := readFile(outPath)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if !util.IsYAMLEqual(got, want) {
    				t.Errorf("profile-dump command(%s): got:\n%s\n\nwant:\n%s\nDiff:\n%s\n", tt.desc, got, want, util.YAMLDiff(got, want))
    			}
    		})
    	}
    }
    
    func runProfileDump(profilePath, configPath string, chartSource chartSourceType, outfmt string) (string, error) {
    	cmd := "profile dump -f " + profilePath
    	if configPath != "" {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Jan 20 11:44:25 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  3. operator/cmd/mesh/profile-diff.go

    	}
    
    	b, _, err := manifest.GenIOPFromProfile(profileB, "", setFlags, true, true, nil, l)
    	if err != nil {
    		return false, fmt.Errorf("could not read %q: %v", profileB, err)
    	}
    
    	diff := util.YAMLDiff(a, b)
    	if diff == "" {
    		fmt.Fprintln(writer, "Profiles are identical")
    	} else {
    		fmt.Fprintf(writer, "The difference between profiles:\n%s", diff)
    		return true, nil
    	}
    
    	return false, nil
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  4. operator/cmd/mesh/manifest-generate_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	got2, err := runManifestGenerate([]string{inPath}, "", snapshotCharts, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if got1 != got2 {
    		fmt.Printf("%s", util.YAMLDiff(got1, got2))
    		t.Errorf("stable_manifest: Manifest generation is not producing stable text output.")
    	}
    }
    
    func TestManifestGenerateFlagAliases(t *testing.T) {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
Back to top