Skip to content

Commit efd417d

Browse files
committed
Fix broken TCP runtime tests.
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 <[email protected]>
1 parent f481796 commit efd417d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/runtime-tests/tests/tcp-sockets-ip-range-variable-permission/spin.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ authors = ["Fermyon Engineering <[email protected]>"]
66
version = "0.1.0"
77

88
[variables]
9-
addr_prefix = { default = "127.0.0.0"}
10-
prefix_len = { default = "24"}
9+
addr_prefix = { default = "127.0.0.0" }
10+
prefix_len = { default = "24" }
1111

1212
[[trigger.http]]
1313
route = "/"
1414
component = "test"
1515

1616
[component.test]
1717
source = "%{source=tcp-sockets}"
18-
environment = { ADDRESS = "127.0.0.1:%{port=5000}" }
19-
allowed_outbound_hosts = ["*://{{ addr_prefix }}/{{ prefix_len }}:%{port=5000}"]
18+
environment = { ADDRESS = "127.0.0.1:%{port=7}" }
19+
allowed_outbound_hosts = ["*://{{ addr_prefix }}/{{ prefix_len }}:%{port=7}"]

tests/runtime-tests/tests/tcp-sockets-ip-range/spin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ component = "test"
1111

1212
[component.test]
1313
source = "%{source=tcp-sockets}"
14-
environment = { ADDRESS = "127.0.0.1:%{port=5000}" }
15-
allowed_outbound_hosts = ["*://127.0.0.0/24:%{port=5000}"]
14+
environment = { ADDRESS = "127.0.0.1:%{port=7}" }
15+
allowed_outbound_hosts = ["*://127.0.0.0/24:%{port=7}"]

tests/runtime-tests/tests/tcp-sockets/spin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ component = "test"
1111

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

0 commit comments

Comments
 (0)