@@ -2,17 +2,19 @@ package integration
22
33import (
44 "fmt"
5- "github.com/aws/aws-application-networking-k8s/pkg/latticestore"
6- "github.com/aws/aws-application-networking-k8s/test/pkg/test"
7- "github.com/aws/aws-sdk-go/service/vpclattice"
5+ "log"
6+ "os"
7+ "time"
8+
89 . "github.com/onsi/ginkgo/v2"
910 . "github.com/onsi/gomega"
1011 "github.com/samber/lo"
1112 "k8s.io/apimachinery/pkg/types"
12- "log"
13- "os"
1413 "sigs.k8s.io/controller-runtime/pkg/client"
15- "time"
14+
15+ "github.com/aws/aws-application-networking-k8s/pkg/latticestore"
16+ "github.com/aws/aws-application-networking-k8s/test/pkg/test"
17+ "github.com/aws/aws-sdk-go/service/vpclattice"
1618)
1719
1820const (
@@ -21,11 +23,11 @@ const (
2123
2224var _ = Describe ("HTTPRoute path matches" , func () {
2325 It ("HTTPRoute should support multiple path matches" , func () {
24- gateway := testFramework .NewGateway ("" ,k8snamespace )
26+ gateway := testFramework .NewGateway ("" , k8snamespace )
2527 deployment1 , service1 := testFramework .NewHttpApp (test.HTTPAppOptions {Name : "test-v1" , Namespace : k8snamespace })
2628 deployment2 , service2 := testFramework .NewHttpApp (test.HTTPAppOptions {Name : "test-v2" , Namespace : k8snamespace })
2729 pathMatchHttpRoute := testFramework .NewPathMatchHttpRoute (gateway , []client.Object {service1 , service2 }, "http" ,
28- "" , k8snamespace )
30+ "" , k8snamespace )
2931
3032 // Create Kubernetes API Objects
3133 testFramework .ExpectCreated (ctx ,
@@ -46,7 +48,7 @@ var _ = Describe("HTTPRoute path matches", func() {
4648 Expect (* targetGroupV1 .VpcIdentifier ).To (Equal (os .Getenv ("CLUSTER_VPC_ID" )))
4749 Expect (* targetGroupV1 .Protocol ).To (Equal ("HTTP" ))
4850 targetsV1 := testFramework .GetTargets (ctx , targetGroupV1 , deployment1 )
49- Expect (* targetGroupV1 .Port ).To (BeEquivalentTo (service1 . Spec . Ports [ 0 ]. TargetPort . IntVal ))
51+ Expect (* targetGroupV1 .Port ).To (BeEquivalentTo (80 ))
5052 for _ , target := range targetsV1 {
5153 Expect (* target .Port ).To (BeEquivalentTo (service1 .Spec .Ports [0 ].TargetPort .IntVal ))
5254 Expect (* target .Status ).To (Or (
@@ -59,7 +61,7 @@ var _ = Describe("HTTPRoute path matches", func() {
5961 Expect (* targetGroupV2 .VpcIdentifier ).To (Equal (os .Getenv ("CLUSTER_VPC_ID" )))
6062 Expect (* targetGroupV2 .Protocol ).To (Equal ("HTTP" ))
6163 targetsV2 := testFramework .GetTargets (ctx , targetGroupV2 , deployment2 )
62- Expect (* targetGroupV2 .Port ).To (BeEquivalentTo (service2 . Spec . Ports [ 0 ]. TargetPort . IntVal ))
64+ Expect (* targetGroupV2 .Port ).To (BeEquivalentTo (80 ))
6365 for _ , target := range targetsV2 {
6466 Expect (* target .Port ).To (BeEquivalentTo (service2 .Spec .Ports [0 ].TargetPort .IntVal ))
6567 Expect (* target .Status ).To (Or (
0 commit comments