Sarthak Sharma
0e0cf8fe58
Add certification tests for Cron Binding ( #2191 )
...
* fix typos
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* add basic tests
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* update tests
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* add Readme
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* update mod file
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* add entry in workflow
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* add conformance test
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* add conformance tests to workflow
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* use watcher to assert
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* update readme
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* fix linting
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* Apply suggestions from code review
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* change to dapr/go-sdk from hunter007/dapr-go-sdk
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* fix cron delete operation
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* add check if cron not triggered after delete
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* update README
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* parameterise application and assertions
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* use mock clock for cron
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* change cron to input only binding
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* add forked cron library to internal/cron
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* use cron internal fork for binding
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* resolve comments
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* resolve comments
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* add test matrix to test various schedules
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* add cron init unit tests
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* resolve comments
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* fix linting
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* fix linting
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* go modtidy all
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* go modtidy
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* move cron fork to dapr/kit
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
* use pinned v0.0.3 for dapr/kit
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2022-12-02 02:30:01 -08:00
Alessandro (Ale) Segala
bcea284c7b
Components' init functions should return interfaces ( #1997 )
...
* Components' init functions should return interfaces
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* 💄
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* pin latest berndverst contrib fork
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Fixed component registration in tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Updated all cert tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-25 18:27:45 -07:00
Bernd Verst
e87cd5e4cb
Go 1.19 support and linter fixes ( #1975 )
...
* Go 1.19 support and linter fixes
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Update workflows for Go1.19 and new linter version
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Remove unnecessary space in nolint directive
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* disable additional linters which aren't used because of Go generics
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* enable gosec linter again
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Update bindings/zeebe/command/publish_message_test.go
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Update bindings/output_binding.go
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Use prepared statement for mysql table creation
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Ping is not ping
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* c'mon linter
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Fix MySQL gosec issue
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* revert mysql to be fixed later
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-18 00:45:23 -07:00
Alessandro (Ale) Segala
697afe8608
bindings.cron: ensure it can resume correctly after context cancellation ( #1943 )
...
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-08-09 11:37:07 -07:00
Alessandro (Ale) Segala
d38c786771
Add contexts to input bindings ( #1831 )
...
This is the last part of the "shutdown sequence fix": it allows shutting down input bindings before output ones.
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-07-12 12:19:27 -07:00
Alessandro (Ale) Segala
ca9fbf690e
Fixed Kafka PubSub to allow multiple handlers for different topics ( #1755 )
...
* Fixed Kafka PubSub to allow multiple handlers for different topics
With this, tests from #1743 are passing
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Removed read lock (for now)
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Updated as requested by @skyao
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Use interface type everywhere
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Fixed panic
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-06-01 15:31:11 -07:00
Wang Bing
db99b43068
Use revive instead of golint ( #1685 )
...
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-05-06 12:55:17 -07:00
pigletfly
5673b28b13
Add context in bindings interface
...
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-04-25 14:16:15 +08:00
yellow chicks
3c28fee80f
hotfix: bindings.cron Input & Output communicates through a signal queue ( #1418 )
...
Signed-off-by: 1046102779 <seachen@tencent.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-01-07 15:53:19 -08:00
Dmitry Shmulevich
c7adb917f3
update license to Apache v2.0 ( #1406 )
2022-01-04 19:53:31 -08:00
Long Dai
988fed05ab
ci: standard linter config ( #1102 )
...
* ci: standard linter config
Signed-off-by: Long <long.dai@intel.com>
* Update utils.go
* fix pulsar issue
Signed-off-by: Long <long.dai@intel.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-09-21 15:21:59 -07:00
Phil Kedy
688df9bda4
Removed dependency on dapr/dapr in favor of dapr/kit. Fixed go mod dependencies afterwards. Go 1.16 in go.mod. Removed accidental log dependency. ( #807 )
2021-04-19 12:06:10 -07:00
Yaron Schneider
192461889c
Add app response to input binding event ( #764 )
...
* add app response to input binding event
* lint
2021-03-18 14:22:14 -07:00
Yaron Schneider
3ef025c604
change headers ( #679 )
2021-02-09 18:57:55 -08:00
halspang
f647d9eedb
Upgrade golang lint to 1.31 ( #490 )
...
Upgrade golang lint to 1.31.0
https://github.com/dapr/components-contrib/issues/439
2020-10-12 12:54:15 -07:00
Mark Chmarny
b16d55f8ad
renames the cron package ( #395 )
2020-07-16 18:18:34 -07:00
Mark Chmarny
111836eac8
adds Operations method implementation
2020-07-08 05:46:08 -07:00
Mark Chmarny
8b169a7d65
fixes lint errors, adds invoke test
2020-07-08 05:09:10 -07:00
Mark Chmarny
d662a1829f
fixes lint errors, adds invoke test
2020-07-08 04:58:09 -07:00
Mark Chmarny
e98b3fc968
adds cron binding
2020-07-07 16:58:53 -07:00