Merge ~ahasenack/ubuntu/+source/haproxy:disco-haproxy-better-dep8 into ubuntu/+source/haproxy:ubuntu/devel
Status: | Merged |
---|---|
Approved by: | Andreas Hasenack |
Approved revision: | 06e1dabefb770e012ce4fad4fb27b654f160259f |
Merged at revision: | 06e1dabefb770e012ce4fad4fb27b654f160259f |
Proposed branch: | ~ahasenack/ubuntu/+source/haproxy:disco-haproxy-better-dep8 |
Merge into: | ubuntu/+source/haproxy:ubuntu/devel |
Diff against target: |
81 lines (+59/-0) 3 files modified
debian/changelog (+7/-0) debian/tests/control (+4/-0) debian/tests/proxy-localhost (+48/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robie Basak | Approve | ||
Christian Ehrhardt (community) | Approve | ||
Review via email: mp+362217@code.launchpad.net |
Description of the change
Bug #1804069 allowed us to ship a broken haproxy on arm64, and a test as simple as this would have caught it.
This branch adds a simple, yet better, DEP8 test to haproxy. I came up with it after writing the testing instructions for that bug, and it's basically a copy of that.
Bileto ticket: https:/
I'm inclined to add this test to the #1804069 SRU. Let's see how reviews go, and how it fares in bileto. I can then also submit this to Debian.
Here is a good local run:
...
autopkgtest [18:42:01]: test proxy-localhost: [------
+ cat
+ systemctl restart haproxy
+ cd /var/www/html
+ md5sum index.html
+ src_md5=
+ cd -
+ rm -f index.html
/tmp/autopkgtes
+ wget -t1 http://
--2019-01-24 20:42:01-- http://
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)
HTTP request sent, awaiting response... 200 OK
Length: 10918 (11K) [text/html]
Saving to: ‘index.html’
0K .......... 100% 159M=0s
2019-01-24 20:42:01 (159 MB/s) - ‘index.html’ saved [10918/10918]
+ result=0
+ echo 3526531ccd6c6a1
+ md5sum -c
index.html: OK
+ [ 0 != 0 ]
+ echo OK: index.html downloaded via haproxy matches the source file.
+ exit 0
OK: index.html downloaded via haproxy matches the source file.
autopkgtest [18:42:02]: test proxy-localhost: -------
autopkgtest [18:42:02]: test proxy-localhost: - - - - - - - - - - results - - - - - - - - - -
proxy-localhost PASS
autopkgtest [18:42:02]: @@@@@@@
cli PASS
proxy-localhost PASS
While bileto is being fixed, these are the (green) results for this package:
https:/ /objectstorage. prodstack4- 5.canonical. com/v1/ AUTH_39a8dbb93c af4ec889f8a1b7f 69885db/ bileto- 3613-excuses/ 2019-01- 29_10:20: 01/3613_ disco_excuses. html