Skip to content

Commit 406cda9

Browse files
committed
fix comments
Signed-off-by: YaoZengzeng <[email protected]>
1 parent 38f97a1 commit 406cda9

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

test/e2e/baseline_test.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,8 @@ func TestBookinfo(t *testing.T) {
689689
})
690690
}
691691

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
698694
)
699695

700696
func TestAuthorizationL4(t *testing.T) {
@@ -736,15 +732,15 @@ func TestAuthorizationL4(t *testing.T) {
736732
switch action {
737733
case "allow":
738734
if ip != selectedAddress {
739-
return CheckDeny
735+
return CheckAuthDeny
740736
} else {
741737
return check.OK()
742738
}
743739
case "deny":
744740
if ip != selectedAddress {
745741
return check.OK()
746742
} else {
747-
return CheckDeny
743+
return CheckAuthDeny
748744
}
749745
default:
750746
t.Fatal("invalid action")

0 commit comments

Comments
 (0)