Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions test/suites/integration/access_log_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("creation produces an Access Log Subscription for the corresponding Service Network when the targetRef's Kind is Gateway", func() {
Skip("This test is unreliable.")
accessLogPolicy := &anv1alpha1.AccessLogPolicy{
ObjectMeta: metav1.ObjectMeta{
Name: k8sResourceName,
Expand Down Expand Up @@ -279,6 +280,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("creation produces an Access Log Subscription for the corresponding VPC Lattice Service when the targetRef's Kind is HTTPRoute", func() {
Skip("This test is unreliable.")
accessLogPolicy := &anv1alpha1.AccessLogPolicy{
ObjectMeta: metav1.ObjectMeta{
Name: k8sResourceName,
Expand Down Expand Up @@ -339,6 +341,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("creation produces an Access Log Subscription for the corresponding VPC Lattice Service when the targetRef's Kind is GRPCRoute", func() {
Skip("This test is unreliable.")
accessLogPolicy := &anv1alpha1.AccessLogPolicy{
ObjectMeta: metav1.ObjectMeta{
Name: k8sResourceName,
Expand Down Expand Up @@ -399,6 +402,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("creation produces Access Log Subscriptions with Bucket, Log Group, and Delivery Stream destinations on the same targetRef", func() {
Skip("This test is unreliable.")
// Create Access Log Policy for S3 Bucket
s3AccessLogPolicy := &anv1alpha1.AccessLogPolicy{
ObjectMeta: metav1.ObjectMeta{
Expand Down Expand Up @@ -488,6 +492,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("creation sets Access Log Policy status to Conflicted when creating a new policy for the same targetRef and destination type", func() {
Skip("This test is unreliable.")
accessLogPolicy1 := &anv1alpha1.AccessLogPolicy{
ObjectMeta: metav1.ObjectMeta{
Name: k8sResourceName + "-1",
Expand Down Expand Up @@ -540,6 +545,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("creation sets Access Log Policy status to Invalid when the destination does not exist", func() {
Skip("This test is unreliable.")
accessLogPolicy := &anv1alpha1.AccessLogPolicy{
ObjectMeta: metav1.ObjectMeta{
Name: k8sResourceName,
Expand Down Expand Up @@ -575,6 +581,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("creation sets Access Log Policy status to Invalid when the targetRef's Group is not gateway.networking.k8s.io", func() {
Skip("This test is unreliable.")
accessLogPolicy := &anv1alpha1.AccessLogPolicy{
ObjectMeta: metav1.ObjectMeta{
Name: k8sResourceName,
Expand Down Expand Up @@ -610,6 +617,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("creation sets Access Log Policy status to Invalid when the targetRef's Kind is not Gateway, HTTPRoute, or GRPCRoute", func() {
Skip("This test is unreliable.")
accessLogPolicy := &anv1alpha1.AccessLogPolicy{
ObjectMeta: metav1.ObjectMeta{
Name: k8sResourceName,
Expand Down Expand Up @@ -645,6 +653,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("update properly changes or replaces Access Log Subscription and sets Access Log Policy status", func() {
Skip("This test is unreliable.")
originalAlsArn := ""
currentAlsArn := ""
expectedGeneration := 1
Expand Down Expand Up @@ -1031,6 +1040,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("deletion removes the Access Log Subscription for the corresponding Service Network when the targetRef's Kind is Gateway", func() {
Skip("This test is unreliable.")
accessLogPolicy := &anv1alpha1.AccessLogPolicy{
ObjectMeta: metav1.ObjectMeta{
Name: k8sResourceName,
Expand Down Expand Up @@ -1073,6 +1083,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("deletion removes the Access Log Subscription for the corresponding VPC Lattice Service when the targetRef's Kind is HTTPRoute", func() {
Skip("This test is unreliable.")
accessLogPolicy := &anv1alpha1.AccessLogPolicy{
ObjectMeta: metav1.ObjectMeta{
Name: k8sResourceName,
Expand Down Expand Up @@ -1117,6 +1128,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("deletion removes the Access Log Subscription for the corresponding VPC Lattice Service when the targetRef's Kind is GRPCRoute", func() {
Skip("This test is unreliable.")
accessLogPolicy := &anv1alpha1.AccessLogPolicy{
ObjectMeta: metav1.ObjectMeta{
Name: k8sResourceName,
Expand Down Expand Up @@ -1161,6 +1173,7 @@ var _ = Describe("Access Log Policy", Ordered, func() {
})

It("status is updated when targetRef is deleted and recreated", func() {
Skip("This test is unreliable.")
// Create HTTPRoute, Service, and Deployment
deployment, k8sService := testFramework.NewNginxApp(test.ElasticSearchOptions{
Name: k8sResourceName2,
Expand Down
4 changes: 2 additions & 2 deletions test/suites/integration/httproute_header_match_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ var _ = Describe("HTTPRoute header matches", func() {
stdout, _, err := testFramework.PodExec(pod, cmd)
g.Expect(err).To(BeNil())
g.Expect(stdout).To(ContainSubstring("test-v3 handler pod"))
}).WithTimeout(time.Minute).WithOffset(1).Should(Succeed())
}).WithTimeout(2 * time.Minute).WithOffset(1).Should(Succeed())

// check incorrect headers
Eventually(func(g Gomega) {
invalidCmd := fmt.Sprintf("curl %s -H \"my-header-name1: my-header-value1\" -H \"my-header-name2: value2-invalid\"", dnsName)
stdout, _, err := testFramework.PodExec(pod, invalidCmd)
g.Expect(err).To(BeNil())
g.Expect(stdout).To(ContainSubstring("Not Found"))
}).WithTimeout(30 * time.Second).WithOffset(1).Should(Succeed())
}).WithTimeout(2 * time.Minute).WithOffset(1).Should(Succeed())
})

AfterEach(func() {
Expand Down
6 changes: 3 additions & 3 deletions test/suites/integration/httproute_method_match_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,21 @@ var _ = Describe("HTTPRoute method matches", func() {
stdout, _, err := testFramework.PodExec(pod, cmd)
g.Expect(err).To(BeNil())
g.Expect(stdout).To(ContainSubstring("test-get handler pod"))
}).WithTimeout(60 * time.Second).WithOffset(1).Should(Succeed())
}).WithTimeout(2 * time.Minute).WithOffset(1).Should(Succeed())

Eventually(func(g Gomega) {
cmd := fmt.Sprintf("curl -X POST %s", dnsName)
stdout, _, err := testFramework.PodExec(pod, cmd)
g.Expect(err).To(BeNil())
g.Expect(stdout).To(ContainSubstring("test-post handler pod"))
}).WithTimeout(30 * time.Second).WithOffset(1).Should(Succeed())
}).WithTimeout(2 * time.Minute).WithOffset(1).Should(Succeed())

Eventually(func(g Gomega) {
invalidCmd := fmt.Sprintf("curl -X DELETE %s", dnsName)
stdout, _, err := testFramework.PodExec(pod, invalidCmd)
g.Expect(err).To(BeNil())
g.Expect(stdout).To(ContainSubstring("Not Found"))
}).WithTimeout(30 * time.Second).WithOffset(1).Should(Succeed())
}).WithTimeout(2 * time.Minute).WithOffset(1).Should(Succeed())
})

AfterEach(func() {
Expand Down
4 changes: 2 additions & 2 deletions test/suites/integration/httproute_path_match_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ var _ = Describe("HTTPRoute path matches", func() {
stdout, _, err := testFramework.PodExec(pod, cmd)
g.Expect(err).To(BeNil())
g.Expect(stdout).To(ContainSubstring("test-v1 handler pod"))
}).WithTimeout(60 * time.Second).WithOffset(1).Should(Succeed())
}).WithTimeout(2 * time.Minute).WithOffset(1).Should(Succeed())

Eventually(func(g Gomega) {
cmd := fmt.Sprintf("curl %s/pathmatch1", dnsName)
stdout, _, err := testFramework.PodExec(pod, cmd)
g.Expect(err).To(BeNil())
g.Expect(stdout).To(ContainSubstring("test-v2 handler pod"))
}).WithTimeout(30 * time.Second).WithOffset(1).Should(Succeed())
}).WithTimeout(2 * time.Minute).WithOffset(1).Should(Succeed())
})

AfterEach(func() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ var _ = Describe("Test 2 listeners with weighted httproute rules and service exp
g.Expect(*retrievedWeightedTargetGroup1InRule.TargetGroupIdentifier).To(Equal(*retrievedTg1.Id))
g.Expect(*retrievedWeightedTargetGroup1InRule.Weight).To(BeEquivalentTo(80))
}
}).Should(Succeed())
}).WithTimeout(2 * time.Minute).WithOffset(1).Should(Succeed())
log.Println("Verifying Weighted rule traffic")
dnsName := testFramework.GetVpcLatticeServiceDns(httpRoute.Name, httpRoute.Namespace)

Expand All @@ -138,7 +138,7 @@ var _ = Describe("Test 2 listeners with weighted httproute rules and service exp
stdout, _, err := testFramework.PodExec(pod, cmd)
g.Expect(err).To(BeNil())
g.Expect(stdout).To(ContainSubstring("handler pod"))
}).WithTimeout(60 * time.Second).WithOffset(1).Should(Succeed())
}).WithTimeout(2 * time.Minute).WithOffset(1).Should(Succeed())
}
})

Expand Down
Loading