-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
chore: fix imports and unit tests #8857
Conversation
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Thank you! |
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
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
@@ -266,7 +266,7 @@ func TestSetHealth(t *testing.T) { | |||
app := newFakeApp() | |||
deployment := kube.MustToUnstructured(&v1.Deployment{ | |||
TypeMeta: metav1.TypeMeta{ | |||
APIVersion: "apps/v1beta1", | |||
APIVersion: "apps/v1", |
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.
idk why this fixes the test, and it worries me a little bit.
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 found it by inspecting compRes
and noticed the sync status said something about "invalid GVK".
@@ -289,7 +289,7 @@ func TestSetHealth(t *testing.T) { | |||
|
|||
compRes := ctrl.appStateManager.CompareAppState(app, &defaultProj, "", app.Spec.Source, false, false, nil) | |||
|
|||
assert.Equal(t, compRes.healthStatus.Status, health.HealthStatusHealthy) | |||
assert.Equal(t, health.HealthStatusHealthy, compRes.healthStatus.Status) |
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.
Order was wrong. It should be expected, actual
.
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
Codecov Report
@@ Coverage Diff @@
## master #8857 +/- ##
==========================================
- Coverage 42.87% 42.85% -0.03%
==========================================
Files 186 186
Lines 23335 23359 +24
==========================================
+ Hits 10006 10011 +5
- Misses 11898 11914 +16
- Partials 1431 1434 +3
Continue to review full report at Codecov.
|
* proposal: support multiple sources for an Application Signed-off-by: ishitasequeira <isequeir@redhat.com> * addressed PR comments Signed-off-by: ishitasequeira <isequeir@redhat.com> * update summary Signed-off-by: ishitasequeira <isequeir@redhat.com> * feat: move watch params to struct (#8819) * add to approvers Signed-off-by: pashavictorovich <pavel@codefresh.io> * watch opts move to struct Signed-off-by: pashavictorovich <pavel@codefresh.io> * watch opts move to struct Signed-off-by: pashavictorovich <pavel@codefresh.io> Signed-off-by: ishitasequeira <isequeir@redhat.com> * Merge pull request from GHSA-2f5v-8r3f-8pww * fix: application resource APIs must enforce project restrictions Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> * Fix unit tests Signed-off-by: jannfis <jann@mistrust.net> Co-authored-by: jannfis <jann@mistrust.net> Signed-off-by: ishitasequeira <isequeir@redhat.com> * chore: fix imports and unit tests (#8857) * chore: fix imports Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * chore: fix unit test Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * chore: keep changes minimal Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * chore: fix another test Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> Signed-off-by: ishitasequeira <isequeir@redhat.com> * feat: operation result and history table tests (#8887) * add to approvers Signed-off-by: pashavictorovich <pavel@codefresh.io> * print tables additional tests Signed-off-by: pashavictorovich <pavel@codefresh.io> * move to %q Signed-off-by: pashavictorovich <pavel@codefresh.io> Signed-off-by: ishitasequeira <isequeir@redhat.com> * fix: corrected applicationset binary name in manifests (#8954) Signed-off-by: rishabh625 <rishabhmishra625@gmail.com> Signed-off-by: ishitasequeira <isequeir@redhat.com> * Update proposed design to add 'ref' field instead of externalValuesField Signed-off-by: ishitasequeira <isequeir@redhat.com> * remove unwanted changes from PR added while rebase Signed-off-by: ishitasequeira <isequeir@redhat.com> Co-authored-by: pasha-codefresh <pavel@codefresh.io> Co-authored-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> Co-authored-by: jannfis <jann@mistrust.net> Co-authored-by: Michael Crenshaw <michael@crenshaw.dev> Co-authored-by: rishabh625 <43094970+rishabh625@users.noreply.github.com>
* proposal: support multiple sources for an Application Signed-off-by: ishitasequeira <isequeir@redhat.com> * addressed PR comments Signed-off-by: ishitasequeira <isequeir@redhat.com> * update summary Signed-off-by: ishitasequeira <isequeir@redhat.com> * feat: move watch params to struct (argoproj#8819) * add to approvers Signed-off-by: pashavictorovich <pavel@codefresh.io> * watch opts move to struct Signed-off-by: pashavictorovich <pavel@codefresh.io> * watch opts move to struct Signed-off-by: pashavictorovich <pavel@codefresh.io> Signed-off-by: ishitasequeira <isequeir@redhat.com> * Merge pull request from GHSA-2f5v-8r3f-8pww * fix: application resource APIs must enforce project restrictions Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> * Fix unit tests Signed-off-by: jannfis <jann@mistrust.net> Co-authored-by: jannfis <jann@mistrust.net> Signed-off-by: ishitasequeira <isequeir@redhat.com> * chore: fix imports and unit tests (argoproj#8857) * chore: fix imports Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * chore: fix unit test Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * chore: keep changes minimal Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * chore: fix another test Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> Signed-off-by: ishitasequeira <isequeir@redhat.com> * feat: operation result and history table tests (argoproj#8887) * add to approvers Signed-off-by: pashavictorovich <pavel@codefresh.io> * print tables additional tests Signed-off-by: pashavictorovich <pavel@codefresh.io> * move to %q Signed-off-by: pashavictorovich <pavel@codefresh.io> Signed-off-by: ishitasequeira <isequeir@redhat.com> * fix: corrected applicationset binary name in manifests (argoproj#8954) Signed-off-by: rishabh625 <rishabhmishra625@gmail.com> Signed-off-by: ishitasequeira <isequeir@redhat.com> * Update proposed design to add 'ref' field instead of externalValuesField Signed-off-by: ishitasequeira <isequeir@redhat.com> * remove unwanted changes from PR added while rebase Signed-off-by: ishitasequeira <isequeir@redhat.com> Co-authored-by: pasha-codefresh <pavel@codefresh.io> Co-authored-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> Co-authored-by: jannfis <jann@mistrust.net> Co-authored-by: Michael Crenshaw <michael@crenshaw.dev> Co-authored-by: rishabh625 <43094970+rishabh625@users.noreply.github.com> Signed-off-by: asingh51 <Ashutosh_Singh@intuit.com>
* chore: fix imports Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * chore: fix unit test Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * chore: keep changes minimal Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * chore: fix another test Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> Signed-off-by: wojtekidd <wojtek.cichon@protonmail.com>
* proposal: support multiple sources for an Application Signed-off-by: ishitasequeira <isequeir@redhat.com> * addressed PR comments Signed-off-by: ishitasequeira <isequeir@redhat.com> * update summary Signed-off-by: ishitasequeira <isequeir@redhat.com> * feat: move watch params to struct (argoproj#8819) * add to approvers Signed-off-by: pashavictorovich <pavel@codefresh.io> * watch opts move to struct Signed-off-by: pashavictorovich <pavel@codefresh.io> * watch opts move to struct Signed-off-by: pashavictorovich <pavel@codefresh.io> Signed-off-by: ishitasequeira <isequeir@redhat.com> * Merge pull request from GHSA-2f5v-8r3f-8pww * fix: application resource APIs must enforce project restrictions Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> * Fix unit tests Signed-off-by: jannfis <jann@mistrust.net> Co-authored-by: jannfis <jann@mistrust.net> Signed-off-by: ishitasequeira <isequeir@redhat.com> * chore: fix imports and unit tests (argoproj#8857) * chore: fix imports Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * chore: fix unit test Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * chore: keep changes minimal Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * chore: fix another test Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> Signed-off-by: ishitasequeira <isequeir@redhat.com> * feat: operation result and history table tests (argoproj#8887) * add to approvers Signed-off-by: pashavictorovich <pavel@codefresh.io> * print tables additional tests Signed-off-by: pashavictorovich <pavel@codefresh.io> * move to %q Signed-off-by: pashavictorovich <pavel@codefresh.io> Signed-off-by: ishitasequeira <isequeir@redhat.com> * fix: corrected applicationset binary name in manifests (argoproj#8954) Signed-off-by: rishabh625 <rishabhmishra625@gmail.com> Signed-off-by: ishitasequeira <isequeir@redhat.com> * Update proposed design to add 'ref' field instead of externalValuesField Signed-off-by: ishitasequeira <isequeir@redhat.com> * remove unwanted changes from PR added while rebase Signed-off-by: ishitasequeira <isequeir@redhat.com> Co-authored-by: pasha-codefresh <pavel@codefresh.io> Co-authored-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> Co-authored-by: jannfis <jann@mistrust.net> Co-authored-by: Michael Crenshaw <michael@crenshaw.dev> Co-authored-by: rishabh625 <43094970+rishabh625@users.noreply.github.com> Signed-off-by: wojtekidd <wojtek.cichon@protonmail.com>
Signed-off-by: Michael Crenshaw michael@crenshaw.dev
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: