@@ -63,11 +63,11 @@ func remoteTestSuite(ctx context.Context, net *NetworkHarness, t *testing.T,
6363 runGRPCAuthTest (
6464 ttt , cfg .LitAddr (), cfg .LitTLSCertPath ,
6565 endpoint .macaroonFn (cfg ),
66+ endpoint .noAuth ,
6667 endpoint .requestFn ,
6768 endpoint .successPattern ,
6869 endpointEnabled ,
69- "unknown permissions required for " +
70- "method" ,
70+ "unknown request" ,
7171 )
7272 })
7373 }
@@ -90,11 +90,11 @@ func remoteTestSuite(ctx context.Context, net *NetworkHarness, t *testing.T,
9090 runUIPasswordCheck (
9191 ttt , cfg .LitAddr (), cfg .LitTLSCertPath ,
9292 cfg .UIPassword , endpoint .requestFn ,
93+ endpoint .noAuth ,
9394 shouldFailWithoutMacaroon ,
9495 endpoint .successPattern ,
9596 endpointEnabled ,
96- "unknown permissions required for " +
97- "method" ,
97+ "unknown request" ,
9898 )
9999 })
100100 }
@@ -117,8 +117,7 @@ func remoteTestSuite(ctx context.Context, net *NetworkHarness, t *testing.T,
117117 ttt , cfg .LitAddr (), cfg .UIPassword ,
118118 endpoint .grpcWebURI , withoutUIPassword ,
119119 endpointEnabled ,
120- "unknown permissions required for " +
121- "method" ,
120+ "unknown request" , endpoint .noAuth ,
122121 )
123122 })
124123 }
@@ -142,12 +141,11 @@ func remoteTestSuite(ctx context.Context, net *NetworkHarness, t *testing.T,
142141 tt .Run (endpoint .name + " lit port" , func (ttt * testing.T ) {
143142 runGRPCAuthTest (
144143 ttt , cfg .LitAddr (), cfg .LitTLSCertPath ,
145- superMacFile ,
144+ superMacFile , endpoint . noAuth ,
146145 endpoint .requestFn ,
147146 endpoint .successPattern ,
148147 endpointEnabled ,
149- "unknown permissions required for " +
150- "method" ,
148+ "unknown request" ,
151149 )
152150 })
153151 }
@@ -168,7 +166,7 @@ func remoteTestSuite(ctx context.Context, net *NetworkHarness, t *testing.T,
168166 endpoint .restWebURI ,
169167 endpoint .successPattern ,
170168 endpoint .restPOST , withoutUIPassword ,
171- endpointDisabled ,
169+ endpointDisabled , endpoint . noAuth ,
172170 )
173171 })
174172 }
@@ -199,7 +197,7 @@ func remoteTestSuite(ctx context.Context, net *NetworkHarness, t *testing.T,
199197 endpoint .successPattern ,
200198 endpoint .allowedThroughLNC ,
201199 "unknown service" ,
202- endpointDisabled ,
200+ endpointDisabled , endpoint . noAuth ,
203201 )
204202 })
205203 }
@@ -244,7 +242,7 @@ func remoteTestSuite(ctx context.Context, net *NetworkHarness, t *testing.T,
244242 ttt , rawLNCConn , endpoint .requestFn ,
245243 endpoint .successPattern ,
246244 allowed , "permission denied" ,
247- endpointDisabled ,
245+ endpointDisabled , endpoint . noAuth ,
248246 )
249247 })
250248 }
0 commit comments