Skip to content
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

test: Add unittest for spec.controller.Env #1248

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

mehabhalodiya
Copy link
Contributor

What type of PR is this?
/kind code-refactoring

What does this PR do / why we need it:
We want to improve the coverage of our unit tests. This adds a new test for spec.controller.Env.

Which issue(s) this PR fixes:
Fixes: GITOPS-3220

Signed-off-by: mehabhalodiya <mehabhalodiya@gmail.com>
@mehabhalodiya mehabhalodiya force-pushed the env_unit_test branch 2 times, most recently from ef7e955 to 2752b66 Compare February 22, 2024 12:37
@mehabhalodiya
Copy link
Contributor Author

I have verified locally, that this test is passing:

=== RUN   TestReconcileArgoCD_reconcileApplicationController_withEnv
--- PASS: TestReconcileArgoCD_reconcileApplicationController_withEnv (0.00s)
PASS

@AdamSaleh can you please review this?

Signed-off-by: mehabhalodiya <mehabhalodiya@gmail.com>
Copy link
Collaborator

@svghadi svghadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @mehabhalodiya !!

@svghadi svghadi changed the title Add unittest for env test: Add unittest for spec.controller.Env Feb 22, 2024
@svghadi svghadi merged commit 4087e55 into argoproj-labs:master Feb 22, 2024
7 checks passed
Copy link
Contributor

@AdamSaleh AdamSaleh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@svghadi svghadi added the backport-to-redesign Changes which need to be backported to operator-redesign branch label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-redesign Changes which need to be backported to operator-redesign branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants