@@ -35,7 +35,7 @@ import (
35
35
"github.com/open-telemetry/opentelemetry-operator/internal/autodetect"
36
36
"github.com/open-telemetry/opentelemetry-operator/internal/autodetect/openshift"
37
37
"github.com/open-telemetry/opentelemetry-operator/internal/autodetect/prometheus"
38
- autoRbac "github.com/open-telemetry/opentelemetry-operator/internal/autodetect/rbac"
38
+ autoRBAC "github.com/open-telemetry/opentelemetry-operator/internal/autodetect/rbac"
39
39
"github.com/open-telemetry/opentelemetry-operator/internal/rbac"
40
40
)
41
41
@@ -155,7 +155,7 @@ func TestDetectRBACPermissionsBasedOnAvailableClusterRoles(t *testing.T) {
155
155
156
156
for _ , tt := range []struct {
157
157
description string
158
- expectedAvailability autoRbac .Availability
158
+ expectedAvailability autoRBAC .Availability
159
159
shouldError bool
160
160
namespace string
161
161
serviceAccount string
@@ -165,7 +165,7 @@ func TestDetectRBACPermissionsBasedOnAvailableClusterRoles(t *testing.T) {
165
165
description : "Not possible to read the namespace" ,
166
166
namespace : "default" ,
167
167
shouldError : true ,
168
- expectedAvailability : autoRbac .NotAvailable ,
168
+ expectedAvailability : autoRBAC .NotAvailable ,
169
169
clientGenerator : reactorFactory (v1.SubjectAccessReviewStatus {
170
170
Allowed : true ,
171
171
}),
@@ -187,7 +187,7 @@ func TestDetectRBACPermissionsBasedOnAvailableClusterRoles(t *testing.T) {
187
187
clientGenerator : reactorFactory (v1.SubjectAccessReviewStatus {
188
188
Allowed : false ,
189
189
}),
190
- expectedAvailability : autoRbac .NotAvailable ,
190
+ expectedAvailability : autoRBAC .NotAvailable ,
191
191
},
192
192
{
193
193
description : "RBAC resources are there" ,
@@ -198,13 +198,13 @@ func TestDetectRBACPermissionsBasedOnAvailableClusterRoles(t *testing.T) {
198
198
clientGenerator : reactorFactory (v1.SubjectAccessReviewStatus {
199
199
Allowed : true ,
200
200
}),
201
- expectedAvailability : autoRbac .Available ,
201
+ expectedAvailability : autoRBAC .Available ,
202
202
},
203
203
} {
204
204
t .Run (tt .description , func (t * testing.T ) {
205
205
// These settings can be get from env vars
206
- t .Setenv (autoRbac .NAMESPACE_ENV_VAR , tt .namespace )
207
- t .Setenv (autoRbac .SA_ENV_VAR , tt .serviceAccount )
206
+ t .Setenv (autoRBAC .NAMESPACE_ENV_VAR , tt .namespace )
207
+ t .Setenv (autoRBAC .SA_ENV_VAR , tt .serviceAccount )
208
208
209
209
server := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , req * http.Request ) {}))
210
210
defer server .Close ()
0 commit comments