mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-20 17:33:08 +00:00
Fix two broken rhizomerestful tests
On Debian testing, it appears that curl(1) no longer sends an Expect: 100-continue header by default, so the test script must explicitly supply it.
This commit is contained in:
parent
bb7d95ccd1
commit
cc016f7bf7
@ -1344,6 +1344,7 @@ test_RhizomeImport() {
|
||||
# store.
|
||||
execute curl \
|
||||
--silent --show-error --write-out '%{http_code}' \
|
||||
--header 'Expect: 100-continue' \
|
||||
--header 'Transfer-Encoding: chunked' \
|
||||
--output http.body \
|
||||
--trace-ascii curl1.trace \
|
||||
@ -1366,6 +1367,7 @@ test_RhizomeImport() {
|
||||
# the bundle is already in the store.
|
||||
execute curl \
|
||||
--silent --show-error --write-out '%{http_code}' \
|
||||
--header 'Expect: 100-continue' \
|
||||
--header 'Transfer-Encoding: chunked' \
|
||||
--output http.body \
|
||||
--trace-ascii curl2.trace \
|
||||
@ -1391,6 +1393,7 @@ test_RhizomeImport() {
|
||||
# request body.
|
||||
execute curl \
|
||||
--silent --show-error --write-out '%{http_code}' \
|
||||
--header 'Expect: 100-continue' \
|
||||
--header 'Transfer-Encoding: chunked' \
|
||||
--output http.body \
|
||||
--trace-ascii curl3.trace \
|
||||
@ -1425,6 +1428,7 @@ setup_RhizomeImportLarge() {
|
||||
test_RhizomeImportLarge() {
|
||||
execute curl \
|
||||
--silent --show-error --write-out '%{http_code}' \
|
||||
--header 'Expect: 100-continue' \
|
||||
--header 'Transfer-Encoding: chunked' \
|
||||
--output http.body \
|
||||
--trace-ascii curl.trace \
|
||||
@ -1457,6 +1461,7 @@ test_RhizomeImportParamsBad() {
|
||||
# The 'id' query parameter must match the manifest's ID.
|
||||
execute curl \
|
||||
--silent --show-error --write-out '%{http_code}' \
|
||||
--header 'Expect: 100-continue' \
|
||||
--header 'Transfer-Encoding: chunked' \
|
||||
--output http.body \
|
||||
--trace-ascii curl1.trace \
|
||||
@ -1475,6 +1480,7 @@ test_RhizomeImportParamsBad() {
|
||||
wrongversion=$((version + 1))
|
||||
execute curl \
|
||||
--silent --show-error --write-out '%{http_code}' \
|
||||
--header 'Expect: 100-continue' \
|
||||
--header 'Transfer-Encoding: chunked' \
|
||||
--output http.body \
|
||||
--trace-ascii curl2.trace \
|
||||
|
Loading…
x
Reference in New Issue
Block a user