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

feat: Add test for ISBServiceRollout #50

Merged
merged 8 commits into from
Jun 17, 2024
Merged

feat: Add test for ISBServiceRollout #50

merged 8 commits into from
Jun 17, 2024

Conversation

a49ibrahim
Copy link
Contributor

@a49ibrahim a49ibrahim commented Jun 7, 2024

Fixes #40

Modifications

added test cases to isbservicerollout_controller_test.go file to test create, update, and delete of a isbservicerollout resource.

Verification

ran make test command and verify all tests passed.

Ali Ibrahim added 2 commits June 7, 2024 09:48
},
Spec: apiv1.ISBServiceRolloutSpec{
InterStepBufferService: runtime.RawExtension{
Raw: []byte(`{
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be better to use a more realistic example like https://github.com/numaproj/numaplane/blob/main/config/samples/numaplane.numaproj.io_v1alpha1_isbservicerollout.yaml
Also, I'd recommend not using string but an actual Numaflow InterStepBufferService object so you can reuse it for updates and comparisons (similar to the tests in the PipelineRollout Controller).


// Update the spec here
currentISBServiceRollout.Spec.InterStepBufferService = runtime.RawExtension{
Raw: []byte(`{
Copy link
Contributor

Choose a reason for hiding this comment

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

See above comment related to this.

Signed-off-by: Ali Ibrahim <[email protected]>
Signed-off-by: Ali Ibrahim <[email protected]>
@a49ibrahim a49ibrahim marked this pull request as ready for review June 10, 2024 15:51
@xdevxy
Copy link
Contributor

xdevxy commented Jun 10, 2024

Fixes #40

Modifications

Verification

can you fill in the modification and verification you have done, thanks!

xdevxy
xdevxy previously approved these changes Jun 10, 2024
internal/controller/isbservicerollout_controller_test.go Outdated Show resolved Hide resolved
@xdevxy xdevxy dismissed their stale review June 10, 2024 22:08

Found new issue

@xdevxy xdevxy marked this pull request as draft June 11, 2024 20:46
Ali Ibrahim added 2 commits June 11, 2024 18:37
Signed-off-by: Ali Ibrahim <[email protected]>
@a49ibrahim a49ibrahim requested a review from xdevxy June 12, 2024 17:21
@xdevxy xdevxy marked this pull request as ready for review June 13, 2024 19:08
@xdevxy xdevxy marked this pull request as draft June 13, 2024 21:05
@xdevxy
Copy link
Contributor

xdevxy commented Jun 13, 2024

The failure is actually related to the latest change and should be fixed with #56

@xdevxy xdevxy marked this pull request as ready for review June 17, 2024 21:07
@xdevxy xdevxy merged commit ce3feda into main Jun 17, 2024
4 checks passed
@xdevxy xdevxy deleted the rolloutTestisb branch June 17, 2024 21:07
darshansimha referenced this pull request in darshansimha/numaplane Jun 25, 2024
Signed-off-by: Ali Ibrahim <[email protected]>
Co-authored-by: xdevxy <[email protected]>
Signed-off-by: dsimha <[email protected]>
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.

Ensure create, update and delete logic works for ISBServiceRollout
3 participants