From 8424a881180e9633495f2fbcf27e6bb28fa9d62d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 25 Jul 2019 03:52:53 +0100 Subject: [PATCH] http[s] tests: Add http test case Maybe we will turn this into a TLS test case in due course. Signed-off-by: Ian Jackson --- debian/tests/control | 4 ++++ tests/tests/ftpmasterapi-http | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 tests/tests/ftpmasterapi-http diff --git a/debian/tests/control b/debian/tests/control index 63e93697..850b35db 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -20,6 +20,10 @@ Tests-Directory: tests/tests Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime Restrictions: x-dgit-intree-only x-dgit-git-only +Tests: ftpmasterapi-http +Tests-Directory: tests/tests +Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime, libhttp-server-simple-static-perl + Tests: gdr-merge-conflicts Tests-Directory: tests/tests Depends: chiark-utils-bin, faketime, git-debrebase, git-buildpackage, quilt diff --git a/tests/tests/ftpmasterapi-http b/tests/tests/ftpmasterapi-http new file mode 100755 index 00000000..82d3c864 --- /dev/null +++ b/tests/tests/ftpmasterapi-http @@ -0,0 +1,19 @@ +#!/bin/bash +set -e +. tests/lib + +t-archive-none example + +t-dependencies libhttp-server-simple-static-perl + +$troot/ftpmasterapi-static-server >$tmp/must-clean/api.port $tmp/aq + +read <$tmp/must-clean/api.port api_port + +t-git-config --global dgit-distro.test-dummy.archive-query ftpmasterapi: +t-git-config --global dgit-distro.test-dummy.archive-query-url \ + http://127.0.0.1:$api_port/ + +t-dgit archive-api-query suites + +t-ok -- 2.30.2