Skip to content

Commit daa956f

Browse files
authored
Skip lua_proxy_protocol test if curl command is old (#12744)
* Skip lua_proxy_protocol test if curl command is old * Use HasCurlOption instead of HasCurlVersion
1 parent 7f6f697 commit daa956f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/gold_tests/pluginTest/lua/lua_proxy_protocol.test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
Test Lua plugin PROXY protocol API
2424
'''
2525

26-
Test.SkipUnless(Condition.PluginExists('tslua.so'),)
26+
Test.SkipUnless(
27+
Condition.PluginExists('tslua.so'),
28+
Condition.HasCurlOption("--haproxy-clientip"),
29+
)
2730

2831
Test.ContinueOnFail = True
2932

tests/gold_tests/pluginTest/tsapi/test_TSVConnPPInfo.test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
Test.SkipUnless(
2626
Condition.HasProgram("nghttp", "Nghttp need to be installed on system for this test to work"),
27-
Condition.HasCurlVersion("8.2.0"),
27+
Condition.HasCurlOption("--haproxy-clientip"),
2828
)
2929
Test.ContinueOnFail = True
3030

0 commit comments

Comments
 (0)