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

Test:Add unit test of triggerinstance controller #17

Merged
merged 5 commits into from
Sep 29, 2022

Conversation

Mcduller
Copy link
Contributor

I add the normal case about creating triggerinstance and relevant resource of triggerinstance controller
Signed-off-by: Mcduller 1596582524@qq.com

Signed-off-by: Mcduller <1596582524@qq.com>
@Mcduller Mcduller closed this Sep 28, 2022
@charlie0129
Copy link
Member

Actually, you don't need to close your pr if the check fails (or if there any special reason that you need to close this?)

@Mcduller
Copy link
Contributor Author

Actually, you don't need to close your pr if the check fails (or if there any special reason that you need to close this?)

ok,I got it ,i will reopen it

@Mcduller Mcduller reopened this Sep 29, 2022
Signed-off-by: Mcduller <1596582524@qq.com>
… trigger_instance_unit_test

# Conflicts:
#	controllers/triggerinstance/suite_test.go
#	controllers/triggerinstance/triggerinstance_controller_test.go
#	pkg/util/test_utils.go
@Mcduller
Copy link
Contributor Author

@charlie0129 hi, I had fix the check error, could you review this pr ?

LeaderElectionNamespace: "default",
LeaderElectionID: "test",
})
var done = make(chan interface{})
Copy link
Member

Choose a reason for hiding this comment

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

What does this done do?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What does this done do?

It's redundant, i will remove it.

Copy link
Member

@charlie0129 charlie0129 left a comment

Choose a reason for hiding this comment

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

Good job!

@charlie0129 charlie0129 merged commit e2ac9b5 into kubevela:main Sep 29, 2022
@Mcduller Mcduller deleted the trigger_instance_unit_test branch September 30, 2022 00:32
semmet95 pushed a commit to semmet95/kube-trigger that referenced this pull request May 10, 2023
* Test:Add unit test of triggerinstance controller

Signed-off-by: Mcduller <1596582524@qq.com>

* Test:Add unit test of triggerinstance controller

Signed-off-by: Mcduller <1596582524@qq.com>

Signed-off-by: Mcduller <1596582524@qq.com>
Signed-off-by: Amit Singh <singhamitch@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants