Files
kubesphere/pkg/controller/utils/servicemesh/application_test.go
zackzhangkai 676062d760 support virtualservice multi port
Signed-off-by: zackzhangkai <zhangkaiamm@gmail.com>
2021-03-11 11:12:51 +08:00

22 lines
451 B
Go

package servicemesh
import "testing"
func TestIsHTTP(t *testing.T) {
if !SupportHttpProtocol("gRPC") {
t.Errorf("gRPC is HTTP protocol")
}
if !SupportHttpProtocol("HTTP") {
t.Errorf("HTTP is HTTP protocol")
}
if !SupportHttpProtocol("HTTP2") {
t.Errorf("HTTP2 is HTTP protocol")
}
if SupportHttpProtocol("Mysql") {
t.Errorf("mysql is not HTTP protocol")
}
if SupportHttpProtocol("udp") {
t.Errorf("UDP is not HTTP protocol")
}
}