@@ -21,9 +21,10 @@ import (
21
21
)
22
22
23
23
var (
24
- skipMethods = map [string ]any {
25
- "InTx" : struct {}{},
26
- "Ping" : struct {}{},
24
+ skipMethods = map [string ]string {
25
+ "InTx" : "Not relevant" ,
26
+ "Ping" : "Not relevant" ,
27
+ "GetAuthorizedWorkspaces" : "Will not be exposed" ,
27
28
}
28
29
)
29
30
@@ -56,6 +57,8 @@ func (s *MethodTestSuite) SetupSuite() {
56
57
for i := 0 ; i < azt .NumMethod (); i ++ {
57
58
method := azt .Method (i )
58
59
if _ , ok := skipMethods [method .Name ]; ok {
60
+ // We can't use s.T().Skip as this will skip the entire suite.
61
+ s .T ().Logf ("Skipping method %q: %s" , method .Name , skipMethods [method .Name ])
59
62
continue
60
63
}
61
64
s .methodAccounting [method .Name ] = 0
@@ -212,7 +215,7 @@ func asserts(inputs ...any) []AssertRBAC {
212
215
for i := 0 ; i < len (inputs ); i += 2 {
213
216
obj , ok := inputs [i ].(rbac.Objecter )
214
217
if ! ok {
215
- panic (fmt .Sprintf ("object type '%T' does not implement rbac.Objecter" , obj ))
218
+ panic (fmt .Sprintf ("object type '%T' does not implement rbac.Objecter" , inputs [ i ] ))
216
219
}
217
220
rbacObj := obj .RBACObject ()
218
221
@@ -224,7 +227,7 @@ func asserts(inputs ...any) []AssertRBAC {
224
227
// Could be the string type.
225
228
actionAsString , ok := inputs [i + 1 ].(string )
226
229
if ! ok {
227
- panic (fmt .Sprintf ("action type '%T ' not a supported action" , obj ))
230
+ panic (fmt .Sprintf ("action '%q ' not a supported action" , actionAsString ))
228
231
}
229
232
action = rbac .Action (actionAsString )
230
233
}
0 commit comments