-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
Signed-off-by: Ali Ibrahim <[email protected]>
Signed-off-by: Ali Ibrahim <[email protected]>
}, | ||
Spec: apiv1.ISBServiceRolloutSpec{ | ||
InterStepBufferService: runtime.RawExtension{ | ||
Raw: []byte(`{ |
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 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(`{ |
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.
See above comment related to this.
Signed-off-by: Ali Ibrahim <[email protected]>
Signed-off-by: Ali Ibrahim <[email protected]>
can you fill in the |
Signed-off-by: Ali Ibrahim <[email protected]>
Signed-off-by: Ali Ibrahim <[email protected]>
The failure is actually related to the latest change and should be fixed with #56 |
Signed-off-by: Ali Ibrahim <[email protected]> Co-authored-by: xdevxy <[email protected]> Signed-off-by: dsimha <[email protected]>
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.