-
Notifications
You must be signed in to change notification settings - Fork 347
Add e2e ginkgo tests for extraCommandargs and Application Health Status #923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
test/openshift/e2e/ginkgo/parallel/1-115_validate_controller_extra_command_args_test.go
Outdated
Show resolved
Hide resolved
f1696c0 to
e585c73
Compare
e585c73 to
ef5ab29
Compare
|
/retest |
ef5ab29 to
da156d0
Compare
|
/retest |
1 similar comment
|
/retest |
...t/e2e/ginkgo/parallel/1-120_validate_resource_health_persisted_in_application_status_test.go
Outdated
Show resolved
Hide resolved
...t/e2e/ginkgo/parallel/1-120_validate_resource_health_persisted_in_application_status_test.go
Outdated
Show resolved
Hide resolved
...t/e2e/ginkgo/parallel/1-120_validate_resource_health_persisted_in_application_status_test.go
Outdated
Show resolved
Hide resolved
...t/e2e/ginkgo/parallel/1-120_validate_resource_health_persisted_in_application_status_test.go
Outdated
Show resolved
Hide resolved
...t/e2e/ginkgo/parallel/1-120_validate_resource_health_persisted_in_application_status_test.go
Outdated
Show resolved
Hide resolved
|
|
||
| // Expect default values to be replaced (old default 10 should not appear) | ||
| Consistently(func() bool { | ||
| cmd := appControllerSS.Spec.Template.Spec.Containers[0].Command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the top of this Consistently, you will need to call k8sClient.Get(ctx, (...), appControllerSS) to ensure you have the latest copy from K8s. Otherwise you are just comparing the same Go object over and over again (which is not useful)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have addressed this comment, i have added k8sClient.Get(ctx, (...), appControllerSS) above, https://github.com/redhat-developer/gitops-operator/pull/923/files#diff-4eeec8e6b675c5a0710f157abb0ba91787c32219b01be28922eb7f8d1d6a138cR104
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
test/openshift/e2e/ginkgo/parallel/1-115_validate_controller_extra_command_args_test.go
Show resolved
Hide resolved
|
|
||
| // But no duplicate --status-processors or --kubectl-parallelism-limit | ||
| Consistently(func() bool { | ||
| cmd := appControllerSS.Spec.Template.Spec.Containers[0].Command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, need to k8sClient.Get at top of func
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| // Eventually(appControllerSS).ShouldNot(statefulsetFixture.HaveContainerCommandSubstring("--status-processors 15", 0)) | ||
| // Check that both --metrics-application-labels flags are present | ||
| Eventually(func() bool { | ||
| cmd := appControllerSS.Spec.Template.Spec.Containers[0].Command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, need to k8sClient.Get at top
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
test/openshift/e2e/ginkgo/parallel/1-115_validate_controller_extra_command_args_test.go
Outdated
Show resolved
Hide resolved
5ebd2f4 to
9822507
Compare
|
/retest |
9822507 to
43c1e4d
Compare
|
/retest |
112e778 to
33347ac
Compare
|
/retest |
33347ac to
e424e31
Compare
|
/retest |
2 similar comments
|
/retest |
|
/retest |
e424e31 to
0e85a41
Compare
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
Some review comments are still unhandled, as of Sept 16 2025. |
Hi @jgwest I have addressed all the comments, I might have missed something, can you please point me out? |
Signed-off-by: Rizwana777 <[email protected]>
0e85a41 to
75b2eee
Compare
|
/retest |
jgwest
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @Rizwana777!
e2e test for argoproj-labs/argocd-operator#1763 and argoproj-labs/argocd-operator#1722
Will make few more changes if needed once this PR is merged