This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit dfd4353e119e5826d589852c7b1718b8fe0aa970
Author: Pranjul Kalsi <[email protected]>
AuthorDate: Sun Dec 14 15:54:20 2025 +0530

    fix(e2e): add first-readiness metric test with DeploymentTimestamp logic
---
 e2e/advanced/operator_metrics_test.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/e2e/advanced/operator_metrics_test.go 
b/e2e/advanced/operator_metrics_test.go
index 42a7b0357..e578dc53a 100644
--- a/e2e/advanced/operator_metrics_test.go
+++ b/e2e/advanced/operator_metrics_test.go
@@ -478,8 +478,11 @@ func TestMetrics(t *testing.T) {
                t.Run("Integration first readiness metric", func(t *testing.T) {
                        var ts1, ts2 time.Time
 
-                       // The start time is taken from the Integration status 
initialization timestamp
+                       // Use DeploymentTimestamp if available (for 
dry-build), else use InitializationTimestamp
                        ts1 = it.Status.InitializationTimestamp.Time
+                       if it.Status.DeploymentTimestamp != nil && 
!it.Status.DeploymentTimestamp.IsZero() {
+                               ts1 = it.Status.DeploymentTimestamp.Time
+                       }
                        g.Expect(ts1).NotTo(BeZero())
                        // The end time is reported into the ready condition 
first truthy time
                        ts2 = 
it.Status.GetCondition(v1.IntegrationConditionReady).FirstTruthyTime.Time

Reply via email to