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

Fixes watch unit #2367

Merged

Conversation

mik-dass
Copy link
Contributor

@mik-dass mik-dass commented Nov 6, 2019

What kind of PR is this?

/kind bug

What does does this PR do / why we need it:

Fixes the watch unit test and adds more

Which issue(s) this PR fixes:

Fixes #2365

How to test changes / Special notes to the reviewer:

run make test and check if it passes

@openshift-ci-robot openshift-ci-robot added kind/bug Categorizes issue or PR as related to a bug. size/S labels Nov 6, 2019
@mik-dass mik-dass changed the title Fixes watch unit [WIP] Fixes watch unit Nov 6, 2019
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Nov 6, 2019
@openshift-ci-robot openshift-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. size/L and removed size/M labels Nov 8, 2019
@mik-dass mik-dass changed the title [WIP] Fixes watch unit Fixes watch unit Nov 8, 2019
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Nov 8, 2019
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Nov 12, 2019
@mik-dass mik-dass force-pushed the fix_watch_unit branch 2 times, most recently from 5032dc8 to fe267b4 Compare November 18, 2019 07:43
@mik-dass mik-dass force-pushed the fix_watch_unit branch 3 times, most recently from 99b71ad to ad82fc0 Compare November 18, 2019 17:25
@amitkrout
Copy link
Contributor

As of now it looks good to me. Recently @dharmit and @girishramnani has spent good amount of time on researching UTs cases. So i would recommend atleast anyone of them to have a look into it.

/kind bug

What does does this PR do / why we need it:

Fixes the watch unit test and adds more

Which issue(s) this PR fixes:

Fixes redhat-developer#2365

How to test changes / Special notes to the reviewer:

run make test and check if it passes

Signed-off-by: mik-dass <mrinald7@gmail.com>
fmt.Printf("some of the push parameters are different, wanted: %v, got: %v", mockPush, []string{
componentName, applicationName, "isPushForce:" + strconv.FormatBool(isPushForce), "show:" + strconv.FormatBool(show),
})
os.Exit(1)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this return error, rather than calling Exit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we are ignoring the error later on in the code, so the test passes if I don't exit

Copy link
Member

@cdrage cdrage left a comment

Choose a reason for hiding this comment

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

Went through the code, honestly, no changes I propose.

/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Dec 10, 2019
@cdrage cdrage added approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. and removed lgtm Indicates that a PR is ready to be merged. Required by Prow. labels Dec 10, 2019
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cdrage

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kadel
Copy link
Member

kadel commented Dec 11, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Dec 11, 2019
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@mik-dass
Copy link
Contributor Author

Container setup exited with code 1, reason Error

/retest

@openshift-merge-robot openshift-merge-robot merged commit 3d33a14 into redhat-developer:master Dec 12, 2019
@mik-dass mik-dass deleted the fix_watch_unit branch December 12, 2019 10:49
@rm3l rm3l added the estimated-size/XL (40-60) Rough sizing for Epics. About 3 sprints of work for a person label Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. estimated-size/XL (40-60) Rough sizing for Epics. About 3 sprints of work for a person kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix watch unit test
8 participants