6767 Context ("Ingress TLS" , func () {
6868 It ("Check if SSL resource was created" , func () {
6969 By ("create GatewayProxy" )
70- gatewayProxy := fmt .Sprintf (gatewayProxyYaml , framework . DashboardTLSEndpoint , s .AdminKey ())
70+ gatewayProxy := fmt .Sprintf (gatewayProxyYaml , s . Deployer . GetAdminEndpoint () , s .AdminKey ())
7171
7272 By ("create GatewayProxy" )
7373 err := s .CreateResourceFromStringWithNamespace (gatewayProxy , "default" )
@@ -202,7 +202,7 @@ spec:
202202
203203 It ("Test IngressClass Selection" , func () {
204204 By ("create GatewayProxy" )
205- gatewayProxy := fmt .Sprintf (gatewayProxyYaml , framework . DashboardTLSEndpoint , s .AdminKey ())
205+ gatewayProxy := fmt .Sprintf (gatewayProxyYaml , s . Deployer . GetAdminEndpoint () , s .AdminKey ())
206206 err := s .CreateResourceFromStringWithNamespace (gatewayProxy , "default" )
207207 Expect (err ).NotTo (HaveOccurred (), "creating GatewayProxy" )
208208 time .Sleep (5 * time .Second )
@@ -227,7 +227,7 @@ spec:
227227
228228 It ("Proxy External Service" , func () {
229229 By ("create GatewayProxy" )
230- gatewayProxy := fmt .Sprintf (gatewayProxyYaml , framework . DashboardTLSEndpoint , s .AdminKey ())
230+ gatewayProxy := fmt .Sprintf (gatewayProxyYaml , s . Deployer . GetAdminEndpoint () , s .AdminKey ())
231231 err := s .CreateResourceFromStringWithNamespace (gatewayProxy , "default" )
232232 Expect (err ).NotTo (HaveOccurred (), "creating GatewayProxy" )
233233 time .Sleep (5 * time .Second )
@@ -252,7 +252,7 @@ spec:
252252
253253 It ("Delete Ingress during restart" , func () {
254254 By ("create GatewayProxy" )
255- gatewayProxy := fmt .Sprintf (gatewayProxyYaml , framework . DashboardTLSEndpoint , s .AdminKey ())
255+ gatewayProxy := fmt .Sprintf (gatewayProxyYaml , s . Deployer . GetAdminEndpoint () , s .AdminKey ())
256256 err := s .CreateResourceFromStringWithNamespace (gatewayProxy , "default" )
257257 Expect (err ).NotTo (HaveOccurred (), "creating GatewayProxy" )
258258 time .Sleep (5 * time .Second )
@@ -434,7 +434,7 @@ spec:
434434
435435 It ("Test IngressClass with GatewayProxy" , func () {
436436 By ("create GatewayProxy" )
437- gatewayProxy := fmt .Sprintf (gatewayProxyYaml , framework . DashboardTLSEndpoint , s .AdminKey ())
437+ gatewayProxy := fmt .Sprintf (gatewayProxyYaml , s . Deployer . GetAdminEndpoint () , s .AdminKey ())
438438
439439 By ("create GatewayProxy" )
440440 err := s .CreateResourceFromStringWithNamespace (gatewayProxy , "default" )
@@ -477,7 +477,7 @@ stringData:
477477 time .Sleep (5 * time .Second )
478478
479479 By ("create GatewayProxy with Secret reference" )
480- gatewayProxy := fmt .Sprintf (gatewayProxyWithSecretYaml , framework . DashboardTLSEndpoint )
480+ gatewayProxy := fmt .Sprintf (gatewayProxyWithSecretYaml , s . Deployer . GetAdminEndpoint () )
481481 err = s .CreateResourceFromStringWithNamespace (gatewayProxy , "default" )
482482 Expect (err ).NotTo (HaveOccurred (), "creating GatewayProxy with Secret" )
483483 time .Sleep (5 * time .Second )
@@ -520,7 +520,7 @@ spec:
520520 type: AdminKey
521521 adminKey:
522522 value: "%s"
523- ` , framework . DashboardTLSEndpoint , s .AdminKey ())
523+ ` , s . Deployer . GetAdminEndpoint () , s .AdminKey ())
524524 }
525525
526526 const ingressClassSpec = `
@@ -806,7 +806,7 @@ spec:
806806
807807 BeforeEach (func () {
808808 By ("create GatewayProxy" )
809- gatewayProxy := fmt .Sprintf (gatewayProxyYaml , framework . DashboardTLSEndpoint , s .AdminKey ())
809+ gatewayProxy := fmt .Sprintf (gatewayProxyYaml , s . Deployer . GetAdminEndpoint () , s .AdminKey ())
810810 err := s .CreateResourceFromStringWithNamespace (gatewayProxy , "default" )
811811 Expect (err ).NotTo (HaveOccurred (), "creating GatewayProxy" )
812812 time .Sleep (5 * time .Second )
@@ -848,7 +848,7 @@ spec:
848848 Expect (exists ).To (BeTrue (), "additional gateway group should exist" )
849849
850850 By ("update GatewayProxy with new admin key" )
851- updatedProxy := fmt .Sprintf (updatedGatewayProxy , framework . DashboardTLSEndpoint , resources .AdminAPIKey )
851+ updatedProxy := fmt .Sprintf (updatedGatewayProxy , s . Deployer . GetAdminEndpoint ( resources . DataplaneService ) , resources .AdminAPIKey )
852852 err = s .CreateResourceFromStringWithNamespace (updatedProxy , "default" )
853853 Expect (err ).NotTo (HaveOccurred (), "updating GatewayProxy" )
854854 time .Sleep (5 * time .Second )
@@ -940,7 +940,7 @@ spec:
940940 Expect (err ).NotTo (HaveOccurred (), "creating secret" )
941941
942942 By ("create GatewayProxy" )
943- err = s .CreateResourceFromStringWithNamespace (fmt .Sprintf (gatewayProxySpec , framework . DashboardTLSEndpoint ), s .Namespace ())
943+ err = s .CreateResourceFromStringWithNamespace (fmt .Sprintf (gatewayProxySpec , s . Deployer . GetAdminEndpoint () ), s .Namespace ())
944944 Expect (err ).NotTo (HaveOccurred (), "creating gateway proxy" )
945945
946946 By ("create IngressClass" )
0 commit comments