File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -689,12 +689,8 @@ func TestBookinfo(t *testing.T) {
689
689
})
690
690
}
691
691
692
- var CheckDeny = check .Or (
693
- check .ErrorContains ("rpc error: code = PermissionDenied" ), // gRPC
694
- check .ErrorContains ("EOF" ), // TCP envoy
695
- check .ErrorContains ("read: connection reset by peer" ), // TCP Kmesh
696
- check .NoErrorAndStatus (http .StatusForbidden ), // HTTP
697
- check .NoErrorAndStatus (http .StatusServiceUnavailable ), // HTTP client, TCP server
692
+ var CheckAuthDeny = check .Or (
693
+ check .ErrorContains ("read: connection reset by peer" ), // TCP Kmesh
698
694
)
699
695
700
696
func TestAuthorizationL4 (t * testing.T ) {
@@ -736,15 +732,15 @@ func TestAuthorizationL4(t *testing.T) {
736
732
switch action {
737
733
case "allow" :
738
734
if ip != selectedAddress {
739
- return CheckDeny
735
+ return CheckAuthDeny
740
736
} else {
741
737
return check .OK ()
742
738
}
743
739
case "deny" :
744
740
if ip != selectedAddress {
745
741
return check .OK ()
746
742
} else {
747
- return CheckDeny
743
+ return CheckAuthDeny
748
744
}
749
745
default :
750
746
t .Fatal ("invalid action" )
You can’t perform that action at this time.
0 commit comments