Merge lp:~james-w/libdep-service/fix-end-to-end-check into lp:libdep-service

Proposed by James Westby
Status: Work in progress
Proposed branch: lp:~james-w/libdep-service/fix-end-to-end-check
Merge into: lp:libdep-service
Diff against target: 26 lines (+4/-4)
1 file modified
bin/end-to-end-check (+4/-4)
To merge this branch: bzr merge lp:~james-w/libdep-service/fix-end-to-end-check
Reviewer Review Type Date Requested Status
Canonical Consumer Applications Hackers Pending
Review via email: mp+130629@code.launchpad.net

Commit message

Move the end-to-end check to the v2 API.

Description of the change

Hi,

The end-to-end check is currently broken on staging.

The v1 API was apparently ignoring architecture, so returning results
for both architectures.

When we added v2 we fixed that, which caused the check to start failing.

I've actually updated the check to use the v2 API, as that's the one we
care about, and I don't think we need to check both.

I'm not inclined to worry about breaking v1 compatibility.

Thanks,

James

To post a comment you must log in.
Revision history for this message
Jonathan Lange (jml) wrote :

If https://code.launchpad.net/~jml/libdep-service/update-e2e-check/+merge/130806 lands first, then this will need to change fairly significantly.

Unmerged revisions

66. By James Westby

Move the end-to-end check to the v2 API.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/end-to-end-check'
2--- bin/end-to-end-check 2012-09-14 14:34:46 +0000
3+++ bin/end-to-end-check 2012-10-19 20:01:20 +0000
4@@ -7,8 +7,8 @@
5 import sys
6
7
8-QUERY = 'libs=libc.so.6&libs=notalibrary'
9-RESULT = {"libc.so.6": ["libc6", "libc6 (>= 2.13)", "libc6-amd64", "libc6-i386"]}
10+QUERY = 'libs=libc.so.6&libs=notalibrary&arch=i386'
11+RESULT = {"i386": {"libc.so.6": ["libc6", "libc6 (>= 2.13)", "libc6-amd64"]}}
12
13
14 def make_arg_parser():
15@@ -69,9 +69,9 @@
16 port = ':{0}'.format(args.port)
17 else:
18 port = ''
19- url = 'http://%s%s/v1/get_binaries_for_libraries' % (args.host, port)
20+ url = 'http://%s%s/v2/get_binaries_for_libraries' % (args.host, port)
21 else:
22- url = 'http://localhost:8000/v1/get_binaries_for_libraries'
23+ url = 'http://localhost:8000/v2/get_binaries_for_libraries'
24 if args.error_duration <= args.warn_duration:
25 parser.error("error duration must be higher than warning duration")
26 code, message = check_query_results(

Subscribers

People subscribed via source and target branches