-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(spin): add more integration tests (#181)
* test(spin): add more integration tests This commit adds an integration test for spin-keyvalue using dynamic config file that was introduced by #179 and an integraion test for outbound redis introduced by #117 Signed-off-by: jiaxiao zhou <jiazho@microsoft.com>
- Loading branch information
Showing
21 changed files
with
1,454 additions
and
520 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
spin_version = "1" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
authors = ["Suneet Nangia <suneetnangia@gmail.com>"] | ||
name = "spin-hello" | ||
trigger = { type = "redis", address = "redis:/localhost:6379" } | ||
name = "spin-inbound-redis" | ||
version = "1.0.0" | ||
|
||
[[component]] | ||
environment = { REDIS_ADDRESS = "redis://localhost:6379", REDIS_CHANNEL = "messages-out" } | ||
id = "hello" | ||
[variables] | ||
redis_address = { required = true } | ||
redis_channel = { required = true } | ||
|
||
[[trigger.redis]] | ||
address = "redis://redis-service.default.svc.cluster.local:6379" | ||
component = "hello" | ||
|
||
[component.hello] | ||
source = "spin_inbound_redis.wasm" | ||
allowed_http_hosts = [] | ||
[component.trigger] | ||
channel = "messages-in" | ||
allowed_outbound_hosts = ["redis://*:*"] | ||
|
||
[component.hello.variables] | ||
redis_address = "{{ redis_address }}" | ||
redis_channel = "{{ redis_channel }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.