Skip to content

Commit

Permalink
Fix broken TCP runtime tests.
Browse files Browse the repository at this point in the history
fermyon/conformance-tests#16 changed the port
for the TCP echo service that these tests use and we did not change the
  port in these spin.toml files.

Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
  • Loading branch information
rylev committed Jun 28, 2024
1 parent f481796 commit efd417d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ authors = ["Fermyon Engineering <engineering@fermyon.com>"]
version = "0.1.0"

[variables]
addr_prefix = { default = "127.0.0.0"}
prefix_len = { default = "24"}
addr_prefix = { default = "127.0.0.0" }
prefix_len = { default = "24" }

[[trigger.http]]
route = "/"
component = "test"

[component.test]
source = "%{source=tcp-sockets}"
environment = { ADDRESS = "127.0.0.1:%{port=5000}" }
allowed_outbound_hosts = ["*://{{ addr_prefix }}/{{ prefix_len }}:%{port=5000}"]
environment = { ADDRESS = "127.0.0.1:%{port=7}" }
allowed_outbound_hosts = ["*://{{ addr_prefix }}/{{ prefix_len }}:%{port=7}"]
4 changes: 2 additions & 2 deletions tests/runtime-tests/tests/tcp-sockets-ip-range/spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ component = "test"

[component.test]
source = "%{source=tcp-sockets}"
environment = { ADDRESS = "127.0.0.1:%{port=5000}" }
allowed_outbound_hosts = ["*://127.0.0.0/24:%{port=5000}"]
environment = { ADDRESS = "127.0.0.1:%{port=7}" }
allowed_outbound_hosts = ["*://127.0.0.0/24:%{port=7}"]
4 changes: 2 additions & 2 deletions tests/runtime-tests/tests/tcp-sockets/spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ component = "test"

[component.test]
source = "%{source=tcp-sockets}"
environment = { ADDRESS = "127.0.0.1:%{port=5000}" }
allowed_outbound_hosts = ["*://127.0.0.1:%{port=5000}"]
environment = { ADDRESS = "127.0.0.1:%{port=7}" }
allowed_outbound_hosts = ["*://127.0.0.1:%{port=7}"]

0 comments on commit efd417d

Please sign in to comment.