Commit 4b3710bb authored by Natanael Copa's avatar Natanael Copa

community/lua-copas: fix tests

add fixes from upstream for tests
parent 7c940069
......@@ -13,7 +13,8 @@ depends="lua-socket"
checkdepends="lua5.1-coxpcall lua-sec"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/keplerproject/$_pkgname/archive/v$_pkgver.tar.gz
disable-https-tests.patch
default-tls1.2.patch
test-certs.patch
ipv4-only.patch"
builddir="$srcdir/$_pkgname-$_pkgver"
......@@ -63,5 +64,6 @@ _subpackage() {
}
sha512sums="dd83a513fbddb2f0164c3573b417623f5cc556413c4937be7e362f4c1667bad83391143e1bf609480726730ce488c4080e810f2ce12a98a7abb5293993c10182 lua-copas-2.0.2.tar.gz
eebded0a9accbc6b0a5ecd3c45e06710bf4b3279605b443fe3bfff40d9d9d23bdc0c508fb42506d14faa69a3c4cee0b8bef80ab8b721eac6d5aeab2aaa8c41e7 disable-https-tests.patch
d65a2d26ff025ec4b7c652bdf179a9f18078f736ec8f9166df077a47ec34cc4731cdeaa984d25c9556f332b36bfd9b4a7e2069284f8b63a4344e8a81b5ad72bc default-tls1.2.patch
f775cda7762f7924be8794ea2c77eb49740741a3cf9f67ca7b7e7563868d51f386ed473833e40b673af3aee5660a5e4767f43522bda1e0c38b2bf07c9df183df test-certs.patch
4fb2b65f41869b9729cc4672eebbfb2745a2d01af1cd54341b8306f57510f98e118eac77c77a980f4c8e8b181b6fda150061dc39819269e9ee64bf07656dfd54 ipv4-only.patch"
diff --git a/src/copas/http.lua b/src/copas/http.lua
index d9767fe..8e8dc64 100644
--- a/src/copas/http.lua
+++ b/src/copas/http.lua
@@ -35,7 +35,7 @@ _M.USERAGENT = socket._VERSION
-- Default settings for SSL
_M.SSLPORT = 443
-_M.SSLPROTOCOL = "tlsv1"
+_M.SSLPROTOCOL = "tlsv1_2"
_M.SSLOPTIONS = "all"
_M.SSLVERIFY = "none"
diff --git a/Makefile b/Makefile
index 5b383d3..9d8c749 100644
--- a/Makefile
+++ b/Makefile
@@ -24,8 +24,8 @@ install:
test:
$(LUA) $(PKGPATH) tests/largetransfer.lua
$(LUA) $(PKGPATH) tests/request.lua 'http://www.google.com'
- $(LUA) $(PKGPATH) tests/request.lua 'https://www.google.nl'
- $(LUA) $(PKGPATH) tests/httpredirect.lua
+# $(LUA) $(PKGPATH) tests/request.lua 'https://www.google.nl'
+# $(LUA) $(PKGPATH) tests/httpredirect.lua
$(LUA) $(PKGPATH) tests/limit.lua
$(LUA) $(PKGPATH) tests/connecttwice.lua
$(LUA) $(PKGPATH) tests/exit.lua
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment