Skip to content

Commit

Permalink
[chore] [mdatagen] Fix generated tests for include/exclude capability
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax committed Apr 16, 2024
1 parent 2c9aa0f commit 280b102
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/mdatagen/templates/testdata/config.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ filter_set_include:
resource_attributes:
{{- range $name, $attr := .ResourceAttributes }}
{{ $name }}:
enabled: true
include:
- regexp: ".*"
{{- end }}
filter_set_exclude:
resource_attributes:
{{- range $name, $attr := .ResourceAttributes }}
{{ $name }}:
enabled: true
exclude:
{{- if eq $attr.Type.String "Str" }}
- strict: {{ $attr.TestValue }}
Expand Down

0 comments on commit 280b102

Please sign in to comment.