Skip to content

Commit

Permalink
Add test for linkerd-config data without Global
Browse files Browse the repository at this point in the history
Co-authored-by: Itai Schwartz <yitai27@gmail.com>
  • Loading branch information
hodbn and itaischwartz committed Nov 21, 2020
1 parent 9a520ec commit f409f0c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pkg/healthcheck/healthcheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,29 @@ kind: ConfigMap
metadata:
name: linkerd-config
namespace: test-ns
`,
},
expected: []string{
"cat1 'linkerd-config' config map exists",
},
},
{
checkDescription: "'linkerd-config' config map exists",
resources: []string{`
apiVersion: v1
kind: ConfigMap
metadata:
name: linkerd-config
namespace: test-ns
data:
values: |-
tracing:
collector:
name: linkerd-collector
enabled: false
jaeger:
name: linkerd-jaeger
enabled: true
`,
},
expected: []string{
Expand Down

0 comments on commit f409f0c

Please sign in to comment.