-
Notifications
You must be signed in to change notification settings - Fork 919
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
[E2E] add test case for resource interpreter customization #2839
Conversation
0f5640d
to
d65220c
Compare
Codecov Report
@@ Coverage Diff @@
## master #2839 +/- ##
==========================================
+ Coverage 37.89% 37.94% +0.05%
==========================================
Files 190 190
Lines 17681 17706 +25
==========================================
+ Hits 6700 6719 +19
- Misses 10574 10578 +4
- Partials 407 409 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
/assign @XiShanYongYe-Chang |
0e993cb
to
6700221
Compare
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.
Thanks for your hard work~
bd7f006
to
10388e6
Compare
10388e6
to
3e59199
Compare
46ca87d
to
06b7f84
Compare
LGTM |
}) | ||
|
||
// Wait executeController to reconcile then check if it is retained | ||
time.Sleep(waitTime) |
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 don't think Sleep
is a good way. Could we design the test as follower:
- Create retention like
desiredObj.FooField = observedObj.FooField
- Then update object in controller panel from
FooField: foo
BarFiled: bar
to
FooField: foo1
BarFiled: bar1
- Wait object in member cluster to be:
FooField: foo
BarFiled: bar1
```
That says our update is going into effect, and our interpreter works.
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.
It looks great. Because this modification also involves other cases:
So I will send a pr later,
06b7f84
to
49d7520
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: XiShanYongYe-Chang 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 |
Signed-off-by: zhangyukun 38148677+jameszhangyukun@users.noreply.github.com
What type of PR is this?
/kind feature
What this PR does / why we need it:
add test case for resource interpreter customization:
Which issue(s) this PR fixes:
part of #2371
Special notes for your reviewer:
Does this PR introduce a user-facing change?: