-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix identifier detection in named-entry lists
Rework `getIdentifierFromNamedLists` to check not just the number of keys in the list, but more precisely the number of unique entries. This is to detect lists that have a `name` key in each entry that does not have unique values. Improve flaky test where the path style rendering option was not reset correctly for each new test section. This commit should fix #38.
- Loading branch information
1 parent
7505045
commit 593c523
Showing
7 changed files
with
161 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
counters: | ||
- addr: http://127.0.0.1:14823/debug/vars | ||
name: ingress | ||
source_id: forwarder_agent | ||
template: "{{.ForwarderAgent.IngressV2}}" | ||
tags: | ||
metric_version: "2.0" | ||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: dropped | ||
template: "{{.Agent.Dropped}}" | ||
tags: | ||
origin: loggregator.metron | ||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: dropped | ||
template: "{{.Agent.DroppedEgressV2}}" | ||
tags: | ||
origin: loggregator.metron | ||
direction: egress | ||
metric_version: "2.0" | ||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: dropped | ||
template: "{{.Agent.DroppedIngressV2}}" | ||
tags: | ||
origin: loggregator.metron | ||
direction: ingress | ||
metric_version: "2.0" | ||
|
||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: egress | ||
template: "{{.Agent.Egress}}" | ||
tags: | ||
origin: loggregator.metron | ||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: egress | ||
template: "{{.Agent.EgressV2}}" | ||
tags: | ||
origin: loggregator.metron | ||
metric_version: "2.0" | ||
|
||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: ingress | ||
template: "{{.Agent.Ingress}}" | ||
tags: | ||
origin: loggregator.metron | ||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: ingress | ||
template: "{{.Agent.IngressV2}}" | ||
tags: | ||
origin: loggregator.metron | ||
metric_version: "2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
counters: | ||
- addr: http://127.0.0.1:14823/debug/vars | ||
name: ingress | ||
source_id: forwarder_agent | ||
template: "{{.ForwarderAgent.IngressV2}}" | ||
tags: | ||
metric_version: "2.0" | ||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: dropped | ||
template: "{{.Agent.Dropped}}" | ||
tags: | ||
origin: loggregator.metron | ||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: dropped | ||
template: "{{.Agent.DroppedEgressV2}}" | ||
tags: | ||
origin: loggregator.metron | ||
direction: egress | ||
metric_version: "2.0" | ||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: dropped | ||
template: "{{.Agent.DroppedIngressV2}}" | ||
tags: | ||
origin: loggregator.metron | ||
direction: ingress | ||
metric_version: "2.0" | ||
|
||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: egress | ||
template: "{{.Agent.Egress}}" | ||
tags: | ||
origin: loggregator.metron | ||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: egress | ||
template: "{{.Agent.EgressV2}}" | ||
tags: | ||
origin: loggregator.metron | ||
metric_version: "2.0" | ||
|
||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: ingress | ||
template: "{{.Agent.Ingress}}" | ||
tags: | ||
origin: loggregator.metron | ||
- addr: http://127.0.0.1:14824/debug/vars | ||
name: ingress | ||
template: "{{.Agent.IngressV2}}" | ||
tags: | ||
origin: loggregator.metron | ||
metric_version: "2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters