@@ -68,23 +68,14 @@ spec:
6868
6969 BeforeEach (func () {
7070 // Create GatewayProxy
71- Expect (s .CreateResourceFromString (s .GetGatewayProxySpec ())).
72- NotTo (HaveOccurred (), "creating GatewayProxy" )
71+ Expect (s .CreateResourceFromString (s .GetGatewayProxySpec ())).NotTo (HaveOccurred (), "creating GatewayProxy" )
7372
7473 // Create GatewayClass
75- gatewayClassName := s .Namespace ()
76- Expect (s .CreateResourceFromString (s .GetGatewayClassYaml ())).
77- NotTo (HaveOccurred (), "creating GatewayClass" )
78- gcyaml , _ := s .GetResourceYaml ("GatewayClass" , gatewayClassName )
79- s .ResourceApplied ("GatewayClass" , gatewayClassName , gcyaml , 1 )
74+ Expect (s .CreateResourceFromString (s .GetGatewayClassYaml ())).NotTo (HaveOccurred (), "creating GatewayClass" )
8075
8176 // Create Gateway with TCP listener
82- gatewayName := s .Namespace ()
83- Expect (s .CreateResourceFromString (fmt .Sprintf (tcpGateway , gatewayName , gatewayClassName ))).
77+ Expect (s .CreateResourceFromString (fmt .Sprintf (tcpGateway , s .Namespace (), s .Namespace ()))).
8478 NotTo (HaveOccurred (), "creating Gateway" )
85-
86- gwyaml , _ := s .GetResourceYaml ("Gateway" , gatewayName )
87- s .ResourceApplied ("Gateway" , gatewayName , gwyaml , 1 )
8879 })
8980
9081 It ("should route TCP traffic to backend service" , func () {
0 commit comments