Update tap integration test to account for always-on mTLS (#2589)

Out of all the integration tests (egress, get, stat, tap and
install_test) only in stat and tap do meshed (proxy-to-proxy) connections take
place, which we can test are 100% TLS.

For stat, #2537 already added such check for connections with the
Prometheus pod (connections to other pods are not meshed, apparently).

This commit adds such check for tap.

Fixes #2519
This commit is contained in:
Alejandro Pedraza 2019-03-29 12:28:47 -05:00 committed by GitHub
parent 655632191b
commit e711ab7b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,7 @@ type tapEvent struct {
path string
httpStatus string
grpcStatus string
tls string
lineCount int
}
@ -37,6 +38,7 @@ var (
path: "/buoyantio.bb.TheService/theFunction",
httpStatus: "200",
grpcStatus: "OK",
tls: "true",
lineCount: 3,
}
@ -46,6 +48,7 @@ var (
path: "/buoyantio.bb.TheService/theFunction",
httpStatus: "200",
grpcStatus: "Unknown",
tls: "true",
lineCount: 3,
}
@ -55,6 +58,7 @@ var (
path: "/",
httpStatus: "200",
grpcStatus: "",
tls: "true",
lineCount: 3,
}
@ -64,6 +68,7 @@ var (
path: "/",
httpStatus: "500",
grpcStatus: "",
tls: "true",
lineCount: 3,
}
)
@ -191,6 +196,7 @@ func tap(target string, arg ...string) ([]*tapEvent, error) {
tapEventByID[fields["id"]] = obj
}
obj.lineCount++
obj.tls = fields["tls"]
switch fields["type"] {
case "req":