-
Notifications
You must be signed in to change notification settings - Fork 42
refactor functions and add test case in miscellaneous.go & miscellaneous_test.go and others which impacted #404
refactor functions and add test case in miscellaneous.go & miscellaneous_test.go and others which impacted #404
Conversation
7b91c72
to
9168a32
Compare
9168a32
to
51a8ab6
Compare
51a8ab6
to
c95357d
Compare
c95357d
to
925cbe0
Compare
925cbe0
to
3de008b
Compare
3de008b
to
8edeb72
Compare
8edeb72
to
617b84e
Compare
617b84e
to
d665457
Compare
d665457
to
4660839
Compare
f188b66
to
7bc9636
Compare
7bc9636
to
e47a35c
Compare
according to discussion in planning mtg this PR is done, right? @dansible could you please approve this PR and i will perform merge? thanks! |
So far so good, I just wanted to go through a review of the changes with @tedteng in person. We will have a call at 10AM Friday your time for this - I've asked Ted to send you an invite in case you'd like to join also |
e47a35c
to
380117f
Compare
@dansible done adding extra tests in |
pkg/cmd/miscellaneous_test.go
Outdated
}) | ||
}) | ||
|
||
Context("GetTargetName garden", func() { |
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.
is this a duplicate test?
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.
right, just removed
bff9c6a
to
d1955d6
Compare
@dansible fixed the conflict. Please let me know is anything else need to change it thanks |
Thanks @tedteng - there are just some conflicts in the |
d1955d6
to
92e25f8
Compare
@dansible done |
refactor methods able to use go test framework fix nonexisting return and use PrintoutObject add GetTargetedxxxObject fix loop issue add getRole targetReader interface modify GetXXXObject fix no kind ShootList fix getRole == user
92e25f8
to
95abd63
Compare
What this PR does / why we need it:
After a series of different experiments, to compatible the existing go test suits (*_test.go) and use it in the future test case. I have to refactor isTargeted,getTargetName,getSeedObject,getShootObject,`getProjectObject'
meanwhile, also add new test cases for those methods in miscellaneous_test.go as much as I can. add more local integration test to verify the refactor
Which issue(s) this PR fixes:
Fixes #403
Special notes for your reviewer:
Release note: