From 652832a9eebaf337ac72d7fd2717042e5812a1a0 Mon Sep 17 00:00:00 2001 From: Mateusz Hawrus Date: Wed, 5 Feb 2025 16:04:52 +0100 Subject: [PATCH] add created by to tests --- tests/v1alpha_annotation_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/v1alpha_annotation_test.go b/tests/v1alpha_annotation_test.go index fbc8cc97..27153128 100644 --- a/tests/v1alpha_annotation_test.go +++ b/tests/v1alpha_annotation_test.go @@ -194,5 +194,7 @@ func assertV1alphaAnnotationsAreEqual(t *testing.T, expected, actual v1alphaAnno assert.False(t, actual.Status.IsSystem) } actual.Status = nil + assert.Regexp(t, userIDRegexp, actual.Spec.CreatedBy) + actual.Spec.CreatedBy = "" assert.Equal(t, expected, actual) }