Closed
Bug 982946
Opened 10 years ago
Closed 10 years ago
API verification for reg and node servers
Categories
(Cloud Services :: Server: Other, defect)
Cloud Services
Server: Other
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: bobm, Assigned: rfkelly)
References
Details
(Whiteboard: [qa+])
Attachments
(1 file, 1 obsolete file)
Please provide a simple method to verify a running reg server.
Comment 1•10 years ago
|
||
I will assume https://docs.services.mozilla.com/reg/index.html https://docs.services.mozilla.com/sreg/index.html
Whiteboard: [qa+]
Assignee | ||
Comment 2•10 years ago
|
||
I was going to try to re-use the existing functional test suite, in a similar way to what we do for syncstorage. Turns out that was a giant rat-hole. Instead let's just use a simple purpose-built script like the attached. This script verifiers the user API so it should be usable for reg and sreg, and by extension for testing a node-assignment server. :bobm let's work together tomorrow to try this out, and I'll look into building something similar for account-portal.
Reporter | ||
Comment 3•10 years ago
|
||
Noting here that the URL should probably default assume that reg lives at http://localhost/user/1.0.
Assignee | ||
Updated•10 years ago
|
Hardware: x86 → All
Assignee | ||
Comment 4•10 years ago
|
||
Updating the script based on our initial attempt to use it. This new version will give a better error message if captchas are enabled, is less picky about the format of a node assignment, and allows an optional node-assignement server to be specified as a separate URL. This should help us to work around the difficulties with our deployment setup, where node-assignent is done by a separate service and manged via url-munging in zeus. Run it something like: ./bin/python test_user_api.py http://reg.server.url http://node.server.url Bob, we'll probably have to tweak a few details when we go to run this in practice, but I'm hopeful this can give you a solid test script for the two services.
Assignee: nobody → rfkelly
Attachment #8390317 -
Attachment is obsolete: true
Attachment #8392656 -
Flags: review?(bobm)
Assignee | ||
Updated•10 years ago
|
Summary: API verification for reg server → API verification for reg and node servers
Reporter | ||
Comment 6•10 years ago
|
||
Comment on attachment 8392656 [details]
test_user_api.py
Nodes passing all tests.
Attachment #8392656 -
Flags: review?(bobm) → review+
Assignee | ||
Comment 7•10 years ago
|
||
Committed as syncreg/tests/live.py in http://hg.mozilla.org/services/server-reg/rev/6f87fab21817
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•