INNER CODE UNIT · Go

TestCompareMetadata

simagix/keyhole · compare_clusters_test.go:12

func TestCompareMetadata(t *testing.T) {
	// {
	// 	"action": "compare_clusters",
	// 	"source_uri": "mongodb+srv://user:password@cluster.xxxxxx.mongodb.net/",
	// 	"target_uri": "mongodb+srv://user:password@cluster.xxxxxx.mongodb.net/"
	// }
	var err error
	cfg := &Config{Action: compareClusters, Signature: "TestCompareMetadata",
		SourceURI: "mongodb://user:password@localhost/",
		TargetURI: "mongodb://admin:secret@localhost:30309/"}
	if err = CompareMetadata(cfg); err != nil {
		t.Fatal(err)
	}
}

func TestDeepCompare(t *testing.T) {
	// {
	// 	"action": "compare_clusters",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…