@@ -33,7 +33,7 @@ func TestDefaultAnnotations(t *testing.T) {
3333 podAnnotations , err := PodAnnotations (otelcol , []string {})
3434 require .NoError (t , err )
3535
36- //verify propagation from metadata.annotations to spec.template.spec.metadata.annotations
36+ // verify propagation from metadata.annotations to spec.template.spec.metadata.annotations
3737 assert .Equal (t , "true" , podAnnotations ["prometheus.io/scrape" ])
3838 assert .Equal (t , "8888" , podAnnotations ["prometheus.io/port" ])
3939 assert .Equal (t , "/metrics" , podAnnotations ["prometheus.io/path" ])
@@ -62,11 +62,11 @@ func TestNonDefaultPodAnnotation(t *testing.T) {
6262 podAnnotations , err := PodAnnotations (otelcol , []string {})
6363 require .NoError (t , err )
6464
65- //verify
65+ // verify
6666 assert .NotContains (t , annotations , "prometheus.io/scrape" , "Prometheus scrape annotation should not exist" )
6767 assert .NotContains (t , annotations , "prometheus.io/port" , "Prometheus port annotation should not exist" )
6868 assert .NotContains (t , annotations , "prometheus.io/path" , "Prometheus path annotation should not exist" )
69- //verify propagation from metadata.annotations to spec.template.spec.metadata.annotations
69+ // verify propagation from metadata.annotations to spec.template.spec.metadata.annotations
7070 assert .NotContains (t , podAnnotations , "prometheus.io/scrape" , "Prometheus scrape annotation should not exist in pod annotations" )
7171 assert .NotContains (t , podAnnotations , "prometheus.io/port" , "Prometheus port annotation should not exist in pod annotations" )
7272 assert .NotContains (t , podAnnotations , "prometheus.io/path" , "Prometheus path annotation should not exist in pod annotations" )
@@ -99,7 +99,7 @@ func TestUserAnnotations(t *testing.T) {
9999 podAnnotations , err := PodAnnotations (otelcol , []string {})
100100 require .NoError (t , err )
101101
102- //verify
102+ // verify
103103 assert .Equal (t , "false" , annotations ["prometheus.io/scrape" ])
104104 assert .Equal (t , "1234" , annotations ["prometheus.io/port" ])
105105 assert .Equal (t , "/test" , annotations ["prometheus.io/path" ])
0 commit comments