-
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 <[email protected]>
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 <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
@@ -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 <[email protected]>
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 <[email protected]> * addressed PR comments Signed-off-by: ishitasequeira <[email protected]> * update summary Signed-off-by: ishitasequeira <[email protected]> * feat: move watch params to struct (#8819) * add to approvers Signed-off-by: pashavictorovich <[email protected]> * watch opts move to struct Signed-off-by: pashavictorovich <[email protected]> * watch opts move to struct Signed-off-by: pashavictorovich <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * Merge pull request from GHSA-2f5v-8r3f-8pww * fix: application resource APIs must enforce project restrictions Signed-off-by: Alexander Matyushentsev <[email protected]> * Fix unit tests Signed-off-by: jannfis <[email protected]> Co-authored-by: jannfis <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * chore: fix imports and unit tests (#8857) * chore: fix imports Signed-off-by: Michael Crenshaw <[email protected]> * chore: fix unit test Signed-off-by: Michael Crenshaw <[email protected]> * chore: keep changes minimal Signed-off-by: Michael Crenshaw <[email protected]> * chore: fix another test Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * feat: operation result and history table tests (#8887) * add to approvers Signed-off-by: pashavictorovich <[email protected]> * print tables additional tests Signed-off-by: pashavictorovich <[email protected]> * move to %q Signed-off-by: pashavictorovich <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * fix: corrected applicationset binary name in manifests (#8954) Signed-off-by: rishabh625 <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * Update proposed design to add 'ref' field instead of externalValuesField Signed-off-by: ishitasequeira <[email protected]> * remove unwanted changes from PR added while rebase Signed-off-by: ishitasequeira <[email protected]> Co-authored-by: pasha-codefresh <[email protected]> Co-authored-by: Alexander Matyushentsev <[email protected]> Co-authored-by: jannfis <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]> Co-authored-by: rishabh625 <[email protected]>
* proposal: support multiple sources for an Application Signed-off-by: ishitasequeira <[email protected]> * addressed PR comments Signed-off-by: ishitasequeira <[email protected]> * update summary Signed-off-by: ishitasequeira <[email protected]> * feat: move watch params to struct (argoproj#8819) * add to approvers Signed-off-by: pashavictorovich <[email protected]> * watch opts move to struct Signed-off-by: pashavictorovich <[email protected]> * watch opts move to struct Signed-off-by: pashavictorovich <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * Merge pull request from GHSA-2f5v-8r3f-8pww * fix: application resource APIs must enforce project restrictions Signed-off-by: Alexander Matyushentsev <[email protected]> * Fix unit tests Signed-off-by: jannfis <[email protected]> Co-authored-by: jannfis <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * chore: fix imports and unit tests (argoproj#8857) * chore: fix imports Signed-off-by: Michael Crenshaw <[email protected]> * chore: fix unit test Signed-off-by: Michael Crenshaw <[email protected]> * chore: keep changes minimal Signed-off-by: Michael Crenshaw <[email protected]> * chore: fix another test Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * feat: operation result and history table tests (argoproj#8887) * add to approvers Signed-off-by: pashavictorovich <[email protected]> * print tables additional tests Signed-off-by: pashavictorovich <[email protected]> * move to %q Signed-off-by: pashavictorovich <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * fix: corrected applicationset binary name in manifests (argoproj#8954) Signed-off-by: rishabh625 <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * Update proposed design to add 'ref' field instead of externalValuesField Signed-off-by: ishitasequeira <[email protected]> * remove unwanted changes from PR added while rebase Signed-off-by: ishitasequeira <[email protected]> Co-authored-by: pasha-codefresh <[email protected]> Co-authored-by: Alexander Matyushentsev <[email protected]> Co-authored-by: jannfis <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]> Co-authored-by: rishabh625 <[email protected]> Signed-off-by: asingh51 <[email protected]>
* chore: fix imports Signed-off-by: Michael Crenshaw <[email protected]> * chore: fix unit test Signed-off-by: Michael Crenshaw <[email protected]> * chore: keep changes minimal Signed-off-by: Michael Crenshaw <[email protected]> * chore: fix another test Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: wojtekidd <[email protected]>
* proposal: support multiple sources for an Application Signed-off-by: ishitasequeira <[email protected]> * addressed PR comments Signed-off-by: ishitasequeira <[email protected]> * update summary Signed-off-by: ishitasequeira <[email protected]> * feat: move watch params to struct (argoproj#8819) * add to approvers Signed-off-by: pashavictorovich <[email protected]> * watch opts move to struct Signed-off-by: pashavictorovich <[email protected]> * watch opts move to struct Signed-off-by: pashavictorovich <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * Merge pull request from GHSA-2f5v-8r3f-8pww * fix: application resource APIs must enforce project restrictions Signed-off-by: Alexander Matyushentsev <[email protected]> * Fix unit tests Signed-off-by: jannfis <[email protected]> Co-authored-by: jannfis <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * chore: fix imports and unit tests (argoproj#8857) * chore: fix imports Signed-off-by: Michael Crenshaw <[email protected]> * chore: fix unit test Signed-off-by: Michael Crenshaw <[email protected]> * chore: keep changes minimal Signed-off-by: Michael Crenshaw <[email protected]> * chore: fix another test Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * feat: operation result and history table tests (argoproj#8887) * add to approvers Signed-off-by: pashavictorovich <[email protected]> * print tables additional tests Signed-off-by: pashavictorovich <[email protected]> * move to %q Signed-off-by: pashavictorovich <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * fix: corrected applicationset binary name in manifests (argoproj#8954) Signed-off-by: rishabh625 <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * Update proposed design to add 'ref' field instead of externalValuesField Signed-off-by: ishitasequeira <[email protected]> * remove unwanted changes from PR added while rebase Signed-off-by: ishitasequeira <[email protected]> Co-authored-by: pasha-codefresh <[email protected]> Co-authored-by: Alexander Matyushentsev <[email protected]> Co-authored-by: jannfis <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]> Co-authored-by: rishabh625 <[email protected]> Signed-off-by: wojtekidd <[email protected]>
Signed-off-by: Michael Crenshaw [email protected]
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: