Skip to content

Commit 38fd3fc

Browse files
authored
fix: RBAC typos in testsuite (#2902)
1 parent 4c42385 commit 38fd3fc

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

operator-framework/src/test/java/io/javaoperatorsdk/operator/dependent/informerrelatedbehavior/InformerRelatedBehaviorITS.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -368,35 +368,34 @@ Operator startOperator(
368368
}
369369

370370
private void setNoConfigMapAccess() {
371-
applyClusterRole("rback-test-no-configmap-access.yaml");
371+
applyClusterRole("rbac-test-no-configmap-access.yaml");
372372
applyClusterRoleBinding();
373373
}
374374

375375
private void setNoCustomResourceAccess() {
376-
applyClusterRole("rback-test-no-cr-access.yaml");
376+
applyClusterRole("rbac-test-no-cr-access.yaml");
377377
applyClusterRoleBinding();
378378
}
379379

380380
private void setFullResourcesAccess() {
381-
applyClusterRole("rback-test-full-access-role.yaml");
381+
applyClusterRole("rbac-test-full-access-role.yaml");
382382
applyClusterRoleBinding();
383383
}
384384

385385
private void addRoleBindingsToTestNamespaces() {
386386
var role =
387-
ReconcilerUtils.loadYaml(
388-
Role.class, this.getClass(), "rback-test-only-main-ns-access.yaml");
387+
ReconcilerUtils.loadYaml(Role.class, this.getClass(), "rbac-test-only-main-ns-access.yaml");
389388
adminClient.resource(role).inNamespace(actualNamespace).createOrReplace();
390389
var roleBinding =
391390
ReconcilerUtils.loadYaml(
392-
RoleBinding.class, this.getClass(), "rback-test-only-main-ns-access-binding.yaml");
391+
RoleBinding.class, this.getClass(), "rbac-test-only-main-ns-access-binding.yaml");
393392
adminClient.resource(roleBinding).inNamespace(actualNamespace).createOrReplace();
394393
}
395394

396395
private void applyClusterRoleBinding() {
397396
var clusterRoleBinding =
398397
ReconcilerUtils.loadYaml(
399-
ClusterRoleBinding.class, this.getClass(), "rback-test-role-binding.yaml");
398+
ClusterRoleBinding.class, this.getClass(), "rbac-test-role-binding.yaml");
400399
adminClient.resource(clusterRoleBinding).createOrReplace();
401400
}
402401

@@ -418,7 +417,7 @@ private Namespace namespace(String name) {
418417
private void removeClusterRoleBinding() {
419418
var clusterRoleBinding =
420419
ReconcilerUtils.loadYaml(
421-
ClusterRoleBinding.class, this.getClass(), "rback-test-role-binding.yaml");
420+
ClusterRoleBinding.class, this.getClass(), "rbac-test-role-binding.yaml");
422421
adminClient.resource(clusterRoleBinding).delete();
423422
}
424423
}

0 commit comments

Comments
 (0)