Skip to content

Commit

Permalink
[NET-7377]
Browse files Browse the repository at this point in the history
- CT ENT tests for all consul resource supporting partition and ns.
- bug fix for map keys, keys did not contain partition and ns, so could have been overridden if same key in a different ns and partition is added as a dependency.
  • Loading branch information
kkavish committed Feb 18, 2024
1 parent 9393a50 commit d9cb747
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dependency/consul_common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ func filterVersionMeta(meta map[string]string) map[string]string {
"raft_version", "serf_protocol_current",
"serf_protocol_min", "serf_protocol_max", "version",
"non_voter", "read_replica", "grpc_port", "grpc_tls_port", "consul-version",
"consul-network-segment",
}
return filter(meta, filteredMeta)
}

// filterAddresses filters out consul >1.7 ipv4/ipv6 specific entries
// from TaggedAddresses entries on nodes, catlog and health services.
func filterAddresses(addrs map[string]string) map[string]string {
ipvKeys := []string{"lan_ipv4", "wan_ipv4", "lan_ipv6", "wan_ipv6"}
ipvKeys := []string{"lan_ipv4", "wan_ipv4", "lan_ipv6", "wan_ipv6", "lan", "wan"}
return filter(addrs, ipvKeys)
}

0 comments on commit d9cb747

Please sign in to comment.