Skip to content

Commit

Permalink
test: added rust sdk test for source transformer (#1756)
Browse files Browse the repository at this point in the history
Signed-off-by: shubham <shubhamdixit863@gmail.com>
  • Loading branch information
shubhamdixit863 committed Jun 17, 2024
1 parent adbc5ca commit d72bd71
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/sdks-e2e/sdks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (s *SDKsSuite) TestSourceTransformer() {
}

var wg sync.WaitGroup
wg.Add(3)
wg.Add(4)
go func() {
defer wg.Done()
s.testSourceTransformer("python")
Expand All @@ -154,6 +154,10 @@ func (s *SDKsSuite) TestSourceTransformer() {
defer wg.Done()
s.testSourceTransformer("go")
}()
go func() {
defer wg.Done()
s.testSourceTransformer("rust")
}()
wg.Wait()
}

Expand Down
46 changes: 46 additions & 0 deletions test/sdks-e2e/testdata/transformer/event-time-filter-rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
apiVersion: numaflow.numaproj.io/v1alpha1
kind: Pipeline
metadata:
name: event-time-filter-rust
spec:
vertices:
- name: in
source:
http: {}
transformer:
container:
image: quay.io/numaio/numaflow-rust/mapt-event-time-filter:stable
imagePullPolicy: Always
- name: sink-within-2022
partitions: 2
scale:
min: 1
sink:
log: {}
- name: sink-after-2022
scale:
min: 1
sink:
log: {}
- name: sink-all
scale:
min: 1
sink:
log: {}
edges:
- from: in
to: sink-within-2022
conditions:
tags:
operator: or
values:
- within_year_2022
- from: in
to: sink-after-2022
conditions:
tags:
operator: or
values:
- after_year_2022
- from: in
to: sink-all

0 comments on commit d72bd71

Please sign in to comment.