@@ -67,7 +67,7 @@ func TestCreateOrApplyRBACResource(t *testing.T) {
6767 return true , nil
6868 })
6969 },
70- wantErr : `failed to check if resource "istio-test-ns/cert-manager-istio-csr" exists: test client error` ,
70+ wantErr : `failed to check if Role "istio-test-ns/cert-manager-istio-csr" exists: test client error` ,
7171 },
7272 {
7373 name : "rolebindings reconciliation fails while checking if exists" ,
@@ -80,7 +80,7 @@ func TestCreateOrApplyRBACResource(t *testing.T) {
8080 return true , nil
8181 })
8282 },
83- wantErr : `failed to check if resource "istio-test-ns/cert-manager-istio-csr" exists: test client error` ,
83+ wantErr : `failed to check if RoleBinding "istio-test-ns/cert-manager-istio-csr" exists: test client error` ,
8484 },
8585 {
8686 name : "role-leases reconciliation fails while checking if exists" ,
@@ -95,7 +95,7 @@ func TestCreateOrApplyRBACResource(t *testing.T) {
9595 return true , nil
9696 })
9797 },
98- wantErr : `failed to check if resource "istio-test-ns/cert-manager-istio-csr-leases" exists: test client error` ,
98+ wantErr : `failed to check if Role "istio-test-ns/cert-manager-istio-csr-leases" exists: test client error` ,
9999 },
100100 {
101101 name : "rolebindings-leases reconciliation fails while checking if exists" ,
@@ -110,7 +110,7 @@ func TestCreateOrApplyRBACResource(t *testing.T) {
110110 return true , nil
111111 })
112112 },
113- wantErr : `failed to check if resource "istio-test-ns/cert-manager-istio-csr-leases" exists: test client error` ,
113+ wantErr : `failed to check if RoleBinding "istio-test-ns/cert-manager-istio-csr-leases" exists: test client error` ,
114114 },
115115 {
116116 name : "clusterrolebindings reconciliation fails while listing existing resources" ,
@@ -472,7 +472,7 @@ func TestCreateOrApplyRBACResource(t *testing.T) {
472472 return nil
473473 })
474474 },
475- wantErr : `failed to apply resource "istio-test-ns/cert-manager-istio-csr": test client error` ,
475+ wantErr : `failed to apply Role "istio-test-ns/cert-manager-istio-csr": test client error` ,
476476 },
477477 {
478478 name : "role reconciliation creation fails" ,
@@ -492,7 +492,7 @@ func TestCreateOrApplyRBACResource(t *testing.T) {
492492 return nil
493493 })
494494 },
495- wantErr : `failed to apply resource "istio-test-ns/cert-manager-istio-csr": test client error` ,
495+ wantErr : `failed to apply Role "istio-test-ns/cert-manager-istio-csr": test client error` ,
496496 },
497497 {
498498 name : "role-leases reconciliation applying to desired state fails" ,
@@ -518,7 +518,7 @@ func TestCreateOrApplyRBACResource(t *testing.T) {
518518 return nil
519519 })
520520 },
521- wantErr : `failed to apply resource "istio-test-ns/cert-manager-istio-csr-leases": test client error` ,
521+ wantErr : `failed to apply Role "istio-test-ns/cert-manager-istio-csr-leases": test client error` ,
522522 },
523523 {
524524 name : "role-leases reconciliation creation fails" ,
@@ -542,7 +542,7 @@ func TestCreateOrApplyRBACResource(t *testing.T) {
542542 return nil
543543 })
544544 },
545- wantErr : `failed to apply resource "istio-test-ns/cert-manager-istio-csr-leases": test client error` ,
545+ wantErr : `failed to apply Role "istio-test-ns/cert-manager-istio-csr-leases": test client error` ,
546546 },
547547 {
548548 name : "rolebindings reconciliation applying to desired state fails" ,
@@ -564,7 +564,7 @@ func TestCreateOrApplyRBACResource(t *testing.T) {
564564 return nil
565565 })
566566 },
567- wantErr : `failed to apply resource "istio-test-ns/cert-manager-istio-csr": test client error` ,
567+ wantErr : `failed to apply RoleBinding "istio-test-ns/cert-manager-istio-csr": test client error` ,
568568 },
569569 {
570570 name : "rolebindings reconciliation creation fails" ,
@@ -584,7 +584,7 @@ func TestCreateOrApplyRBACResource(t *testing.T) {
584584 return nil
585585 })
586586 },
587- wantErr : `failed to apply resource "istio-test-ns/cert-manager-istio-csr": test client error` ,
587+ wantErr : `failed to apply RoleBinding "istio-test-ns/cert-manager-istio-csr": test client error` ,
588588 },
589589 {
590590 name : "rolebinding-leases reconciliation applying to desired state fails" ,
@@ -610,7 +610,7 @@ func TestCreateOrApplyRBACResource(t *testing.T) {
610610 return nil
611611 })
612612 },
613- wantErr : `failed to apply resource "istio-test-ns/cert-manager-istio-csr-leases": test client error` ,
613+ wantErr : `failed to apply RoleBinding "istio-test-ns/cert-manager-istio-csr-leases": test client error` ,
614614 },
615615 {
616616 name : "rolebinding-leases reconciliation creation fails" ,
@@ -634,7 +634,7 @@ func TestCreateOrApplyRBACResource(t *testing.T) {
634634 return nil
635635 })
636636 },
637- wantErr : `failed to apply resource "istio-test-ns/cert-manager-istio-csr-leases": test client error` ,
637+ wantErr : `failed to apply RoleBinding "istio-test-ns/cert-manager-istio-csr-leases": test client error` ,
638638 },
639639 }
640640
0 commit comments